Package jadex.bpmn.model
Class MParameter
- java.lang.Object
-
- jadex.bpmn.model.MIdElement
-
- jadex.bpmn.model.MAnnotationElement
-
- jadex.bpmn.model.MProperty
-
- jadex.bpmn.model.MParameter
-
public class MParameter extends MProperty
A parameter model element.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
direction
The direction.static java.lang.String
DIRECTION_IN
The constant for direction in.static java.lang.String
DIRECTION_INOUT
The constant for direction inout.static java.lang.String
DIRECTION_OUT
The constant for direction out.-
Fields inherited from class jadex.bpmn.model.MProperty
clazz, initialval, name
-
Fields inherited from class jadex.bpmn.model.MAnnotationElement
annotations
-
Fields inherited from class jadex.bpmn.model.MIdElement
id, ID_GENERATOR
-
-
Constructor Summary
Constructors Constructor Description MParameter()
Create a new parameter.MParameter(java.lang.String direction, ClassInfo clazz, java.lang.String name, UnparsedExpression initialval)
Create a new parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassInfo
getClazz()
Get the clazz.java.lang.String
getDirection()
Get the direction.UnparsedExpression
getInitialValue()
Get the initialval.java.lang.String
getName()
Get the name.boolean
isIn()
Test if parameter is in (i.e.boolean
isOut()
Test if parameter is out (i.e.void
setClazz(ClassInfo clazz)
Set the clazz.void
setDirection(java.lang.String direction)
Set the direction.void
setInitialValue(UnparsedExpression initialval)
Set the initial value.void
setName(java.lang.String name)
Set the name.java.lang.String
toString()
Get the string representation.-
Methods inherited from class jadex.bpmn.model.MProperty
getInitialValueString, setInitialValue
-
Methods inherited from class jadex.bpmn.model.MAnnotationElement
addAnnotation, getAnnotations
-
Methods inherited from class jadex.bpmn.model.MIdElement
equals, getId, hashCode, setId
-
-
-
-
Field Detail
-
DIRECTION_IN
public static final java.lang.String DIRECTION_IN
The constant for direction in.- See Also:
- Constant Field Values
-
DIRECTION_OUT
public static final java.lang.String DIRECTION_OUT
The constant for direction out.- See Also:
- Constant Field Values
-
DIRECTION_INOUT
public static final java.lang.String DIRECTION_INOUT
The constant for direction inout.- See Also:
- Constant Field Values
-
direction
protected java.lang.String direction
The direction.
-
-
Constructor Detail
-
MParameter
public MParameter()
Create a new parameter.
-
MParameter
public MParameter(java.lang.String direction, ClassInfo clazz, java.lang.String name, UnparsedExpression initialval)
Create a new parameter.
-
-
Method Detail
-
getDirection
public java.lang.String getDirection()
Get the direction.- Returns:
- The direction.
-
setDirection
public void setDirection(java.lang.String direction)
Set the direction.- Parameters:
direction
- The direction to set.
-
isOut
public boolean isOut()
Test if parameter is out (i.e. out or inout).- Returns:
- True, if is a out parameter.
-
isIn
public boolean isIn()
Test if parameter is in (i.e. in or inout).- Returns:
- True, if is a in parameter.
-
getClazz
public ClassInfo getClazz()
Get the clazz.
-
setClazz
public void setClazz(ClassInfo clazz)
Set the clazz.
-
getName
public java.lang.String getName()
Get the name.
-
setName
public void setName(java.lang.String name)
Set the name.
-
getInitialValue
public UnparsedExpression getInitialValue()
Get the initialval.- Overrides:
getInitialValue
in classMProperty
- Returns:
- The initialval.
-
setInitialValue
public void setInitialValue(UnparsedExpression initialval)
Set the initial value.- Overrides:
setInitialValue
in classMProperty
- Parameters:
initialval
- The initial value to set.
-
-