thredds.catalog.query
Class ListChoice

java.lang.Object
  extended by 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.
 
Method Summary
 void addNestedSelector(SelectList s)
           
 boolean equals(java.lang.Object o)
           
 InvDocumentation getDescription()
           
 java.lang.String getName()
           
 java.util.ArrayList getNestedSelectors()
           
 Selector getParentSelector()
           
 java.lang.String getTemplate()
           
 java.lang.String getValue()
           
 int hashCode()
          Override Object.hashCode() to implement equals.
 boolean hasNestedSelectors()
           
 void setDescription(InvDocumentation desc)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 selector
name - choice name - display to user
value - choice value - send to server
Method Detail

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