public class Picklist extends Object
Java class for Picklist complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Picklist">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="controllingField" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="picklistValues" type="{urn:metadata.tooling.soap.sforce.com}PicklistValue" maxOccurs="unbounded" minOccurs="0"/>
<element name="sorted" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
controllingField |
protected List<PicklistValue> |
picklistValues |
protected boolean |
sorted |
| Constructor and Description |
|---|
Picklist() |
| Modifier and Type | Method and Description |
|---|---|
String |
getControllingField()
Gets the value of the controllingField property.
|
List<PicklistValue> |
getPicklistValues()
Gets the value of the picklistValues property.
|
boolean |
isSorted()
Gets the value of the sorted property.
|
void |
setControllingField(String value)
Sets the value of the controllingField property.
|
void |
setSorted(boolean value)
Sets the value of the sorted property.
|
protected String controllingField
protected List<PicklistValue> picklistValues
protected boolean sorted
public String getControllingField()
Stringpublic void setControllingField(String value)
value - allowed object is
Stringpublic List<PicklistValue> getPicklistValues()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the picklistValues property.
For example, to add a new item, do as follows:
getPicklistValues().add(newItem);
Objects of the following type(s) are allowed in the list
PicklistValue
public boolean isSorted()
public void setSorted(boolean value)
Copyright © 2016. All rights reserved.