|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.greenstone.gs3client.data.QueryFormData
public class QueryFormData
Class QueryFormData represents the <param> and <option> elements that can appear in a <paramList> tag in the xml response returned by a describe request sent to *Query* Service (e.g. FieldQuery, TextQuery).Its subclass QueryFormParam more fully represents the <param> elements, but this class covers the data shared by <param> and <option> elements.
| Nested Class Summary | |
|---|---|
static class |
QueryFormData.QueryFormParam
Static inner class QueryFormParam is a subclass of QueryFormData and uniquely represents the data that can be contained in any <param> tag of the xml response that's returned when a describe request is sent to a Query Service. |
| Field Summary | |
|---|---|
java.lang.String |
displayItem
DisplayItem text content of the parameter or option this QueryFormData represents |
java.lang.String |
name
Name of the parameter or option this QueryFormData represents |
static java.lang.String |
OCCURS_ATT
Constant for the "occurs" attribute name |
| Constructor Summary | |
|---|---|
QueryFormData(org.w3c.dom.Element param)
Contructor to create a QueryFormData object from <param> or <option> elements of a Query response XML message. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
extractDisplayItem(org.w3c.dom.Element param)
Given an element, extracts the text value from the first direct child element that is a <displayItem> element and returns this. |
java.lang.String |
show()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OCCURS_ATT
public final java.lang.String name
public final java.lang.String displayItem
| Constructor Detail |
|---|
public QueryFormData(org.w3c.dom.Element param)
param - the <param> or <option> tag for which a
QueryFormData object is constructed, from the data the element contains.| Method Detail |
|---|
protected java.lang.String extractDisplayItem(org.w3c.dom.Element param)
param - the <param> or <option> tag from which the data
is extracted.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String show()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||