Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.constraint.type
Class SkipValidation

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.type.SkipValidation
All Implemented Interfaces:
TypeConstraint
Direct Known Subclasses:
SkipGeometryValidation

@Immutable
public class SkipValidation
extends Object
implements TypeConstraint

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.

Author:
Simon Templer

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

ENABLED

public static final SkipValidation ENABLED
Enabled skip validation flag


DISABLED

public static final SkipValidation DISABLED
Disabled skip validation flag

Constructor Detail

SkipValidation

public SkipValidation()
Creates a default skip validation constraint, which is disabled. If possible, instead of creating an instance, use get(boolean), ENABLED or DISABLED.


SkipValidation

protected SkipValidation(boolean enabled)
Creates a skip validation constraint

Parameters:
enabled - if validation should be generally skipped for the associated property
Method Detail

get

public static SkipValidation get(boolean skipValidation)
Get the skip validation constraint

Parameters:
skipValidation - if the validation should be generally skipped
Returns:
the constraint instance

skipValidation

public boolean skipValidation(Object propertyValue)
Determines if validation should be skipped for a property and its children for the given property value

Parameters:
propertyValue - the property value, may be an Instance
Returns:
if validation should be skipped for the property and its children

isInheritable

public boolean isInheritable()
Description copied from interface: TypeConstraint
Determines if the constraint is inheritable, meaning it may be used for a sub-type. A constraint may only be inherited if it is not overriden in the sub-type.

Specified by:
isInheritable in interface TypeConstraint
Returns:
if the constraint is inheritable
See Also:
TypeConstraint.isInheritable()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d