de.qfs.apps.qflog.logview
Class NodeData

java.lang.Object
  |
  +--de.qfs.apps.qflog.logview.NodeData

public class NodeData
extends java.lang.Object
implements java.io.Serializable

Data structure that holds the class/package and method data for a FilterNode as well as the node's level.

See Also:
Serialized Form

Constructor Summary
NodeData(java.lang.String clazz, java.lang.String method, java.lang.Integer level)
          Create a new NodeData.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare the data to some other object.
 boolean equals(java.lang.Object o)
          Check whether the NodeData is equal to some object.
 java.lang.String getClazz()
          Get the node's class/package.
 java.lang.Integer getLevel()
          Get the node's level.
 java.lang.String getMethod()
          Get the node's method.
 int hashCode()
          Generate a hash code for the NodeData.
 void setClazz(java.lang.String clazz)
          Set the node's class/package.
 void setLevel(java.lang.Integer level)
          Set the node's level.
 void setMethod(java.lang.String method)
          Set the node's method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeData

public NodeData(java.lang.String clazz,
                java.lang.String method,
                java.lang.Integer level)
Create a new NodeData.
Parameters:
clazz - The class/package of the node.
method - The method of the node (may be null).
level - The level of the node (may be null).
Method Detail

getClazz

public java.lang.String getClazz()
Get the node's class/package.
Returns:
The class/package of the node.

setClazz

public void setClazz(java.lang.String clazz)
Set the node's class/package.
Returns:
The class/package to set.

getMethod

public java.lang.String getMethod()
Get the node's method.
Returns:
The method of the node.

setMethod

public void setMethod(java.lang.String method)
Set the node's method.
Returns:
The method to set.

getLevel

public java.lang.Integer getLevel()
Get the node's level.
Returns:
The level of the node.

setLevel

public void setLevel(java.lang.Integer level)
Set the node's level.
Returns:
The level to set.

hashCode

public int hashCode()
Generate a hash code for the NodeData.
Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.

equals

public boolean equals(java.lang.Object o)
Check whether the NodeData is equal to some object.
Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare to.
Returns:
True if the object is a NodeData and has equal clazz and method members.

compareTo

public int compareTo(java.lang.Object o)
Compare the data to some other object.
Parameters:
o - The Object to compare to. Must be a NodeData.
Returns:
-1, 0 or 1 if the NodeData row is less than, equal to or greater than the object.