Class NodeDescriptor

  • All Implemented Interfaces:
    XMLConstants

    public class NodeDescriptor
    extends java.lang.Object
    implements XMLConstants
    Class for describing Nodes
    • Field Detail

      • DOCUMENT_NODE_DESCRIPTION

        protected static final java.lang.String DOCUMENT_NODE_DESCRIPTION
        Description of the document node itself.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NodeDescriptor

        public NodeDescriptor()
    • Method Detail

      • appendNodeDetail

        public static void appendNodeDetail​(java.lang.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
      • appendNodeDetail

        private static void appendNodeDetail​(java.lang.StringBuffer buf,
                                             org.w3c.dom.Node aNode,
                                             boolean notRecursing)
      • appendDocumentDetail

        protected static void appendDocumentDetail​(java.lang.StringBuffer buf)
        Parameters:
        buf - buffer to append to
      • appendDocumentTypeDetail

        protected static void appendDocumentTypeDetail​(java.lang.StringBuffer buf,
                                                       org.w3c.dom.Node aNode)
        Parameters:
        buf - buffer to append to
        aNode - node containing details
      • appendProcessingInstructionDetail

        protected static void appendProcessingInstructionDetail​(java.lang.StringBuffer buf,
                                                                org.w3c.dom.Node aNode)
        Parameters:
        buf - buffer to append to
        aNode - node containing details
      • appendCommentDetail

        protected static void appendCommentDetail​(java.lang.StringBuffer buf,
                                                  org.w3c.dom.Node aNode)
        Parameters:
        buf - buffer to append to
        aNode - node containing details
      • appendCdataSectionDetail

        protected static void appendCdataSectionDetail​(java.lang.StringBuffer buf,
                                                       org.w3c.dom.Node aNode)
        Parameters:
        buf - buffer to append to
        aNode - node containing details
      • appendTextDetail

        protected static void appendTextDetail​(java.lang.StringBuffer buf,
                                               org.w3c.dom.Node aNode)
        Parameters:
        buf - buffer to append to
        aNode - node containing details
      • appendElementDetail

        protected static void appendElementDetail​(java.lang.StringBuffer buf,
                                                  org.w3c.dom.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​(java.lang.StringBuffer buf,
                                                    org.w3c.dom.Node aNode)
        Parameters:
        buf - buffer to append to
        aNode - node containing details