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 Object
implements Choice

Implementation of a thredds query choice element.

Author:
john caron

Constructor Summary
ListChoice(Selector parent, String name, String value, String description)
          Construct from fields in XML catalog.
 
Method Summary
 void addNestedSelector(SelectList s)
           
 boolean equals(Object o)
           
 InvDocumentation getDescription()
           
 String getName()
           
 ArrayList getNestedSelectors()
           
 Selector getParentSelector()
           
 String getTemplate()
           
 String getValue()
           
 int hashCode()
          Override Object.hashCode() to implement equals.
 boolean hasNestedSelectors()
           
 void setDescription(InvDocumentation desc)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListChoice

public ListChoice(Selector parent,
                  String name,
                  String value,
                  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 String getName()

getValue

public String getValue()
Specified by:
getValue in interface Choice

getParentSelector

public Selector getParentSelector()

getTemplate

public String getTemplate()

addNestedSelector

public void addNestedSelector(SelectList s)

getNestedSelectors

public ArrayList getNestedSelectors()

hasNestedSelectors

public boolean hasNestedSelectors()

setDescription

public void setDescription(InvDocumentation desc)

getDescription

public InvDocumentation getDescription()

toString

public String toString()
Specified by:
toString in interface Choice
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Override Object.hashCode() to implement equals.

Overrides:
hashCode in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.