public abstract class Selector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
compound |
protected InvDocumentation |
desc |
protected java.lang.String |
id |
protected boolean |
isUsed |
protected boolean |
multiple |
protected boolean |
required |
protected java.lang.String |
template |
protected java.lang.String |
title |
Modifier | Constructor and Description |
---|---|
protected |
Selector() |
protected |
Selector(java.lang.String title,
java.lang.String id,
java.lang.String template,
java.lang.String required,
java.lang.String multiple)
Construct from fields in XML catalog.
|
Modifier and Type | Method and Description |
---|---|
void |
appendQuery(java.lang.StringBuffer sbuff,
java.util.ArrayList values)
Create the selector result string, and append.
|
boolean |
equals(java.lang.Object o)
Instances which have same id are equal.
|
InvDocumentation |
getDescription() |
java.lang.String |
getId() |
java.lang.String |
getSelectType() |
java.lang.String |
getTemplate() |
java.lang.String |
getTitle() |
int |
hashCode()
Override Object.hashCode() to be consistent with this equals.
|
boolean |
isMultiple() |
boolean |
isRequired() |
boolean |
isUsed() |
void |
setCompoundSelectors(java.util.List compound) |
void |
setDescription(InvDocumentation desc) |
void |
setId(java.lang.String id) |
void |
setMultiple(java.lang.String multiple) |
void |
setRequired(java.lang.String required) |
void |
setTemplate(java.lang.String template) |
void |
setTitle(java.lang.String title) |
void |
setUsed(boolean isUsed) |
protected java.util.List compound
protected boolean isUsed
protected java.lang.String title
protected java.lang.String id
protected java.lang.String template
protected boolean required
protected boolean multiple
protected InvDocumentation desc
protected Selector()
protected Selector(java.lang.String title, java.lang.String id, java.lang.String template, java.lang.String required, java.lang.String multiple)
title
- : human displayable nameid
- : unique idtemplate
- : for the query stringrequired
- : true or falsemultiple
- : true or falsepublic void setDescription(InvDocumentation desc)
public InvDocumentation getDescription()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getTemplate()
public void setTemplate(java.lang.String template)
public boolean isRequired()
public void setRequired(java.lang.String required)
public boolean isMultiple()
public void setMultiple(java.lang.String multiple)
public java.lang.String getSelectType()
public void setCompoundSelectors(java.util.List compound)
public boolean isUsed()
public void setUsed(boolean isUsed)
public void appendQuery(java.lang.StringBuffer sbuff, java.util.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(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object