Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.constraint.property
Class ChoiceFlag

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
      extended by eu.esdihumboldt.hale.common.schema.model.constraint.property.ChoiceFlag
All Implemented Interfaces:
GroupPropertyConstraint

@Immutable
public class ChoiceFlag
extends AbstractFlagConstraint
implements GroupPropertyConstraint

Flags if a property group is a choice, disabled by default

Author:
Simon Templer

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


DISABLED

public static final ChoiceFlag DISABLED
Disabled choice flag

Constructor Detail

ChoiceFlag

public ChoiceFlag()
Creates a default choice flag, which is disabled. If possible, instead of creating an instance, use get(boolean), ENABLED or DISABLED.

See Also:
Cardinality
Method Detail

get

public static ChoiceFlag get(boolean isChoice)
Get the choice flag

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

Humboldt Alignment Editor 2.5.0

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