org.scijava
Interface Validated

All Known Subinterfaces:
ModuleInfo, MutableModuleInfo
All Known Implementing Classes:
AbstractModuleInfo, CommandInfo, DefaultMutableModuleInfo, DynamicCommandInfo, MethodRef, ScriptInfo

public interface Validated

An object whose validity can be confirmed after initialization. If the object is deemed invalid, a list of reasons for invalidity can be requested.

Author:
Curtis Rueden

Method Summary
 List<ValidityProblem> getProblems()
          Gets the list of problems encountered while initializing the object.
 boolean isValid()
          Gets whether the object is completely valid (i.e., no problems during initialization).
 

Method Detail

isValid

boolean isValid()
Gets whether the object is completely valid (i.e., no problems during initialization).


getProblems

List<ValidityProblem> getProblems()
Gets the list of problems encountered while initializing the object.

Returns:
The list of problems, or a zero-length list in the case of isValid() returning true.


Copyright © 2009–2015 SciJava. All rights reserved.