Package uk.ac.qmul.eecs.ccmi.xmlparser
Class Node
- java.lang.Object
-
- uk.ac.qmul.eecs.ccmi.xmlparser.Node
-
- All Implemented Interfaces:
- HierarchyItem
public class Node extends java.lang.Object implements HierarchyItem
-
-
Constructor Summary
Constructors Constructor and Description Node()
Node(java.lang.String type, java.util.ArrayList<NodeProperty> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getId()
java.lang.String
getName()
java.util.ArrayList<NodeProperty>
getProperties()
java.lang.String
getType()
void
setId(int id)
void
setName(java.lang.String name)
void
setProperties(java.util.ArrayList<NodeProperty> properties)
java.lang.String
toString()
toString()
must be overwritten in order to return the label of the item
-
-
-
Constructor Detail
-
Node
public Node()
-
Node
public Node(java.lang.String type, java.util.ArrayList<NodeProperty> properties)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getType
public java.lang.String getType()
-
getId
public int getId()
-
setId
public void setId(int id)
-
getProperties
public java.util.ArrayList<NodeProperty> getProperties()
-
setProperties
public void setProperties(java.util.ArrayList<NodeProperty> properties)
-
toString
public java.lang.String toString()
Description copied from interface:HierarchyItem
toString()
must be overwritten in order to return the label of the item- Specified by:
toString
in interfaceHierarchyItem
- Overrides:
toString
in classjava.lang.Object
-
-