|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.schema.model.constraint.type.SkipValidation
@Immutable public class SkipValidation
Specifies if validation should be skipped for a property value. May be associated to a property type. Defaults to the validation not being skipped. Not inheritable by default.
Field Summary | |
---|---|
static SkipValidation |
DISABLED
Disabled skip validation flag |
static SkipValidation |
ENABLED
Enabled skip validation flag |
Constructor Summary | |
---|---|
|
SkipValidation()
Creates a default skip validation constraint, which is disabled. |
protected |
SkipValidation(boolean enabled)
Creates a skip validation constraint |
Method Summary | |
---|---|
static SkipValidation |
get(boolean skipValidation)
Get the skip validation constraint |
boolean |
isInheritable()
Determines if the constraint is inheritable, meaning it may be used for a sub-type. |
boolean |
skipValidation(Object propertyValue)
Determines if validation should be skipped for a property and its children for the given property value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SkipValidation ENABLED
public static final SkipValidation DISABLED
Constructor Detail |
---|
public SkipValidation()
get(boolean)
,
ENABLED
or DISABLED
.
protected SkipValidation(boolean enabled)
enabled
- if validation should be generally skipped for the
associated propertyMethod Detail |
---|
public static SkipValidation get(boolean skipValidation)
skipValidation
- if the validation should be generally skipped
public boolean skipValidation(Object propertyValue)
propertyValue
- the property value, may be an Instance
public boolean isInheritable()
TypeConstraint
isInheritable
in interface TypeConstraint
TypeConstraint.isInheritable()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |