|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
eu.esdihumboldt.hale.common.schema.model.constraint.type.HasValueFlag
@Immutable public class HasValueFlag
Flags if a type has a direct value, apart from eventual properties, defined
by the schema. By default enabled for TypeDefinition
s that have no
properties, otherwise disabled by default.
The Binding
constraint defines the Java binding for the value.
Binding
,
AugmentedValueFlag
Field Summary | |
---|---|
static HasValueFlag |
DISABLED
Disabled has value flag |
static HasValueFlag |
ENABLED
Enabled has value flag |
Constructor Summary | |
---|---|
HasValueFlag()
Creates a default simple type flag, which is disabled. |
|
HasValueFlag(TypeDefinition typeDef)
Creates a default simple type flag from a type definition. |
Method Summary | |
---|---|
static HasValueFlag |
get(boolean hasValue)
Get the simple type 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 |
---|
public static final HasValueFlag ENABLED
public static final HasValueFlag DISABLED
Constructor Detail |
---|
public HasValueFlag()
ENABLED
or
DISABLED
.
Constraint
public HasValueFlag(TypeDefinition typeDef)
typeDef
- the type definitionConstraint
Method Detail |
---|
public static HasValueFlag get(boolean hasValue)
hasValue
- if the flag shall be enabled
public boolean isInheritable()
TypeConstraint
isInheritable
in interface TypeConstraint
TypeConstraint.isInheritable()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |