eu.esdihumboldt.hale.common.schema.model.constraint.property
Class ChoiceFlag
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENABLED
public static final ChoiceFlag ENABLED
- Enabled choice flag
DISABLED
public static final ChoiceFlag DISABLED
- Disabled choice flag
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
get
public static ChoiceFlag get(boolean isChoice)
- Get the choice flag
- Parameters:
isChoice
- if the flag shall be enabled
- Returns:
- the flag
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d