Package jadex.bdiv3.model
Class MParameterElement
- java.lang.Object
-
- jadex.bdiv3.model.MElement
-
- jadex.bdiv3.model.MParameterElement
-
- Direct Known Subclasses:
MPlan
,MProcessableElement
public class MParameterElement extends MElement
Base class for elements with parameters.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<MParameter>
parameters
The parameters.-
Fields inherited from class jadex.bdiv3.model.MElement
CAPABILITY_SEPARATOR, description, name
-
-
Constructor Summary
Constructors Constructor Description MParameterElement()
Bean Constructor.MParameterElement(java.lang.String name)
Create a new element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(MParameter parameter)
Add a parameter.MParameter
getParameter(java.lang.String name)
Get a parameter by name.java.util.List<MParameter>
getParameters()
Get the parameters.boolean
hasParameter(java.lang.String name)
Test if goal has a parameter.java.lang.String
hasParameterIgnoreCase(java.lang.String name)
Test if a param is contained.void
setParameters(java.util.List<MParameter> parameters)
Set the parameters.-
Methods inherited from class jadex.bdiv3.model.MElement
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString
-
-
-
-
Field Detail
-
parameters
protected java.util.List<MParameter> parameters
The parameters.
-
-
Method Detail
-
getParameters
public java.util.List<MParameter> getParameters()
Get the parameters.- Returns:
- The parameters.
-
getParameter
public MParameter getParameter(java.lang.String name)
Get a parameter by name.
-
hasParameter
public boolean hasParameter(java.lang.String name)
Test if goal has a parameter.
-
setParameters
public void setParameters(java.util.List<MParameter> parameters)
Set the parameters.- Parameters:
parameters
- The parameters to set.
-
addParameter
public void addParameter(MParameter parameter)
Add a parameter.- Parameters:
parameter
- The parameter.
-
hasParameterIgnoreCase
public java.lang.String hasParameterIgnoreCase(java.lang.String name)
Test if a param is contained.- Parameters:
name
- The name.- Returns:
- The correctly spelled parameter name or null.
-
-