link start!

This commit is contained in:
cherubin
2026-03-17 13:31:18 -07:00
commit 08abe87cfb
5910 changed files with 386288 additions and 0 deletions
@@ -0,0 +1,5 @@
package org.custommonkey.xmlunit;
public interface ComparisonController {
boolean haltComparison(Difference difference);
}
@@ -0,0 +1,14 @@
package org.custommonkey.xmlunit;
import org.w3c.dom.Node;
public interface DifferenceListener {
public static final int RETURN_ACCEPT_DIFFERENCE = 0;
public static final int RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL = 1;
public static final int RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR = 2;
public static final int RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT = 3;
int differenceFound(Difference difference);
void skippedComparison(Node node, Node node2);
}
@@ -0,0 +1,7 @@
package org.custommonkey.xmlunit;
import org.w3c.dom.Element;
public interface ElementQualifier {
boolean qualifyForComparison(Element element, Element element2);
}
@@ -0,0 +1,5 @@
package org.custommonkey.xmlunit;
public interface MatchTracker {
void matchFound(Difference difference);
}
@@ -0,0 +1,9 @@
package org.custommonkey.xmlunit;
import java.util.Iterator;
public interface NamespaceContext {
String getNamespaceURI(String str);
Iterator getPrefixes();
}
@@ -0,0 +1,9 @@
package org.custommonkey.xmlunit;
import org.w3c.dom.Node;
public interface NodeTester {
void noMoreNodes(NodeTest nodeTest) throws NodeTestException;
void testNode(Node node, NodeTest nodeTest) throws NodeTestException;
}
@@ -0,0 +1,29 @@
package org.custommonkey.xmlunit;
public interface XMLConstants {
public static final String CLOSE_NODE = ">";
public static final String END_CDATA = "]]";
public static final String END_COMMENT = "--";
public static final String END_PROCESSING_INSTRUCTION = "?";
public static final String OPEN_END_NODE = "</";
public static final String OPEN_START_NODE = "<";
public static final String START_CDATA = "![CDATA[";
public static final String START_COMMENT = "!--";
public static final String START_DOCTYPE = "!DOCTYPE ";
public static final String START_PROCESSING_INSTRUCTION = "?";
public static final String W3C_XML_SCHEMA_INSTANCE_NO_NAMESPACE_SCHEMA_LOCATION_ATTR = "noNamespaceSchemaLocation";
public static final String W3C_XML_SCHEMA_INSTANCE_NS_URI = "http://www.w3.org/2001/XMLSchema-instance";
public static final String W3C_XML_SCHEMA_INSTANCE_SCHEMA_LOCATION_ATTR = "schemaLocation";
public static final String W3C_XML_SCHEMA_INSTANCE_TYPE_ATTR = "type";
public static final String W3C_XML_SCHEMA_NS_URI = "http://www.w3.org/2001/XMLSchema";
public static final String XMLNS_ATTRIBUTE_URI = "http://www.w3.org/2000/xmlns/";
public static final String XMLNS_PREFIX = "xmlns";
public static final String XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>";
public static final String XPATH_ATTRIBUTE_IDENTIFIER = "@";
public static final String XPATH_CHARACTER_NODE_IDENTIFIER = "text()";
public static final String XPATH_COMMENT_IDENTIFIER = "comment()";
public static final String XPATH_NODE_INDEX_END = "]";
public static final String XPATH_NODE_INDEX_START = "[";
public static final String XPATH_PROCESSING_INSTRUCTION_IDENTIFIER = "processing-instruction()";
public static final String XPATH_SEPARATOR = "/";
}
@@ -0,0 +1,12 @@
package org.custommonkey.xmlunit;
public interface XSLTConstants extends XMLConstants {
public static final String JAVA5_XSLTC_FACTORY_NAME = "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl";
public static final String XSLT_END = "</xsl:stylesheet>";
public static final String XSLT_IDENTITY_TEMPLATE = "<xsl:template match=\"/\"><xsl:copy-of select=\".\"/></xsl:template>";
public static final String XSLT_START = "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
public static final String XSLT_START_NO_VERSION = "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"";
public static final String XSLT_STRIP_COMMENTS_TEMPLATE = "<xsl:template match=\"node()[not(self::comment())]|@*\"><xsl:copy><xsl:apply-templates select=\"node()[not(self::comment())]|@*\"/></xsl:copy></xsl:template>";
public static final String XSLT_STRIP_WHITESPACE = "<xsl:strip-space elements=\"*\"/>";
public static final String XSLT_XML_OUTPUT_NOINDENT = "<xsl:output method=\"xml\" version=\"1.0\" indent=\"no\"/>";
}
@@ -0,0 +1,13 @@
package org.custommonkey.xmlunit;
import org.custommonkey.xmlunit.exceptions.XpathException;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
public interface XpathEngine {
String evaluate(String str, Document document) throws XpathException;
NodeList getMatchingNodes(String str, Document document) throws XpathException;
void setNamespaceContext(NamespaceContext namespaceContext);
}