Package com.sas.lsaf.clinical.model
Class ValueListMetadata
java.lang.Object
com.sas.lsaf.clinical.model.ValueListMetadata
- All Implemented Interfaces:
Serializable
The class that represents value list metadata for an attribute with a predefined set of allowed values.
- Since:
- 2.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValueListMetadata(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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the default value of the value list.getId()Gets the id of the value list metadata.Gets the id of the model from which the value list metadata is defined.getName()The name of the value list metadata.Get the ValueListValueMetadata associated with the value list.inthashCode()booleanGets whether the application is aware of the value list values or used by the application in some way.booleanGets whether the value list metadata is restricted to only the items in the list or can include additional values.toString()
-
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
Gets the id of the value list metadata.- Returns:
- The id of the value list metadata.
-
getName
The name of the value list metadata.- Returns:
- The name of the value list metadata.
-
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
Get the ValueListValueMetadata associated with the value list.- Returns:
- List
The ValueListValueMetadata associated with the value list.
-
getDefaultValue
Get the default value of the value list.- Returns:
- String The default value of the value list.
-
equals
-
hashCode
public int hashCode() -
toString
-