fr.inria.ketuk
Class XChange

java.lang.Object
  |
  +--fr.inria.ketuk.XChange

public class XChange
extends java.lang.Object

Memorizes a Change made on a DOM tree

Author:
Claude Pasquier

Field Summary
static int CHANGE
          Indicates that a node has been changed
static int INSERT
          Indicates that a node has been inserted
static int REMOVE
          Indicates that a node has been removed
 
Constructor Summary
XChange(int opType, org.w3c.dom.Node baseNode, org.w3c.dom.Node sourceNode)
          Constructs a XChange with an operation type, a base node and a source node
XChange(int opType, org.w3c.dom.Node baseNode, org.w3c.dom.Node sourceNode, org.w3c.dom.Node paramNode)
          Constructs a XChange with an operation type, a base node, a source node and a parameter node
XChange(int opType, org.w3c.dom.Node baseNode, org.w3c.dom.Node sourceNode, org.w3c.dom.Node paramNode, int index)
          Constructs a XChange with an operation type, a base node, a source node, a parameter node and an index
XChange(int opType, org.w3c.dom.Node baseNode, org.w3c.dom.Node sourceNode, org.w3c.dom.Node paramNode, org.w3c.dom.Node paramNode2)
          Constructs a XChange with an operation type, a base node, a source node, a first parameter node and a second one
 
Method Summary
 int getIndex()
          The position of the insertion
 org.w3c.dom.Node getParamNode2()
          The XPath to the second parameter node
 java.lang.String getParamXPath()
          The XPath to the parameter node
 java.lang.String getSourceXPath()
          The XPath to the source node
 int getType()
          The change's type
 java.lang.String toString()
          Returns a string representing the XChange object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REMOVE

public static final int REMOVE
Indicates that a node has been removed

CHANGE

public static final int CHANGE
Indicates that a node has been changed

INSERT

public static final int INSERT
Indicates that a node has been inserted
Constructor Detail

XChange

public XChange(int opType,
               org.w3c.dom.Node baseNode,
               org.w3c.dom.Node sourceNode)
Constructs a XChange with an operation type, a base node and a source node

XChange

public XChange(int opType,
               org.w3c.dom.Node baseNode,
               org.w3c.dom.Node sourceNode,
               org.w3c.dom.Node paramNode)
Constructs a XChange with an operation type, a base node, a source node and a parameter node

XChange

public XChange(int opType,
               org.w3c.dom.Node baseNode,
               org.w3c.dom.Node sourceNode,
               org.w3c.dom.Node paramNode,
               org.w3c.dom.Node paramNode2)
Constructs a XChange with an operation type, a base node, a source node, a first parameter node and a second one

XChange

public XChange(int opType,
               org.w3c.dom.Node baseNode,
               org.w3c.dom.Node sourceNode,
               org.w3c.dom.Node paramNode,
               int index)
Constructs a XChange with an operation type, a base node, a source node, a parameter node and an index
Method Detail

getType

public int getType()
The change's type

getSourceXPath

public java.lang.String getSourceXPath()
The XPath to the source node

getParamXPath

public java.lang.String getParamXPath()
The XPath to the parameter node

getParamNode2

public org.w3c.dom.Node getParamNode2()
The XPath to the second parameter node

getIndex

public int getIndex()
The position of the insertion

toString

public java.lang.String toString()
Returns a string representing the XChange object
Overrides:
toString in class java.lang.Object