Class PomUtils.LocationAwareElement

  • All Implemented Interfaces:
    Serializable, Cloneable, org.dom4j.Branch, org.dom4j.Element, org.dom4j.Node
    Enclosing class:
    PomUtils

    public static class PomUtils.LocationAwareElement
    extends org.dom4j.tree.DefaultElement
    An Element that is aware of it location (line number in) in the source document
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int columnNumber  
      private int lineNumber  
      private static long serialVersionUID  
      • Fields inherited from class org.dom4j.tree.AbstractElement

        USE_STRINGVALUE_SEPARATOR, VERBOSE_TOSTRING
      • Fields inherited from class org.dom4j.tree.AbstractBranch

        DEFAULT_CONTENT_LIST_SIZE
      • Fields inherited from class org.dom4j.tree.AbstractNode

        NODE_TYPE_NAMES
      • Fields inherited from interface org.dom4j.Node

        ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnNumber()  
      int getLineNumber()  
      void setColumnNumber​(int columnNumber)  
      void setLineNumber​(int lineNumber)  
      • Methods inherited from class org.dom4j.tree.DefaultElement

        add, additionalNamespaces, additionalNamespaces, addNewNode, attribute, attribute, attribute, attribute, attributeCount, attributeIterator, attributeList, attributeList, attributes, clearContent, clone, contentList, declaredNamespaces, element, element, element, getDocument, getDocumentFactory, getNamespaceForPrefix, getNamespaceForURI, getParent, getQName, getStringValue, getText, indexOf, node, nodeCount, nodeIterator, processingInstruction, processingInstructions, processingInstructions, remove, removeNode, removeProcessingInstruction, setAttributeList, setAttributes, setContent, setDocument, setParent, setQName, supportsParent
      • Methods inherited from class org.dom4j.tree.AbstractElement

        accept, add, add, add, add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addElement, addEntity, addNamespace, addNewNode, addNode, addNode, addProcessingInstruction, addProcessingInstruction, addText, appendAttributes, asXML, attributeValue, attributeValue, attributeValue, attributeValue, childAdded, childRemoved, createAttributeList, createAttributeList, createCopy, createCopy, createCopy, createElement, createElement, createSingleIterator, elementIterator, elementIterator, elementIterator, elementIterator, elements, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, ensureAttributesCapacity, getData, getName, getNamespace, getNamespacePrefix, getNamespacesForURI, getNamespaceURI, getNodeType, getPath, getQName, getQualifiedName, getUniquePath, getXPathNameStep, getXPathResult, hasMixedContent, isRootElement, isTextOnly, normalize, remove, remove, remove, remove, remove, remove, remove, remove, setAttributes, setAttributeValue, setAttributeValue, setData, setName, setNamespace, setText, toString, write
      • Methods inherited from class org.dom4j.tree.AbstractBranch

        addElement, addElement, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getTextTrim, hasContent, invalidNodeTypeAddException, isReadOnly, setProcessingInstructions
      • Methods inherited from class org.dom4j.tree.AbstractNode

        asXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf
      • Methods inherited from interface org.dom4j.Branch

        addElement, addElement, appendContent, content, elementByID, setProcessingInstructions
      • Methods inherited from interface org.dom4j.Element

        getTextTrim
      • Methods inherited from interface org.dom4j.Node

        asXPathResult, createXPath, detach, getNodeTypeName, getPath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf
    • Field Detail

      • lineNumber

        private int lineNumber
      • columnNumber

        private int columnNumber
    • Constructor Detail

      • LocationAwareElement

        public LocationAwareElement​(org.dom4j.QName qname)
      • LocationAwareElement

        public LocationAwareElement​(org.dom4j.QName qname,
                                    int attributeCount)
      • LocationAwareElement

        public LocationAwareElement​(String name,
                                    org.dom4j.Namespace namespace)
      • LocationAwareElement

        public LocationAwareElement​(String name)
    • Method Detail

      • getLineNumber

        public int getLineNumber()
        Returns:
        the lineNumber
      • setLineNumber

        public void setLineNumber​(int lineNumber)
        Parameters:
        lineNumber - the lineNumber to set
      • getColumnNumber

        public int getColumnNumber()
        Returns:
        the columnNumber
      • setColumnNumber

        public void setColumnNumber​(int columnNumber)
        Parameters:
        columnNumber - the columnNumber to set