|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.routing.command.SearchXMLObject atg.search.routing.command.search.Field
public class Field
Field input for TreeQueryRequest
. All values are required.
The request will typically have one or more fields. At least one field must be searchable--see Field.Op
.
The fields are echoed in the response with additional information. See FieldResponse
.
Nested Class Summary | |
---|---|
static class |
Field.Op
Field operations. |
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
Field()
|
Method Summary | |
---|---|
protected static Field |
fromXmlParser(atg.search.routing.utils.SearchMessageNode pXml)
|
protected void |
getAttributeXML(java.lang.StringBuilder sb)
|
protected void |
getBodyXML(java.lang.StringBuilder sb)
|
java.lang.String |
getName()
Returns a single name, the first if there are multiple, or null if there are none |
java.lang.String[] |
getNames()
Returns an array of name strings |
java.lang.String |
getNames(int pIndex)
Indexed getter that can be called for any index, even if out of bounds. |
java.lang.String |
getNamesString()
Returns the list of names as a comma-delimited string |
Field.Op |
getOp()
Returns the Operation |
java.lang.String |
getRequestTag()
Gets the xml element tag used in the request |
java.lang.String |
getValue()
Returns the Field value |
protected boolean |
isNull()
Returns true if all elements are null. |
void |
setName(java.lang.String pName)
Sets a single name for the field. |
void |
setNames(int pIndex,
java.lang.String pName)
Indexed setter that automatically grows the underlying array for any index value. |
void |
setNames(java.lang.String[] pNames)
Sets an array of names |
void |
setNamesString(java.lang.String pNames)
Initializes the array of names from a comma-delimited string of names |
void |
setOp(Field.Op pOp)
Sets the Operation |
void |
setValue(java.lang.String pValue)
Sets the Field value |
Methods inherited from class atg.search.routing.command.SearchXMLObject |
---|
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public Field()
Method Detail |
---|
protected boolean isNull()
public java.lang.String getName()
public void setName(java.lang.String pName)
pName
- name of the fieldsetNames(String[])
,
setNamesString(String)
public void setNames(java.lang.String[] pNames)
pNames
- array of name stringspublic java.lang.String[] getNames()
getName()
,
getNamesString()
public void setNames(int pIndex, java.lang.String pName)
pName
- a statementpublic java.lang.String getNames(int pIndex)
pIndex
-
public java.lang.String getNamesString()
public void setNamesString(java.lang.String pNames)
pNames
- comma-delimited String of namespublic Field.Op getOp()
public void setOp(Field.Op pOp)
pOp
- operationpublic java.lang.String getValue()
public void setValue(java.lang.String pValue)
pValue
- field valuepublic java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject
protected static Field fromXmlParser(atg.search.routing.utils.SearchMessageNode pXml)
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
protected void getBodyXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getBodyXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |