@Immutable public class ChoiceFlag extends AbstractFlagConstraint implements GroupPropertyConstraint
Modifier and Type | Field and Description |
---|---|
static ChoiceFlag |
DISABLED
Disabled choice flag
|
static ChoiceFlag |
ENABLED
Enabled choice flag
|
Constructor and Description |
---|
ChoiceFlag()
Creates a default choice flag, which is disabled.
|
Modifier and Type | Method and Description |
---|---|
static ChoiceFlag |
get(boolean isChoice)
Get the choice flag
|
equals, hashCode, isEnabled
public static final ChoiceFlag ENABLED
public static final ChoiceFlag DISABLED
public ChoiceFlag()
get(boolean)
, ENABLED
or
DISABLED
.Cardinality
public static ChoiceFlag get(boolean isChoice)
isChoice
- if the flag shall be enabledBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a