com.townleyenterprises.common
Class OverrideNode

java.lang.Object
  extended bycom.townleyenterprises.common.OverrideNode

public class OverrideNode
extends java.lang.Object

This class represents a generic object container which maintains override relationships between objects. The main uses of this class are tracking property values from various sources as well as resource entries.

Version:
$Id: OverrideNode.java,v 1.1 2004/07/29 18:29:20 atownley Exp $
Author:
Andrew S. Townley

Constructor Summary
OverrideNode()
          The default constructor creates an empty node.
OverrideNode(java.lang.Object object)
          The constructor creates a node to manage the specific object.
 
Method Summary
 java.lang.Object get()
          This method is used to retrieve the object managed by this node.
 OverrideNode getPrevious()
          This method is used to retrieve the previous reference so that the override list can be maintained.
 void set(java.lang.Object obj)
          This method is used to set the object reference tracked by this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverrideNode

public OverrideNode()
The default constructor creates an empty node.


OverrideNode

public OverrideNode(java.lang.Object object)
The constructor creates a node to manage the specific object.

Parameters:
object - the object to manage
Method Detail

get

public java.lang.Object get()
This method is used to retrieve the object managed by this node.

Returns:
the object

getPrevious

public OverrideNode getPrevious()
This method is used to retrieve the previous reference so that the override list can be maintained.

Returns:
a node containing the previous reference

set

public void set(java.lang.Object obj)
This method is used to set the object reference tracked by this node. The current reference (if any) is tracked by the previous property.

Parameters:
obj - the object


Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.