Package thredds.catalog.query
Class Selector
- java.lang.Object
-
- thredds.catalog.query.Selector
-
- Direct Known Subclasses:
SelectGeoRegion
,SelectList
,SelectRange
,SelectRangeDate
,SelectService
,SelectStation
public abstract class Selector extends Object
Abstract class for DQC selector elements.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendQuery(StringBuffer sbuff, ArrayList values)
Create the selector result string, and append.boolean
equals(Object o)
Instances which have same id are equal.InvDocumentation
getDescription()
String
getId()
String
getSelectType()
String
getTemplate()
String
getTitle()
int
hashCode()
Override Object.hashCode() to be consistent with this equals.boolean
isMultiple()
boolean
isRequired()
boolean
isUsed()
void
setCompoundSelectors(List compound)
void
setDescription(InvDocumentation desc)
void
setId(String id)
void
setMultiple(String multiple)
void
setRequired(String required)
void
setTemplate(String template)
void
setTitle(String title)
void
setUsed(boolean isUsed)
-
-
-
Field Detail
-
compound
protected List compound
-
isUsed
protected boolean isUsed
-
title
protected String title
-
id
protected String id
-
template
protected String template
-
required
protected boolean required
-
multiple
protected boolean multiple
-
desc
protected InvDocumentation desc
-
-
Method Detail
-
setDescription
public void setDescription(InvDocumentation desc)
-
getDescription
public InvDocumentation getDescription()
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getTemplate
public String getTemplate()
-
setTemplate
public void setTemplate(String template)
-
isRequired
public boolean isRequired()
-
setRequired
public void setRequired(String required)
-
isMultiple
public boolean isMultiple()
-
setMultiple
public void setMultiple(String multiple)
-
getSelectType
public String getSelectType()
-
setCompoundSelectors
public void setCompoundSelectors(List compound)
-
isUsed
public boolean isUsed()
-
setUsed
public void setUsed(boolean isUsed)
-
appendQuery
public void appendQuery(StringBuffer sbuff, ArrayList values)
Create the selector result string, and append.- Parameters:
sbuff
- append herevalues
- list of selected values, each value is a pair (String, Object), where the String is name of the value, and the Object is the value itself. We use the toString() method on the object to get its String representation.
-
equals
public boolean equals(Object o)
Instances which have same id are equal.
-
-