public class Argument extends UnparsedExpression implements IArgument
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description
The description.
|
Constructor and Description |
---|
Argument()
Create a new argument.
|
Argument(java.lang.String name,
java.lang.String description,
java.lang.String classname,
java.lang.String defaultvalue)
Create a new argument.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
convertArguments(java.util.Collection<Tuple2<java.lang.String,java.lang.Object>> results)
Convert arguments to argument map.
|
UnparsedExpression |
getDefaultValue()
Get the default value.
|
java.lang.String |
getDescription()
Get the description.
|
static java.lang.Object |
getResult(java.util.Collection<Tuple2<java.lang.String,java.lang.Object>> results,
java.lang.String name)
Get a specific result from a result collection.
|
void |
setDescription(java.lang.String description)
Set the description.
|
java.lang.String |
toString()
Get the string representation.
|
boolean |
validate(java.lang.String input)
Check the validity of an input.
|
getClazz, getLanguage, getName, getParsed, getValue, setClazz, setLanguage, setName, setParsedExp, setValue
public Argument()
public Argument(java.lang.String name, java.lang.String description, java.lang.String classname, java.lang.String defaultvalue)
public java.lang.String getDescription()
getDescription
in interface IArgument
public void setDescription(java.lang.String description)
description
- The description to set.public UnparsedExpression getDefaultValue()
getDefaultValue
in interface IArgument
public boolean validate(java.lang.String input)
public java.lang.String toString()
toString
in class UnparsedExpression
public static java.lang.Object getResult(java.util.Collection<Tuple2<java.lang.String,java.lang.Object>> results, java.lang.String name)
public static java.util.Map<java.lang.String,java.lang.Object> convertArguments(java.util.Collection<Tuple2<java.lang.String,java.lang.Object>> results)