org.ow2.clif.scenario.isac.egui.plugins.nodes
Class NodeDescription

java.lang.Object
  extended by org.ow2.clif.scenario.isac.egui.plugins.nodes.NodeDescription

public class NodeDescription
extends java.lang.Object

Implementation of an object storing the full description of a tree node

Author:
JC Meillaud, A Peyrard, Bruno Dillenseger

Constructor Summary
NodeDescription(NodeDescription node)
          Build a new element which is a copy of the given one
NodeDescription(java.lang.String type)
          Build a node description element, the type of the node must be defined in parameter
 
Method Summary
static NodeDescription createNonePluginNode(java.lang.String type)
          Create a new node description of the specified type, if this type is known
 java.lang.String getActionName()
          Attribute actionName getter
 java.util.Map<java.lang.String,java.lang.String> getParams()
          Attribute params getter
 java.lang.String getPlugin()
          Attribute plugin getter
 java.lang.String getType()
          Attribute type getter
 void setActionName(java.lang.String string)
          Attribute actionName setter
 void setParams(java.util.Map<java.lang.String,java.lang.String> map)
          Attribute params setter
 void setPlugin(java.lang.String string)
          Attribute plugin setter
 java.lang.String toString()
          This method serialize the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeDescription

public NodeDescription(java.lang.String type)
Build a node description element, the type of the node must be defined in parameter

Parameters:
type - The node type

NodeDescription

public NodeDescription(NodeDescription node)
Build a new element which is a copy of the given one

Parameters:
node - The node description to be copied
Method Detail

getActionName

public java.lang.String getActionName()
Attribute actionName getter

Returns:
The name of the action representing by this node

getParams

public java.util.Map<java.lang.String,java.lang.String> getParams()
Attribute params getter

Returns:
The parameters values in a hashtable

getPlugin

public java.lang.String getPlugin()
Attribute plugin getter

Returns:
The plugin name

getType

public java.lang.String getType()
Attribute type getter

Returns:
The type of the node

setActionName

public void setActionName(java.lang.String string)
Attribute actionName setter

Parameters:
string - The name of the action representing by this node

setParams

public void setParams(java.util.Map<java.lang.String,java.lang.String> map)
Attribute params setter

Parameters:
map - The table containing all parameters values

setPlugin

public void setPlugin(java.lang.String string)
Attribute plugin setter

Parameters:
string - The plugin name

createNonePluginNode

public static NodeDescription createNonePluginNode(java.lang.String type)
Create a new node description of the specified type, if this type is known

Parameters:
type - The type of the node which will be created
Returns:
The node description

toString

public java.lang.String toString()
This method serialize the object

Overrides:
toString in class java.lang.Object
Returns:
the object informations representing by a string