public class Argument extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEM_NAME
Element name for argument
|
static String |
IN
Direction constant for input arguments
|
static String |
OUT
Direction constant for output arguments
|
| Constructor and Description |
|---|
Argument()
Creates a new Argument with no associated service.
|
Argument(Node servNode)
Creates a new Argument associated with the specified service node.
|
Argument(Node servNode,
Node argNode)
Creates a new Argument associated with the specified service node and argument node.
|
Argument(String name,
String value)
Creates a new Argument with the specified name and value.
|
| Modifier and Type | Method and Description |
|---|---|
Action |
getAction()
Gets the action this argument belongs to.
|
Node |
getActionNode()
Gets the action node this argument belongs to.
|
Node |
getArgumentNode()
Gets the argument node containing argument definition.
|
String |
getDirection()
Gets the direction of this argument.
|
int |
getIntegerValue()
Gets the integer value of this argument.
|
String |
getName()
Gets the name of this argument.
|
StateVariable |
getRelatedStateVariable()
Gets the related state variable for this argument.
|
String |
getRelatedStateVariableName()
Gets the name of the related state variable for this argument.
|
Service |
getService()
Gets the service this argument belongs to.
|
Object |
getUserData()
Gets the user-defined data associated with this argument.
|
String |
getValue()
Gets the string value of this argument.
|
static boolean |
isArgumentNode(Node node)
Checks if the specified node is an argument node.
|
boolean |
isInDirection()
Checks if this argument is an input argument.
|
boolean |
isOutDirection()
Checks if this argument is an output argument.
|
void |
setDirection(String value)
Sets the direction of this argument (in or out).
|
void |
setName(String value)
Sets the name of this argument.
|
void |
setRelatedStateVariableName(String value)
Sets the name of the related state variable for this argument.
|
(package private) void |
setService(Service s)
Sets the service this argument belongs to.
|
void |
setUserData(Object data)
Sets user-defined data for this argument.
|
void |
setValue(int value)
Sets the integer value of this argument.
|
void |
setValue(String value)
Sets the string value of this argument.
|
public static final String ELEM_NAME
public static final String IN
public static final String OUT
public Argument()
public Argument(Node servNode)
servNode - service node to associatepublic Argument(Node servNode, Node argNode)
servNode - service node to associateargNode - argument node containing definitionpublic Action getAction()
public Node getActionNode()
public Node getArgumentNode()
public String getDirection()
public int getIntegerValue()
public String getName()
public StateVariable getRelatedStateVariable()
public String getRelatedStateVariableName()
public Service getService()
public Object getUserData()
public String getValue()
public static boolean isArgumentNode(Node node)
node - node to checkpublic boolean isInDirection()
public boolean isOutDirection()
public void setDirection(String value)
value - direction to setpublic void setName(String value)
value - name to setpublic void setRelatedStateVariableName(String value)
value - state variable name to setvoid setService(Service s)
s - service to setpublic void setUserData(Object data)
data - data to setpublic void setValue(int value)
value - integer value to setpublic void setValue(String value)
value - value to set