Module dev.metaschema.databind
Class ConstraintValueEnum
java.lang.Object
dev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue
dev.metaschema.databind.model.metaschema.binding.ConstraintValueEnum
- All Implemented Interfaces:
dev.metaschema.core.model.constraint.IAllowedValue,dev.metaschema.core.model.IBoundObject
@MetaschemaField(formalName="Allowed Value Enumeration",
name="constraint-value-enum",
moduleClass=MetaschemaModelModule.class)
public class ConstraintValueEnum
extends dev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue
implements dev.metaschema.core.model.IBoundObject
Allowed Value Enumeration.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.model.metaschema.binding.ConstraintValueEnuminstance with no metadata.ConstraintValueEnum(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.databind.model.metaschema.binding.ConstraintValueEnuminstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowed Value Deprecation Version.dev.metaschema.core.model.IMetaschemaDatadev.metaschema.core.datatype.markup.MarkupLineGet the field value.getValue()Get the allowed Value Enumeration Value.voidsetDeprecated(String value) Set the allowed Value Deprecation Version.voidsetRemark(dev.metaschema.core.datatype.markup.MarkupLine value) Set the field value.voidSet the allowed Value Enumeration Value.toString()Methods inherited from class dev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue
getDeprecatedVersion, getDescription
-
Constructor Details
-
ConstraintValueEnum
public ConstraintValueEnum()Constructs a newdev.metaschema.databind.model.metaschema.binding.ConstraintValueEnuminstance with no metadata. -
ConstraintValueEnum
Constructs a newdev.metaschema.databind.model.metaschema.binding.ConstraintValueEnuminstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getValue
Get the allowed Value Enumeration Value.- Specified by:
getValuein interfacedev.metaschema.core.model.constraint.IAllowedValue- Specified by:
getValuein classdev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue- Returns:
- the value value
-
setValue
Set the allowed Value Enumeration Value.- Parameters:
value- the value value to set
-
getDeprecated
Get the allowed Value Deprecation Version.- Specified by:
getDeprecatedin classdev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue- Returns:
- the deprecated value, or
nullif not set
-
setDeprecated
Set the allowed Value Deprecation Version.- Parameters:
value- the deprecated value to set, ornullto clear
-
getRemark
Get the field value.- Specified by:
getRemarkin classdev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue- Returns:
- the value
-
setRemark
Set the field value.- Parameters:
value- the value to set
-
toString
-