public abstract class ParameterElement
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS |
static java.lang.String |
NAME |
protected java.util.Map |
parameters
The parameters.
|
protected boolean |
visible
The visibility
|
Constructor and Description |
---|
ParameterElement()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Elements are compared by their ids.
|
boolean |
equals(java.lang.Object obj)
Only messages with the same id are equal.
|
abstract java.lang.String |
getId() |
java.lang.Object |
getParameter(java.lang.String name)
Returns a parameter value.
|
java.util.Map |
getParameters()
Returns the parameter map.
|
boolean |
hasParameter(java.lang.String name)
Checks if a given parameter is contained by the parameter map.
|
boolean |
isVisible() |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets a parameter value
|
void |
setParameters(java.util.Map map)
Replaces the existing parameter map.
|
void |
setVisible(boolean visible)
Set the visbile state.
|
java.lang.String |
toString() |
public static final java.lang.String CLASS
public static final java.lang.String NAME
protected boolean visible
protected java.util.Map parameters
public java.util.Map getParameters()
public java.lang.Object getParameter(java.lang.String name)
name
- The name of the parameter.public void setParameters(java.util.Map map)
map
- The parameter map.public void setParameter(java.lang.String name, java.lang.Object value)
name
- The name of the parameter.value
- The value.public boolean hasParameter(java.lang.String name)
name
- The name of the parameter.true
if the parameter is contained.public boolean isVisible()
public void setVisible(boolean visible)
visible
- The visible state.public abstract java.lang.String getId()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object