Interface PicklistValue
-
Method Summary
Modifier and TypeMethodDescriptionReturns the names (public keys) of the controlling picklist values.getLabel()
Retrieves a picklist value's label.getName()
Retrieves a picklist value's name.int
getOrder()
Retrieves the display order of the picklist value.boolean
Indicates whether the picklist value is dependent on controlling values.boolean
isActive()
Determines if a picklist value is active or inactive.
-
Method Details
-
isActive
boolean isActive()Determines if a picklist value is active or inactive.Picklist values become inactive when a Vault Administrator removes them from the picklist. You cannot use inactive picklist values when updating or inserting a record.
- Returns:
- true if active, false if inactive
-
getLabel
String getLabel()Retrieves a picklist value's label. Depending on the method used to retrieve thisPicklist
, the label may be in the Vault's base language or the user's language. Learn more about base language and user language in Vault Help.If the
Picklist
was retrieved withPicklistService.getPicklist(String)
, this label is in the Vault's base language. If no label exists in the Vault's base language, returns the label in English.If the
Picklist
was retrieved withPicklistService.getPicklist(PicklistRequest)
the label is in the PicklistRequest language. If PicklistRequest doesn't have a language, the label will return in the user's language. If no label exists in the PicklistRequest's language or if the PicklistRequest did not have a language and no label exists in the user's language, returns the label in the Vault's base language. If no label exists in the Vault's base language either, returns the label in English.- Returns:
- the picklist value label. If no label exists, returns null.
-
getName
String getName()Retrieves a picklist value's name.- Returns:
- the picklist value name
-
getOrder
int getOrder()Retrieves the display order of the picklist value.- Returns:
- the picklist value order
-
hasControllingValues
boolean hasControllingValues()Indicates whether the picklist value is dependent on controlling values.- Returns:
- true if the picklist value has controlling values, otherwise false
-
getControllingValueNames
Returns the names (public keys) of the controlling picklist values. Returns an empty list if no controlling values exist.- Returns:
- names of the controlling picklist values
-