Class ValueListMetadata

java.lang.Object
com.sas.lsaf.clinical.model.ValueListMetadata
All Implemented Interfaces:
Serializable

public class ValueListMetadata extends Object implements Serializable
The class that represents value list metadata for an attribute with a predefined set of allowed values.
Since:
2.4
See Also:
  • Constructor Details

    • ValueListMetadata

      public ValueListMetadata(String id, String name, String modelId, boolean builtIn, boolean extensible, List<ValueListValueMetadata> values)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the value list metadata returned by the API.
      Parameters:
      id - The id of the value list metadata.
      name - The name of the value list metadata.
      modelId - The id of the model from which the value list metadata is defined.
      builtIn - Whether the application is aware of the value list values or used by the application in some way.
      extensible - Whether the value list metadata is restricted to only the items in the list or can include additional values.
      values - The metadata for the values of the value list attribute.
  • Method Details

    • getId

      public String getId()
      Gets the id of the value list metadata.
      Returns:
      The id of the value list metadata.
    • getName

      public String getName()
      The name of the value list metadata.
      Returns:
      The name of the value list metadata.
    • getModelId

      public String getModelId()
      Gets the id of the model from which the value list metadata is defined.
      Returns:
      The id of the model from which the value list metadata is defined.
    • isBuiltIn

      public boolean isBuiltIn()
      Gets whether the application is aware of the value list values or used by the application in some way.
      Returns:
      Whether the application is aware of the value list values or used by the application in some way.
    • isExtensible

      public boolean isExtensible()
      Gets whether the value list metadata is restricted to only the items in the list or can include additional values. This value is used in validation to check if the attribute value conforms to value list. If not extensible, any value not in the value list will be flagged as invalid value. Otherwise, other values are allowed.
      Returns:
      Whether the value list metadata is restricted to only the items in the list or can include additional values.
    • getValueListValues

      public List<ValueListValueMetadata> getValueListValues()
      Get the ValueListValueMetadata associated with the value list.
      Returns:
      List The ValueListValueMetadata associated with the value list.
    • getDefaultValue

      public String getDefaultValue()
      Get the default value of the value list.
      Returns:
      String The default value of the value list.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object