public class PropVerification extends Object
Modifier and Type | Field and Description |
---|---|
static PropVerificationError[] |
EMPTY
Empty list of errors.
|
static String |
ERROR_ID
Verification error ID in the error property of the owner ("com.iizix.prop.verify").
|
Constructor and Description |
---|
PropVerification()
Creates the verification instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(PropVerificationError error)
Adds an error.
|
boolean |
add(PropVerificationError error,
boolean ignoreDups)
Adds an error.
|
PropVerificationError[] |
getErrors()
Gets the list of errors.
|
PropVerificationError[] |
getErrors(GProp<?> property)
Gets the list of errors of a property.
|
boolean |
hasErrors()
Checks if the verification list contains errors.
|
public static final PropVerificationError[] EMPTY
public static final String ERROR_ID
public void add(PropVerificationError error)
error
- The error.InternalError
- if the error ID already has been added for the property.public boolean add(PropVerificationError error, boolean ignoreDups)
error
- The error.ignoreDups
- Ignores duplicates.InternalError
- if the error ID already has been added for the property and ignoreDups
is false.public PropVerificationError[] getErrors()
public PropVerificationError[] getErrors(GProp<?> property)
property
- The property.public boolean hasErrors()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.