thredds.catalog.query
Class ListChoice
java.lang.Object
thredds.catalog.query.ListChoice
- All Implemented Interfaces:
- Choice
- Direct Known Subclasses:
- Station
public class ListChoice
- extends java.lang.Object
- implements Choice
Implementation of a thredds query choice element.
- Author:
- john caron
|
Constructor Summary |
ListChoice(Selector parent,
java.lang.String name,
java.lang.String value,
java.lang.String description)
Construct from fields in XML catalog. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ListChoice
public ListChoice(Selector parent,
java.lang.String name,
java.lang.String value,
java.lang.String description)
- Construct from fields in XML catalog.
- Parameters:
parent - parent selectorname - choice name - display to uservalue - choice value - send to server
getName
public java.lang.String getName()
getValue
public java.lang.String getValue()
- Specified by:
getValue in interface Choice
getParentSelector
public Selector getParentSelector()
getTemplate
public java.lang.String getTemplate()
addNestedSelector
public void addNestedSelector(SelectList s)
getNestedSelectors
public java.util.ArrayList getNestedSelectors()
hasNestedSelectors
public boolean hasNestedSelectors()
setDescription
public void setDescription(InvDocumentation desc)
getDescription
public InvDocumentation getDescription()
toString
public java.lang.String toString()
- Specified by:
toString in interface Choice- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Override Object.hashCode() to implement equals.
- Overrides:
hashCode in class java.lang.Object