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