Version: 1.1.1

org.biomoby.service.dashboard
Class CommonNode

java.lang.Object
  extended by org.biomoby.service.dashboard.CommonNode

public class CommonNode
extends Object

A common node for various tree used in the dashboard. It contains two Strings - one is used to display the node ('name'), the second one to keep the real meaning of the node ('value'). It can have also a 'type' which make it easire when different nodes are present.

Version:
$Id: CommonNode.java,v 1.4 2005/11/21 17:17:27 senger Exp $
Author:
Martin Senger

Field Summary
static int NODE_AUTHORITY
           
static int NODE_DATA_TYPE
           
static int NODE_NAMESPACE
           
static int NODE_SERVICE
           
static int NODE_SERVICE_TYPE
           
 
Constructor Summary
CommonNode(String value)
          Usual constructor that sets both, meaning and appearance, to the same value.
CommonNode(String value, int type)
          A constructor that sets both, meaning and appearance, to the same value, and add a node type.
CommonNode(String name, String value)
          Another constructor setting separately meaning ('value') and appearance ('name').
CommonNode(String name, String value, int type)
          Another constructor setting separately meaning ('value') and appearance ('name'), and a node type.
 
Method Summary
 String getName()
          Return back the appearance of this node.
 int getType()
          Return back the type of this node.
 String getValue()
          Return back the meaning of this node.
 void setName(String name)
          Change the appearance of this node.
 void setType(int type)
          Change the type of this node.
 void setValue(String value)
          Change the meaning of this node.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_DATA_TYPE

public static final int NODE_DATA_TYPE
See Also:
Constant Field Values

NODE_NAMESPACE

public static final int NODE_NAMESPACE
See Also:
Constant Field Values

NODE_SERVICE_TYPE

public static final int NODE_SERVICE_TYPE
See Also:
Constant Field Values

NODE_SERVICE

public static final int NODE_SERVICE
See Also:
Constant Field Values

NODE_AUTHORITY

public static final int NODE_AUTHORITY
See Also:
Constant Field Values
Constructor Detail

CommonNode

public CommonNode(String value)
Usual constructor that sets both, meaning and appearance, to the same value.


CommonNode

public CommonNode(String name,
                  String value)
Another constructor setting separately meaning ('value') and appearance ('name').


CommonNode

public CommonNode(String value,
                  int type)
A constructor that sets both, meaning and appearance, to the same value, and add a node type.


CommonNode

public CommonNode(String name,
                  String value,
                  int type)
Another constructor setting separately meaning ('value') and appearance ('name'), and a node type.

Method Detail

getValue

public String getValue()
Return back the meaning of this node.


setValue

public void setValue(String value)
Change the meaning of this node.


setName

public void setName(String name)
Change the appearance of this node.


getName

public String getName()
Return back the appearance of this node.


setType

public void setType(int type)
Change the type of this node.


getType

public int getType()
Return back the type of this node.


toString

public String toString()
Overrides:
toString in class Object

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010