public class Parameter
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
Parameter(java.lang.String typ,
int min,
int max)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String v)
add a value to a parameter
|
void |
addValueCat(java.lang.String[] v)
add a value with value-component to a parameter
|
static java.lang.String |
cat(java.lang.String[] v)
Parameter-value-components v are connected with a value-separator to one string
|
Parameter |
clone()
create an clone of an parameter, used by CommandFrame.clone
|
int |
getMax()
get max number of possible values
|
int |
getMin()
get min number of possible values
|
java.lang.String |
getTyp()
Get type of parameter
|
java.lang.String[] |
getValues()
get values of parameter
|
java.lang.String[] |
getValueSplit(int i)
get the i.th value from a parameter.
|
static java.lang.String |
replaceSyntaxSign(java.lang.String value) |
static java.lang.String[] |
split(java.lang.String v)
A String v is splited in to its parameter-value-components
|
public Parameter(java.lang.String typ,
int min,
int max)
typ - Typ of Parametermin - Min number of possible valuesmax - Max number of possible valuespublic static java.lang.String cat(java.lang.String[] v)
throws CommandException
v - CommandException, - when v[i] contains a Cmd.VALUE_SEPARATORCommandExceptionpublic static java.lang.String[] split(java.lang.String v)
v - public static java.lang.String replaceSyntaxSign(java.lang.String value)
public java.lang.String getTyp()
public int getMin()
public int getMax()
public java.lang.String[] getValues()
public void addValue(java.lang.String v)
v - public void addValueCat(java.lang.String[] v)
throws CommandException
v - CommandExceptionpublic java.lang.String[] getValueSplit(int i)
i - public Parameter clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException