|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthredds.catalog.query.Selector
public abstract class Selector
Abstract class for DQC selector elements.
Field Summary | |
---|---|
protected ArrayList |
children
|
protected List |
compound
|
protected InvDocumentation |
desc
|
protected String |
id
|
protected boolean |
isUsed
|
protected boolean |
multiple
|
protected boolean |
required
|
protected String |
template
|
protected String |
title
|
Constructor Summary | |
---|---|
protected |
Selector()
|
protected |
Selector(String title,
String id,
String template,
String required,
String multiple)
Construct from fields in XML catalog. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArrayList children
protected List compound
protected boolean isUsed
protected String title
protected String id
protected String template
protected boolean required
protected boolean multiple
protected InvDocumentation desc
Constructor Detail |
---|
protected Selector()
protected Selector(String title, String id, String template, String required, String multiple)
title
- : human displayable nameid
- : unique idtemplate
- : for the query stringrequired
- : true or falsemultiple
- : true or falseMethod Detail |
---|
public void setDescription(InvDocumentation desc)
public InvDocumentation getDescription()
public String getTitle()
public void setTitle(String title)
public String getId()
public void setId(String id)
public String getTemplate()
public void setTemplate(String template)
public boolean isRequired()
public void setRequired(String required)
public boolean isMultiple()
public void setMultiple(String multiple)
public String getSelectType()
public void setCompoundSelectors(List compound)
public boolean isUsed()
public void setUsed(boolean isUsed)
public void appendQuery(StringBuffer sbuff, ArrayList values)
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.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |