public abstract class Selector extends Object
Modifier and Type | Field and Description |
---|---|
protected List |
compound |
protected InvDocumentation |
desc |
protected String |
id |
protected boolean |
isUsed |
protected boolean |
multiple |
protected boolean |
required |
protected String |
template |
protected String |
title |
Modifier | Constructor and Description |
---|---|
protected |
Selector() |
protected |
Selector(String title,
String id,
String template,
String required,
String multiple)
Construct from fields in XML catalog.
|
Modifier and Type | Method and 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) |
protected List compound
protected boolean isUsed
protected String title
protected String id
protected String template
protected boolean required
protected boolean multiple
protected InvDocumentation desc
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)
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.