@Immutable public class AugmentedValueFlag extends AbstractFlagConstraint implements TypeConstraint
HasValueFlag
is
enabled, meaning there is a value defined through the schema.Binding
constraint defines the Java binding for the value.Binding
,
HasValueFlag
Modifier and Type | Field and Description |
---|---|
static AugmentedValueFlag |
DISABLED
Disabled augmented value flag
|
static AugmentedValueFlag |
ENABLED
Enabled augmented value flag
|
Modifier | Constructor and Description |
---|---|
|
AugmentedValueFlag()
Creates a default augmented value flag, which is disabled.
|
protected |
AugmentedValueFlag(boolean enabled) |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, hashCode, isEnabled
public static final AugmentedValueFlag ENABLED
public static final AugmentedValueFlag DISABLED
public AugmentedValueFlag()
ENABLED
or
DISABLED
.Constraint
protected AugmentedValueFlag(boolean enabled)
public static AugmentedValueFlag get(boolean augmentedValue)
augmentedValue
- if the flag shall be enabledpublic boolean isInheritable()
TypeConstraint
isInheritable
in interface TypeConstraint
TypeConstraint.isInheritable()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a