Package jadex.bridge.modelinfo
Class Argument
- java.lang.Object
-
- jadex.bridge.modelinfo.UnparsedExpression
-
- jadex.bridge.modelinfo.Argument
-
- All Implemented Interfaces:
IArgument
- Direct Known Subclasses:
MContextVariable
public class Argument extends UnparsedExpression implements IArgument
Simple default implementation for an argument.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
description
The description.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class jadex.bridge.modelinfo.UnparsedExpression
getClazz, getLanguage, getName, getParsed, getValue, setClazz, setLanguage, setName, setParsedExp, setValue
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Get the description.- Specified by:
getDescription
in interfaceIArgument
- Returns:
- The description.
-
setDescription
public void setDescription(java.lang.String description)
Set the description.- Parameters:
description
- The description to set.
-
getDefaultValue
public UnparsedExpression getDefaultValue()
Get the default value.- Specified by:
getDefaultValue
in interfaceIArgument
- Returns:
- The default value.
-
validate
public boolean validate(java.lang.String input)
Check the validity of an input.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classUnparsedExpression
- Returns:
- The string representation.
-
getResult
public 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.
-
convertArguments
public 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.
-
-