sk.uniba.euromath.document
Class ChangeTracer

java.lang.Object
  extended by sk.uniba.euromath.document.ChangeTracer

Deprecated. superseded by DOM2 Events

@Deprecated
public final class ChangeTracer
extends Object

Holds old values of the node that may have been changed. Class may be instantiated by clients.

Author:
Martin Vysny

Field Summary
static int CHANGED_DATA
          Deprecated. Indicates that the text had been changed.
static int CHANGED_LOCALNAME
          Deprecated. Indicates that the text had been changed.
 
Constructor Summary
ChangeTracer(Node node)
          Deprecated. The constructor.
 
Method Summary
 int getChanged()
          Deprecated. Determines what had changed.
 Node getChangedNode()
          Deprecated. Reference to the node that had been changed.
 String getOldData()
          Deprecated. Holds old textual value.
 String getOldLocalName()
          Deprecated. Returns old local name of the node.
 void trackChange()
          Deprecated. After the change this method must be called once to trace what had been changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGED_DATA

public static final int CHANGED_DATA
Deprecated. 
Indicates that the text had been changed. Valid only for text, cdata, comment and processing instruction node.

See Also:
Constant Field Values

CHANGED_LOCALNAME

public static final int CHANGED_LOCALNAME
Deprecated. 
Indicates that the text had been changed.

See Also:
Constant Field Values
Constructor Detail

ChangeTracer

public ChangeTracer(Node node)
Deprecated. 
The constructor.

Parameters:
node - the node that is about to change. It must not yet be changed.
Method Detail

trackChange

public void trackChange()
Deprecated. 
After the change this method must be called once to trace what had been changed.


getOldData

public String getOldData()
Deprecated. 
Holds old textual value. Valid only for text, cdata, comment, processing instruction and attribute node.

Returns:
Old textual value.

getChangedNode

public Node getChangedNode()
Deprecated. 
Reference to the node that had been changed.

Returns:
the node

getOldLocalName

public String getOldLocalName()
Deprecated. 
Returns old local name of the node. Valid only for element, attribute and processing instruction node.

Returns:
local name for attribute and element node, and the name for the processing instruction node.

getChanged

public int getChanged()
Deprecated. 
Determines what had changed. Combination of CHANGED_* constants.

Returns:
bitfield flag describing the node properties that had been changed. At least one flag is always set.


Copyright © 2003-2006 null. All Rights Reserved.