thredds.dqc
Class Selector

java.lang.Object
  extended by thredds.dqc.Selector
Direct Known Subclasses:
SelectFromRange

public abstract class Selector
extends java.lang.Object

Represents a DQC selector element. User: edavis Date: Jan 22, 2004 Time: 10:26:24 PM


Field Summary
protected  Description description
           
protected  java.lang.String id
           
protected  boolean multiple
           
protected  boolean required
           
protected  java.lang.String template
           
protected  java.lang.String title
           
 
Constructor Summary
protected Selector()
          Null constructor.
protected Selector(java.lang.String id, java.lang.String title, java.lang.String template, boolean required, boolean multiple, Description description)
          Full constructor.
protected Selector(java.lang.String id, java.lang.String title, java.lang.String template, Description description)
          Full constructor.
 
Method Summary
 Description getDescription()
          Get the description for this selector.
 java.lang.String getId()
          Get the id of this selector.
 java.lang.String getTemplate()
          Get the template of this selector.
 java.lang.String getTitle()
          Get the title of this selector.
 boolean isMultiple()
          Check whether multiple selections can be made on this selector.
 boolean isRequired()
          Check if this selector is required for a valid query.
 void setDescription(java.lang.String description)
           
protected  void setId(java.lang.String id)
          Set the id of this selector.
 void setMultiple(boolean multiple)
          Set whether multiple selections can be made on this selector.
 void setRequired(boolean required)
          Set whether this selector is required for a valid query.
protected  void setTemplate(java.lang.String template)
          Set the template of this selector.
 void setTitle(java.lang.String title)
          Set the title of this selector.
abstract  Selection validateSelection(Selection selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

title

protected java.lang.String title

template

protected java.lang.String template

required

protected boolean required

multiple

protected boolean multiple

description

protected Description description
Constructor Detail

Selector

protected Selector()
Null constructor.


Selector

protected Selector(java.lang.String id,
                   java.lang.String title,
                   java.lang.String template,
                   boolean required,
                   boolean multiple,
                   Description description)
Full constructor.


Selector

protected Selector(java.lang.String id,
                   java.lang.String title,
                   java.lang.String template,
                   Description description)
Full constructor.

Method Detail

getId

public java.lang.String getId()
Get the id of this selector.


getTitle

public java.lang.String getTitle()
Get the title of this selector.


getTemplate

public java.lang.String getTemplate()
Get the template of this selector.


isRequired

public boolean isRequired()
Check if this selector is required for a valid query.


isMultiple

public boolean isMultiple()
Check whether multiple selections can be made on this selector.


getDescription

public Description getDescription()
Get the description for this selector.


setId

protected void setId(java.lang.String id)
Set the id of this selector.


setTitle

public void setTitle(java.lang.String title)
Set the title of this selector.


setTemplate

protected void setTemplate(java.lang.String template)
Set the template of this selector.


setRequired

public void setRequired(boolean required)
Set whether this selector is required for a valid query.


setMultiple

public void setMultiple(boolean multiple)
Set whether multiple selections can be made on this selector.


setDescription

public void setDescription(java.lang.String description)

validateSelection

public abstract Selection validateSelection(Selection selection)