Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl Class Reference

Collaboration diagram for abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NodeImpl (NodeImpl parent, Throwable exception)
void addChild (NodeImpl node)
boolean isLeaf ()
synchronized Enumeration children ()
TreeNode getParent ()
synchronized int getChildCount ()
boolean getAllowsChildren ()
Throwable getException ()
synchronized TreeNode getChildAt (int index)
synchronized int getIndex (TreeNode node)
boolean isIgnored ()

Package Attributes

boolean processed = false
Object timer = null

Private Attributes

NodeImpl[] nodes = new NodeImpl[0]
NodeImpl parent = null

Detailed Description

A simple implementation of the tree node that, as a data item, contains an throwable instance, and stores its children in an array.


Constructor & Destructor Documentation

abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::NodeImpl NodeImpl  parent,
Throwable  exception
[inline]
 

Creates a new exception tree node.

Parameters:
parent the parent node of this node, contains the parent exception, can be null if the node has no parent
exception data carried by this node, non-null


Member Function Documentation

void abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::addChild NodeImpl  node  )  [inline]
 

Inserts a new node child into this node.

Parameters:
node the new node to be inserted, non-null, not this

synchronized Enumeration abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::children  )  [inline]
 

Returns the enumeration of this node's children.

Returns:
enumeration

boolean abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::getAllowsChildren  )  [inline]
 

Returns true.

Returns:
true

synchronized TreeNode abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::getChildAt int  index  )  [inline]
 

Returns the child at a given position in this node.

Parameters:
index integer between 0 and getChildCount(), specifying the child of this node
Returns:
the node with a given index
Exceptions:
ArrayIndexOutOfBoundsException if the index is invalid

synchronized int abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::getChildCount  )  [inline]
 

Returns the number of children of this node.

Returns:
the number of children

Throwable abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::getException  )  [inline]
 

Returns the data carried by this node, which is the instance of throwable.

Returns:
the data item of this node

synchronized int abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::getIndex TreeNode  node  )  [inline]
 

Searches the array of child nodes for a specified node to obtain its index.

Parameters:
node the node to search
Returns:
the index of the node or -1 if the node is not contained in this instance

TreeNode abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::getParent  )  [inline]
 

Returns the parent node specified as the constructor argument.

Returns:
the parent tree node of this

boolean abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::isIgnored  )  [inline]
 

See also:
abeans.core.defaults.ExceptionTreeNode#isIgnored()

boolean abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::isLeaf  )  [inline]
 

Returns false, all nodes can have children.

Returns:
false


Member Data Documentation

NodeImpl [] abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::nodes = new NodeImpl[0] [private]
 

NodeImpl abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::parent = null [private]
 

boolean abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::processed = false [package]
 

Used by the enclosing class to determine if the exception report for this node has already been created.

Object abeans::pluggable::acs::LoggingExceptionHandlerService::NodeImpl::timer = null [package]
 

Timer thread used by the enclosing class that times this integrating period for this exception node.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:43:17 2009 for ACS Java API by doxygen 1.3.8