eu.esdihumboldt.hale.io.xsd.constraint
Class RestrictionFlag
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENABLED
public static final RestrictionFlag ENABLED
- Enabled restriction flag
DISABLED
public static final RestrictionFlag DISABLED
- Disabled restriction flag
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
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()
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d