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 Details

    • DOCUMENT_NODE_DESCRIPTION

      protected static final String DOCUMENT_NODE_DESCRIPTION
      Description of the document node itself.
      See Also:
  • Constructor Details

    • NodeDescriptor

      public NodeDescriptor()
  • Method Details

    • 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 to
      nodeDetail - 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 to
      aNode - node containing details
    • appendProcessingInstructionDetail

      protected static void appendProcessingInstructionDetail(StringBuffer buf, Node aNode)
      Parameters:
      buf - buffer to append to
      aNode - node containing details
    • appendCommentDetail

      protected static void appendCommentDetail(StringBuffer buf, Node aNode)
      Parameters:
      buf - buffer to append to
      aNode - node containing details
    • appendCdataSectionDetail

      protected static void appendCdataSectionDetail(StringBuffer buf, Node aNode)
      Parameters:
      buf - buffer to append to
      aNode - node containing details
    • appendTextDetail

      protected static void appendTextDetail(StringBuffer buf, Node aNode)
      Parameters:
      buf - buffer to append to
      aNode - node containing details
    • appendElementDetail

      protected static void appendElementDetail(StringBuffer buf, Node aNode, boolean notRecursing)
      Parameters:
      buf - buffer to append to
      aNode - node containing details
      notRecursing - whether the elements children will not be visited
    • appendAttributeDetail

      protected static void appendAttributeDetail(StringBuffer buf, Node aNode)
      Parameters:
      buf - buffer to append to
      aNode - node containing details