Package org.custommonkey.xmlunit
Class NodeDescriptor
- java.lang.Object
-
- org.custommonkey.xmlunit.NodeDescriptor
-
- All Implemented Interfaces:
XMLConstants
public class NodeDescriptor extends Object implements XMLConstants
Class for describing Nodes
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDOCUMENT_NODE_DESCRIPTIONDescription of the document node itself.-
Fields inherited from interface org.custommonkey.xmlunit.XMLConstants
CLOSE_NODE, END_CDATA, END_COMMENT, END_PROCESSING_INSTRUCTION, NULL_NS_URI, OPEN_END_NODE, OPEN_START_NODE, START_CDATA, START_COMMENT, START_DOCTYPE, START_PROCESSING_INSTRUCTION, W3C_XML_SCHEMA_INSTANCE_NO_NAMESPACE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_INSTANCE_NS_URI, W3C_XML_SCHEMA_INSTANCE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_NS_URI, XML_DECLARATION, XMLNS_PREFIX, XPATH_ATTRIBUTE_IDENTIFIER, XPATH_CHARACTER_NODE_IDENTIFIER, XPATH_COMMENT_IDENTIFIER, XPATH_NODE_INDEX_END, XPATH_NODE_INDEX_START, XPATH_PROCESSING_INSTRUCTION_IDENTIFIER, XPATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description NodeDescriptor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidappendAttributeDetail(StringBuffer buf, Node aNode)protected static voidappendCdataSectionDetail(StringBuffer buf, Node aNode)protected static voidappendCommentDetail(StringBuffer buf, Node aNode)protected static voidappendDocumentDetail(StringBuffer buf)protected static voidappendDocumentTypeDetail(StringBuffer buf, Node aNode)protected static voidappendElementDetail(StringBuffer buf, Node aNode, boolean notRecursing)static voidappendNodeDetail(StringBuffer buf, NodeDetail nodeDetail)Convert a Node into a simple String representation and append to StringBufferprotected static voidappendProcessingInstructionDetail(StringBuffer buf, Node aNode)protected static voidappendTextDetail(StringBuffer buf, Node aNode)
-
-
-
Field Detail
-
DOCUMENT_NODE_DESCRIPTION
protected static final String DOCUMENT_NODE_DESCRIPTION
Description of the document node itself.- See Also:
- Constant Field Values
-
-
Method Detail
-
appendNodeDetail
public static void appendNodeDetail(StringBuffer buf, NodeDetail nodeDetail)
Convert a Node into a simple String representation and append to StringBuffer- Parameters:
buf- buffer to append tonodeDetail- node detail
-
appendDocumentDetail
protected static void appendDocumentDetail(StringBuffer buf)
- Parameters:
buf- buffer to append to
-
appendDocumentTypeDetail
protected static void appendDocumentTypeDetail(StringBuffer buf, Node aNode)
- Parameters:
buf- buffer to append toaNode- node containing details
-
appendProcessingInstructionDetail
protected static void appendProcessingInstructionDetail(StringBuffer buf, Node aNode)
- Parameters:
buf- buffer to append toaNode- node containing details
-
appendCommentDetail
protected static void appendCommentDetail(StringBuffer buf, Node aNode)
- Parameters:
buf- buffer to append toaNode- node containing details
-
appendCdataSectionDetail
protected static void appendCdataSectionDetail(StringBuffer buf, Node aNode)
- Parameters:
buf- buffer to append toaNode- node containing details
-
appendTextDetail
protected static void appendTextDetail(StringBuffer buf, Node aNode)
- Parameters:
buf- buffer to append toaNode- node containing details
-
appendElementDetail
protected static void appendElementDetail(StringBuffer buf, Node aNode, boolean notRecursing)
- Parameters:
buf- buffer to append toaNode- node containing detailsnotRecursing- whether the elements children will not be visited
-
appendAttributeDetail
protected static void appendAttributeDetail(StringBuffer buf, Node aNode)
- Parameters:
buf- buffer to append toaNode- node containing details
-
-