Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.xsd.constraint
Class RestrictionFlag

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
      extended by eu.esdihumboldt.hale.io.xsd.constraint.RestrictionFlag
All Implemented Interfaces:
TypeConstraint

@Immutable
public final class RestrictionFlag
extends AbstractFlagConstraint
implements TypeConstraint

Flags if a type's super type relation is a restriction, disabled by default

Author:
Simon Templer

Field Summary
static RestrictionFlag DISABLED
          Disabled restriction flag
static RestrictionFlag ENABLED
          Enabled restriction flag
 
Constructor Summary
RestrictionFlag()
          Creates a default restriction flag, which is disabled.
 
Method Summary
 boolean isInheritable()
          Determines if the constraint is inheritable, meaning it may be used for a sub-type.
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED

public static final RestrictionFlag ENABLED
Enabled restriction flag


DISABLED

public static final RestrictionFlag DISABLED
Disabled restriction flag

Constructor Detail

RestrictionFlag

public RestrictionFlag()
Creates a default restriction flag, which is disabled. If possible, instead of creating an instance, use ENABLED or DISABLED.

See Also:
Constraint
Method Detail

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