public class XmlCompareJdom extends Object
Constructor and Description |
---|
XmlCompareJdom() |
Modifier and Type | Method and Description |
---|---|
static TreeWalkResults |
compareParts(String expectedContent,
String leftID,
String actualPartContent,
String rightID,
String startElement,
TreeWalkResults.MatchSpec matchSpec) |
static boolean |
doRepeatingFieldComparison(List leftList,
String leftChildPath,
String leftChildName,
org.jdom.Element left,
org.jdom.Element right,
TreeWalkResults msgList,
org.jdom.Namespace namespace,
TreeWalkResults.MatchSpec matchSpec) |
static org.jdom.Document |
getDocumentFromContent(String source) |
static void |
main(String[] args) |
static List |
select(org.jdom.Element element,
String xpathExpression,
org.jdom.Namespace namespace) |
static Object |
selectSingleNode(org.jdom.Element element,
String xpathExpression,
org.jdom.Namespace namespace) |
static Object |
selectSingleNode(String docSource,
String xpathExpression,
org.jdom.Namespace namespace) |
static boolean |
treeWalk(org.jdom.Document left,
org.jdom.Document right,
TreeWalkResults list,
String startElement,
TreeWalkResults.MatchSpec matchSpec) |
static boolean |
treeWalk(org.jdom.Element left,
org.jdom.Element right,
String parentPath,
TreeWalkResults msgList,
TreeWalkResults.MatchSpec matchSpec) |
public static org.jdom.Document getDocumentFromContent(String source) throws IOException, org.jdom.JDOMException
IOException
org.jdom.JDOMException
public static TreeWalkResults compareParts(String expectedContent, String leftID, String actualPartContent, String rightID, String startElement, TreeWalkResults.MatchSpec matchSpec)
public static List select(org.jdom.Element element, String xpathExpression, org.jdom.Namespace namespace) throws Exception
Exception
public static Object selectSingleNode(org.jdom.Element element, String xpathExpression, org.jdom.Namespace namespace) throws Exception
Exception
public static Object selectSingleNode(String docSource, String xpathExpression, org.jdom.Namespace namespace) throws Exception
Exception
public static boolean treeWalk(org.jdom.Document left, org.jdom.Document right, TreeWalkResults list, String startElement, TreeWalkResults.MatchSpec matchSpec) throws Exception
Exception
public static boolean treeWalk(org.jdom.Element left, org.jdom.Element right, String parentPath, TreeWalkResults msgList, TreeWalkResults.MatchSpec matchSpec) throws Exception
Exception
public static boolean doRepeatingFieldComparison(List leftList, String leftChildPath, String leftChildName, org.jdom.Element left, org.jdom.Element right, TreeWalkResults msgList, org.jdom.Namespace namespace, TreeWalkResults.MatchSpec matchSpec) throws Exception
Exception
Copyright © 2016. All rights reserved.