routing
Class RoutingInfo

java.lang.Object
  extended by routing.RoutingInfo

public class RoutingInfo
extends java.lang.Object

Class for storing routing related information in a tree form for user interface(s).


Constructor Summary
RoutingInfo(java.lang.Object o)
          Creates a routing info based on any object.
RoutingInfo(java.lang.String infoText)
          Creates a routing info based on a text.
 
Method Summary
 void addMoreInfo(RoutingInfo info)
          Adds child info object for this routing info.
 java.util.List<RoutingInfo> getMoreInfo()
          Returns the child routing infos of this info.
 java.lang.String toString()
          Returns the info text of this routing info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoutingInfo

public RoutingInfo(java.lang.String infoText)
Creates a routing info based on a text.

Parameters:
infoText - The text of the info

RoutingInfo

public RoutingInfo(java.lang.Object o)
Creates a routing info based on any object. Object's toString() method's output is used as the info text.

Parameters:
o - The object this info is based on
Method Detail

addMoreInfo

public void addMoreInfo(RoutingInfo info)
Adds child info object for this routing info.

Parameters:
info - The info object to add.

getMoreInfo

public java.util.List<RoutingInfo> getMoreInfo()
Returns the child routing infos of this info.

Returns:
The children of this info or an empty list if this info doesn't have any children.

toString

public java.lang.String toString()
Returns the info text of this routing info.

Overrides:
toString in class java.lang.Object
Returns:
The info text