Package com.veeva.vault.sdk.api.picklist
Interface Picklist
public interface Picklist
Provides information about a picklist.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves allPicklistValueobjects for this picklist.getLabel()Retrieves thisPicklist's UI label.getName()Retrieves thisPicklist's name.getPicklistValue(String picklistValueName) Retrieves aPicklistValueobject 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
Picklistwas 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
Picklistwas 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 aPicklistValueobject for a specific picklist value name.- Parameters:
picklistValueName- the name of a picklist value- Returns:
- a
PicklistValueobject for the picklist value name specified in the parameter
-
getAllPicklistValues
List<PicklistValue> getAllPicklistValues()Retrieves allPicklistValueobjects for this picklist.- Returns:
- a list of
PicklistValueobjects
-
getName
String getName()Retrieves thisPicklist's name.- Returns:
- the picklist's name
-