Package com.iizix.prop
Class PropVerification
java.lang.Object
com.iizix.prop.PropVerification
- All Implemented Interfaces:
- IKStringInfoProviderHolder
Class used to hold information about errors of the property container verification process.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final PropVerificationError[]Empty list of errors.- static final StringVerification error ID in the error property of the owner ("com.iizix.prop.verify").
- Constructor SummaryConstructorsConstructorDescription- PropVerification- (IKStringInfoProvider provider) Creates the verification instance.
- Method SummaryModifier and TypeMethodDescription- void- add- (PropVerificationError error) Adds an error.- boolean- add- (PropVerificationError error, boolean ignoreDups) Adds an error.Gets the list of errors.Gets the list of errors of a property.Gets the KString information provider used for e.g.- booleanChecks if the verification list contains errors.
- Field Details- EMPTYEmpty list of errors.
- ERROR_IDVerification error ID in the error property of the owner ("com.iizix.prop.verify").- See Also:
 
 
- Constructor Details- PropVerificationCreates the verification instance.- Parameters:
- provider- Specifies the KString information provider.
- Throws:
- NullPointerException- If- provideris- null.
 
 
- Method Details- getKStringInfoProviderGets the KString information provider used for e.g. resolving KString's.- Specified by:
- getKStringInfoProviderin interface- IKStringInfoProviderHolder
- Returns:
- The provider, never null.
 
- addAdds an error.- Parameters:
- error- The error.
- Throws:
- InternalError- if the error ID already has been added for the property.
 
- addAdds an error.- Parameters:
- error- The error.
- ignoreDups- Ignores duplicates.
- Returns:
- true if added, false if ignored (already added).
- Throws:
- InternalError- if the error ID already has been added for the property and- ignoreDupsis false.
 
- getErrorsGets the list of errors.- Returns:
- The list of errors.
 
- getErrorsGets the list of errors of a property.- Parameters:
- property- The property.
- Returns:
- The list of errors.
 
- hasErrorspublic boolean hasErrors()Checks if the verification list contains errors.- Returns:
- true if errors are present, false otherwise.