|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.options.Parameter
Field Summary | |
protected int |
curNum
the number of values in this parameter. |
protected java.lang.String |
label
the parameter label. |
protected int |
majorType
major type. |
protected int |
minorType
minor type. |
protected java.lang.String |
value
the value of the parameter. |
protected java.lang.String[] |
values
the values of the parameter. |
Constructor Summary | |
Parameter(int majorType,
int minorType,
java.lang.String label,
int num,
java.lang.String[] vals)
constructor. |
|
Parameter(int majorType,
int minorType,
java.lang.String label,
java.lang.String value)
constructor. |
|
Parameter(int majorType,
int minorType,
java.lang.String label,
java.lang.String[] vals)
constructor. |
Method Summary | |
java.lang.Object |
clone()
methods from class Object |
boolean |
getBoolValue()
Returns the boolean value if this parameter is a boolean type. |
boolean[] |
getBoolValues()
Returns the boolean values if this parameter is a boolean array type. |
int |
getCount()
Returns the number of parameter values. |
double |
getDoubleValue()
Returns the double value if this parameter is a double type. |
double[] |
getDoubleValues()
Returns the double values if this parameter is a double array type. |
int |
getIntValue()
Returns the integer value if this parameter is an integer type. |
short[] |
getIntValues()
Returns the integer values if this parameter is an integer array type. |
java.lang.String |
getLabel()
Returns the label of this parameter. |
int |
getMajorType()
Returns the major type of this parameter. |
int |
getMinorType()
Returns the minor type of this parameter. |
java.lang.String |
getStringValue()
Returns the string value if this parameter is a string type. |
java.lang.String[] |
getStringValues()
Returns the string values if this parameter is a string array type. |
void |
setBoolValue(boolean val)
Sets the boolean value if this paramter is a boolean type. |
void |
setBoolValue(int idx,
boolean val)
Sets a specific element in the parameter array with a specific boolean value if this paramter is a boolean array type. |
void |
setCount(int num)
Sets the number of paramter values. |
void |
setDoubleValue(double val)
Sets the double value if this paramter is a double type. |
void |
setDoubleValue(int idx,
double val)
Sets a specific element in the parameter array with a specific double value if this paramter is a double array type. |
void |
setIntValue(int val)
Sets the integer value if this paramter is an integer type. |
void |
setIntValue(int idx,
int val)
Sets a specific element in the parameter array with a specific integer value if this paramter is an integer array type. |
void |
setLabel(java.lang.String str)
Sets the parameter label. |
void |
setStringValue(int idx,
java.lang.String val)
Sets a specific element in the parameter array with a specific string value if this paramter is a string array type. |
void |
setStringValue(java.lang.String val)
Sets the string value if this paramter is a string type. |
java.lang.String |
toString()
methods from class Object |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int curNum
protected int majorType
protected int minorType
protected java.lang.String label
protected java.lang.String value
protected java.lang.String[] values
Constructor Detail |
public Parameter(int majorType, int minorType, java.lang.String label, java.lang.String value)
majorType
- the major type.minorType
- the minor type.label
- the paramter label.value
- the parameter value.public Parameter(int majorType, int minorType, java.lang.String label, java.lang.String[] vals)
majorType
- the major type.minorType
- the minor type.label
- the paramter label.public Parameter(int majorType, int minorType, java.lang.String label, int num, java.lang.String[] vals)
majorType
- the major type.minorType
- the minor type.label
- the paramter label.num
- the number of parameter values.Method Detail |
public int getMajorType()
public int getMinorType()
public java.lang.String getLabel()
public int getCount()
public boolean getBoolValue()
public int getIntValue()
public double getDoubleValue()
public java.lang.String getStringValue()
public boolean[] getBoolValues()
public short[] getIntValues()
public double[] getDoubleValues()
public java.lang.String[] getStringValues()
public void setLabel(java.lang.String str)
str
- the label to set.public void setCount(int num)
num
- the number to set.public void setBoolValue(boolean val)
val
- the value to set.public void setIntValue(int val)
val
- the value to set.public void setDoubleValue(double val)
val
- the value to set.public void setStringValue(java.lang.String val)
val
- the value to set.public void setBoolValue(int idx, boolean val)
idx
- the index of the element.val
- the value to set.public void setIntValue(int idx, int val)
idx
- the index of the element.val
- the value to set.public void setDoubleValue(int idx, double val)
idx
- the index of the element.val
- the value to set.public void setStringValue(int idx, java.lang.String val)
idx
- the index of the element.val
- the value to set.public java.lang.String toString()
public java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |