com.sforce.soap.tooling.SearchSnippet Maven / Gradle / Ivy
Show all versions of sforce-tooling-api Show documentation
package com.sforce.soap.tooling;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for SearchSnippet complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SearchSnippet">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="text" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="wholeFields" type="{urn:tooling.soap.sforce.com}NameValuePair" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SearchSnippet", propOrder = {
"text",
"wholeFields"
})
public class SearchSnippet {
protected String text;
protected List wholeFields;
/**
* Gets the value of the text property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getText() {
return text;
}
/**
* Sets the value of the text property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setText(String value) {
this.text = value;
}
/**
* Gets the value of the wholeFields property.
*
*
* 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 wholeFields property.
*
*
* For example, to add a new item, do as follows:
*
* getWholeFields().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NameValuePair }
*
*
*/
public List getWholeFields() {
if (wholeFields == null) {
wholeFields = new ArrayList();
}
return this.wholeFields;
}
}