be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents.scenario
Class EventTypeNode

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents.scenario.EventTypeNode
Direct Known Subclasses:
ListEventTypeNode, RootEventTypeNode

public class EventTypeNode
extends java.lang.Object

Class representing a generic node in a ScenarioJTree.

Creation date: 6 janv. 2006

Author:
Ga�l Monfort (monfort@run.montefiore.ulg.ac.be) //TODO: make this one abstract and subclass it.

Constructor Summary
EventTypeNode(com.sun.xml.bind.JAXBObject parent, java.lang.String name, java.lang.Class type)
           
EventTypeNode(com.sun.xml.bind.JAXBObject parent, java.lang.String name, java.lang.Class type, boolean useNotSet)
           
 
Method Summary
 java.lang.String displayString()
          returns the string representation of the object
 java.util.List<EventTypeNode> getChildren()
          get the children of the nodes.
 java.lang.Class getType()
          get the type of the node
 java.lang.Object getValue()
          get the value of the node.
 boolean isset()
          returns true if the parameter was set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTypeNode

public EventTypeNode(com.sun.xml.bind.JAXBObject parent,
                     java.lang.String name,
                     java.lang.Class type)
Parameters:
parent - the parent object
name - the parameter name to get from the parent
type - the class of the value of the node

EventTypeNode

public EventTypeNode(com.sun.xml.bind.JAXBObject parent,
                     java.lang.String name,
                     java.lang.Class type,
                     boolean useNotSet)
Parameters:
parent - the parent object
name - the parameter name to get from the parent
type - the class of the value of the node
useNotSet - set to retrieve also the child that correspond to parameters that are not set
Method Detail

isset

public boolean isset()
returns true if the parameter was set.

Returns:

getValue

public java.lang.Object getValue()
get the value of the node. The value is the parameter value of the parent Jaxb object.

Returns:
the parameter value which is an instance of the class getType() or null if the parameter was not set.

getType

public java.lang.Class getType()
get the type of the node

Returns:

getChildren

public java.util.List<EventTypeNode> getChildren()
get the children of the nodes.

Returns:
returns a list of EventTypeNode that represent the descendants in the XML tree.

displayString

public java.lang.String displayString()
returns the string representation of the object

Returns:


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.