Humboldt Alignment Editor 2.5.0

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

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

public class ValidationConstraint
extends Object
implements TypeConstraint

Constraint holding information about validation rules specified by XMLSchemaFacets.

Author:
Kai Schwierczek

Constructor Summary
ValidationConstraint()
          Default constructor.
ValidationConstraint(Validator validator, TypeDefinition type)
          Constructs a constraint with the given validator.
 
Method Summary
 Validator getValidator()
          Returns the validator for this constraint.
 boolean isInheritable()
          Determines if the constraint is inheritable, meaning it may be used for a sub-type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationConstraint

public ValidationConstraint()
Default constructor.


ValidationConstraint

public ValidationConstraint(Validator validator,
                            TypeDefinition type)
Constructs a constraint with the given validator.

Parameters:
validator - the validator
type - the type
Method Detail

getValidator

public Validator getValidator()
Returns the validator for this constraint.

Returns:
the validator for this constraint

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