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

    Constructors
    Constructor
    Description
    Constructs a new dev.metaschema.databind.model.metaschema.binding.ConstraintValueEnum instance with no metadata.
    ConstraintValueEnum(dev.metaschema.core.model.IMetaschemaData data)
    Constructs a new dev.metaschema.databind.model.metaschema.binding.ConstraintValueEnum instance with the specified metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the allowed Value Deprecation Version.
    dev.metaschema.core.model.IMetaschemaData
     
    dev.metaschema.core.datatype.markup.MarkupLine
    Get the field value.
    Get the allowed Value Enumeration Value.
    void
    Set the allowed Value Deprecation Version.
    void
    setRemark(dev.metaschema.core.datatype.markup.MarkupLine value)
    Set the field value.
    void
    Set the allowed Value Enumeration Value.
     

    Methods inherited from class dev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue

    getDeprecatedVersion, getDescription

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ConstraintValueEnum

      Constructs a new dev.metaschema.databind.model.metaschema.binding.ConstraintValueEnum instance with no metadata.
    • ConstraintValueEnum

      public ConstraintValueEnum(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.databind.model.metaschema.binding.ConstraintValueEnum instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getValue

      @NonNull public String getValue()
      Get the allowed Value Enumeration Value.
      Specified by:
      getValue in interface dev.metaschema.core.model.constraint.IAllowedValue
      Specified by:
      getValue in class dev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue
      Returns:
      the value value
    • setValue

      public void setValue(@NonNull String value)
      Set the allowed Value Enumeration Value.
      Parameters:
      value - the value value to set
    • getDeprecated

      @Nullable public String getDeprecated()
      Get the allowed Value Deprecation Version.
      Specified by:
      getDeprecated in class dev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue
      Returns:
      the deprecated value, or null if not set
    • setDeprecated

      public void setDeprecated(@Nullable String value)
      Set the allowed Value Deprecation Version.
      Parameters:
      value - the deprecated value to set, or null to clear
    • getRemark

      @Nullable public dev.metaschema.core.datatype.markup.MarkupLine getRemark()
      Get the field value.
      Specified by:
      getRemark in class dev.metaschema.databind.model.metaschema.impl.AbstractAllowedValue
      Returns:
      the value
    • setRemark

      public void setRemark(@Nullable dev.metaschema.core.datatype.markup.MarkupLine value)
      Set the field value.
      Parameters:
      value - the value to set
    • toString

      public String toString()
      Overrides:
      toString in class Object