Package com.veeva.vault.sdk.api.picklist
Interface Picklist
public interface Picklist
Provides information about a picklist.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves allPicklistValue
objects for this picklist.getLabel()
Retrieves thisPicklist
's UI label.getName()
Retrieves thisPicklist
's name.getPicklistValue
(String picklistValueName) Retrieves aPicklistValue
object for a specific picklist value name.
-
Method Details
-
getLabel
String getLabel()Retrieves thisPicklist
's UI 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 this
Picklist
was retrieved withPicklistService.getPicklist(String)
, the label is in the Vault's base language. If no label exists in the Vault's base language, returns the label in English.If this
Picklist
was retrieved withPicklistService.getPicklist(PicklistRequest)
, the label is in the user's language. If 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 label. If no label exists, returns null.
-
getPicklistValue
Retrieves aPicklistValue
object for a specific picklist value name.- Parameters:
picklistValueName
- the name of a picklist value- Returns:
- a
PicklistValue
object for the picklist value name specified in the parameter
-
getAllPicklistValues
List<PicklistValue> getAllPicklistValues()Retrieves allPicklistValue
objects for this picklist.- Returns:
- a list of
PicklistValue
objects
-
getName
String getName()Retrieves thisPicklist
's name.- Returns:
- the picklist's name
-