thredds.catalog.query
Class SelectList

java.lang.Object
  extended by thredds.catalog.query.Selector
      extended by thredds.catalog.query.SelectList

public class SelectList
extends Selector

Implementation of a DQC list selector element. A SelectList contains a list of Objects of type ListChoice.

Author:
john caron

Field Summary
 
Fields inherited from class thredds.catalog.query.Selector
children, compound, desc, id, isUsed, multiple, required, template, title
 
Constructor Summary
SelectList()
           
SelectList(String label, String id, String template, String required, String multiple)
           
 
Method Summary
 void addChoice(ListChoice c)
           
 boolean equals(Object o)
          Instances which have same id are equal.
 ArrayList getChoices()
           
 SelectList getFirstNestedSelector()
           
 int getSize()
           
 int hashCode()
          Override Object.hashCode() to implement equals.
 boolean hasNestedSelectors()
           
 
Methods inherited from class thredds.catalog.query.Selector
appendQuery, getDescription, getId, getSelectType, getTemplate, getTitle, isMultiple, isRequired, isUsed, setCompoundSelectors, setDescription, setId, setMultiple, setRequired, setTemplate, setTitle, setUsed
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectList

public SelectList()

SelectList

public SelectList(String label,
                  String id,
                  String template,
                  String required,
                  String multiple)
Method Detail

addChoice

public void addChoice(ListChoice c)

hasNestedSelectors

public boolean hasNestedSelectors()

getFirstNestedSelector

public SelectList getFirstNestedSelector()

getChoices

public ArrayList getChoices()

getSize

public int getSize()

equals

public boolean equals(Object o)
Description copied from class: Selector
Instances which have same id are equal.

Overrides:
equals in class Selector

hashCode

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

Overrides:
hashCode in class Selector


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