Module dev.metaschema.schemagen
Package dev.metaschema.schemagen
Class AbstractGenerationState.AllowedValueCollection
java.lang.Object
dev.metaschema.schemagen.AbstractGenerationState.AllowedValueCollection
- Enclosing class:
- AbstractGenerationState<WRITER,
DATATYPE_MANAGER extends dev.metaschema.schemagen.datatype.IDatatypeManager>
Represents a collection of allowed values with a flag indicating whether the
value set is closed (no other values allowed) or open.
-
Constructor Summary
ConstructorsConstructorDescriptionAllowedValueCollection(boolean closed, List<IAllowedValue> values) Construct a new allowed value collection. -
Method Summary
Modifier and TypeMethodDescriptionGet the list of allowed values.booleanisClosed()Determine if the allowed value set is closed.
-
Constructor Details
-
AllowedValueCollection
Construct a new allowed value collection.- Parameters:
closed-trueif only the specified values are allowed,falseif other values are also permittedvalues- the list of allowed values
-
-
Method Details
-
isClosed
public boolean isClosed()Determine if the allowed value set is closed.- Returns:
trueif only the specified values are allowed,falseif other values are also permitted
-
getValues
Get the list of allowed values.- Returns:
- an unmodifiable list of allowed values
-