|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object databionics.modules.Parameter databionics.modules.MultipleChoiceParameter
public class MultipleChoiceParameter
Parameter with a multiple choice argument.
Field Summary | |
---|---|
protected java.util.List |
choices
list of allowed values |
protected MultipleChoiceElement |
def
default value |
protected static org.apache.log4j.Logger |
log
log4j logging |
protected MultipleChoiceElement |
value
parameter value |
Fields inherited from class databionics.modules.Parameter |
---|
constant, description, longName, name, optional |
Constructor Summary | |
---|---|
MultipleChoiceParameter()
Default constructor |
Method Summary | |
---|---|
void |
addChoice(MultipleChoiceElement mce)
Add a value to the list of allowed values |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.util.List |
getChoices()
Get the list of allowed values |
MultipleChoiceElement |
getDefault()
Get the default value |
MultipleChoiceElement |
getValue()
Get the value or, if value is not defined, the default value |
java.lang.String |
getValueAsString()
String representation of value. |
void |
setDefault(MultipleChoiceElement var)
Set the default value |
void |
setValue(MultipleChoiceElement var)
Set the value if it is in the list of allowed values. |
java.lang.String |
toString()
String representation with name and value as needed for starting a tool. |
java.lang.String |
toXml()
XML representation |
static MultipleChoiceParameter |
valueOf(org.w3c.dom.Element el)
Create a MultipleChoiceParameter from an XML tag |
Methods inherited from class databionics.modules.Parameter |
---|
getDescription, getLongName, getName, isConstant, isOptional, setConstant, setDescription, setLongName, setName, setOptional |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger log
protected MultipleChoiceElement def
protected MultipleChoiceElement value
protected java.util.List choices
Constructor Detail |
---|
public MultipleChoiceParameter()
Method Detail |
---|
public MultipleChoiceElement getValue()
public java.lang.String getValueAsString()
getValueAsString
in class Parameter
public void setValue(MultipleChoiceElement var)
public MultipleChoiceElement getDefault()
public void setDefault(MultipleChoiceElement var)
public java.util.List getChoices()
public void addChoice(MultipleChoiceElement mce)
public java.lang.Object clone()
clone
in class Parameter
public java.lang.String toString()
toString
in class Parameter
public static MultipleChoiceParameter valueOf(org.w3c.dom.Element el)
public java.lang.String toXml()
toXml
in class Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |