Package org.scijava
Interface Validated
-
- All Known Subinterfaces:
ModuleInfo,MutableModuleInfo
- All Known Implementing Classes:
AbstractModuleInfo,CommandInfo,DefaultMutableModuleInfo,DynamicCommandInfo,MethodRef,ScriptInfo
public interface ValidatedAn 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ValidityProblem>getProblems()Gets the list of problems encountered while initializing the object.booleanisValid()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.
-
-