com.unitesk.requality.xml.diff
Class Util
java.lang.Object
com.unitesk.requality.xml.diff.Util
public class Util
- extends java.lang.Object
Constructor Summary |
Util()
|
Method Summary |
static int |
getDepth(Action a)
|
static int |
getDepth(java.lang.String path)
|
static java.lang.String |
getParentPath(java.lang.String path)
|
static java.lang.String |
getPath(org.w3c.dom.Node node)
|
static int |
getPosition(org.w3c.dom.Node node)
|
static boolean |
isAscendant(org.w3c.dom.Node x,
org.w3c.dom.Node y)
|
static java.util.List<org.w3c.dom.Node> |
linearizeTree(org.w3c.dom.Node tree)
|
static boolean |
nodeEquals(org.w3c.dom.Node node1,
org.w3c.dom.Node node2)
|
static java.lang.String |
switchContext(java.lang.String context,
Action a)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
nodeEquals
public static boolean nodeEquals(org.w3c.dom.Node node1,
org.w3c.dom.Node node2)
linearizeTree
public static java.util.List<org.w3c.dom.Node> linearizeTree(org.w3c.dom.Node tree)
getPath
public static java.lang.String getPath(org.w3c.dom.Node node)
getPosition
public static int getPosition(org.w3c.dom.Node node)
getDepth
public static int getDepth(Action a)
getDepth
public static int getDepth(java.lang.String path)
getParentPath
public static java.lang.String getParentPath(java.lang.String path)
isAscendant
public static boolean isAscendant(org.w3c.dom.Node x,
org.w3c.dom.Node y)
switchContext
public static java.lang.String switchContext(java.lang.String context,
Action a)