Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
      extended by eu.esdihumboldt.hale.common.schema.model.constraint.type.AugmentedValueFlag
All Implemented Interfaces:
TypeConstraint

@Immutable
public class AugmentedValueFlag
extends AbstractFlagConstraint
implements TypeConstraint

Flags if an augmented value is present for a type, meaning a value that is not defined through the schema, but associated additionally to an instance. Disabled by default. Should never be enabled when HasValueFlag is enabled, meaning there is a value defined through the schema.

The Binding constraint defines the Java binding for the value.

Author:
Simon Templer
See Also:
Binding, HasValueFlag

Field Summary
static AugmentedValueFlag DISABLED
          Disabled augmented value flag
static AugmentedValueFlag ENABLED
          Enabled augmented value flag
 
Constructor Summary
AugmentedValueFlag()
          Creates a default augmented value flag, which is disabled.
 
Method Summary
static AugmentedValueFlag get(boolean augmentedValue)
          Get the augmented value flag
 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 AugmentedValueFlag ENABLED
Enabled augmented value flag


DISABLED

public static final AugmentedValueFlag DISABLED
Disabled augmented value flag

Constructor Detail

AugmentedValueFlag

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

See Also:
Constraint
Method Detail

get

public static AugmentedValueFlag get(boolean augmentedValue)
Get the augmented value flag

Parameters:
augmentedValue - if the flag shall be enabled
Returns:
the flag

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