|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.modules.Parameter
databionics.modules.IntParameter
public class IntParameter
Parameter with integer number argument.
Field Summary | |
---|---|
protected java.lang.Integer |
def
default value |
protected static org.apache.log4j.Logger |
log
log4j logging |
protected java.lang.Integer |
max
maximum value |
protected java.lang.Integer |
min
minimum value |
protected java.lang.Integer |
value
parameter value |
Fields inherited from class databionics.modules.Parameter |
---|
constant, description, longName, name, optional |
Constructor Summary | |
---|---|
IntParameter()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.Integer |
getDefault()
Get the default value |
java.lang.Integer |
getMax()
Get the maximum value |
java.lang.Integer |
getMin()
Get the minimum value |
java.lang.Integer |
getValue()
Get the value or, if value is not defined, the default value |
java.lang.String |
getValueAsString()
String representation of value. |
void |
setDefault(int var)
Set the default value |
void |
setDefault(java.lang.Integer var)
Set the default value |
void |
setMax(int i)
Set the maximum value |
void |
setMax(java.lang.Integer i)
Set the maximum value |
void |
setMin(int i)
Set the minimum value |
void |
setMin(java.lang.Integer i)
Set the minimum value |
void |
setValue(int var)
Set the value. |
void |
setValue(java.lang.Integer var)
Set the value. |
void |
setValue(java.lang.String var)
Set the value as a string. |
java.lang.String |
toString()
String representation with name and value as needed for starting a tool. |
java.lang.String |
toXml()
XML representation |
static IntParameter |
valueOf(org.w3c.dom.Element el)
Create a IntParameter 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 java.lang.Integer def
protected java.lang.Integer value
protected java.lang.Integer min
protected java.lang.Integer max
Constructor Detail |
---|
public IntParameter()
Method Detail |
---|
public java.lang.Integer getValue()
public java.lang.String getValueAsString()
getValueAsString
in class Parameter
public void setValue(int var) throws LessThanMinException, GreaterThanMaxException
var
- new value
LessThanMinException
GreaterThanMaxException
public void setValue(java.lang.Integer var) throws LessThanMinException, GreaterThanMaxException
var
- new value
LessThanMinException
GreaterThanMaxException
public void setValue(java.lang.String var) throws java.lang.NumberFormatException, LessThanMinException, GreaterThanMaxException
var
- new value
java.lang.NumberFormatException
LessThanMinException
GreaterThanMaxException
public java.lang.Integer getDefault()
public java.lang.Integer getMin()
public java.lang.Integer getMax()
public void setDefault(int var)
public void setDefault(java.lang.Integer var)
public void setMin(int i)
public void setMin(java.lang.Integer i)
public void setMax(int i)
public void setMax(java.lang.Integer i)
public java.lang.Object clone()
clone
in class Parameter
public java.lang.String toString()
toString
in class Parameter
public static IntParameter valueOf(org.w3c.dom.Element el)
public java.lang.String toXml()
toXml
in class Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |