Class DOMAttr

    • Constructor Detail

      • DOMAttr

        public DOMAttr​(String name,
                       DOMNode ownerElement)
      • DOMAttr

        public DOMAttr​(String name,
                       int start,
                       int end,
                       DOMNode ownerElement)
    • Method Detail

      • getNodeType

        public short getNodeType()
        Specified by:
        getNodeType in interface Node
      • getSpecified

        public boolean getSpecified()
        Specified by:
        getSpecified in interface Attr
      • isId

        public boolean isId()
        Specified by:
        isId in interface Attr
      • getNodeAttrName

        public DOMRange getNodeAttrName()
      • setDelimiter

        public void setDelimiter​(int delimiter)
      • hasDelimiter

        public boolean hasDelimiter()
      • getOriginalValue

        public String getOriginalValue()
        Get original attribute value from the document. This will include quotations (", ').
        Returns:
        attribute value with quotations if it had them.
      • setValue

        public void setValue​(String value,
                             int start,
                             int end)
      • getNodeAttrValue

        public DOMRange getNodeAttrValue()
      • valueContainsOffset

        public boolean valueContainsOffset​(int offset)
      • isXmlns

        public boolean isXmlns()
        Returns true if attribute name is a xmlns attribute and false otherwise.
        Parameters:
        attributeName -
        Returns:
        true if attribute name is a xmlns attribute and false otherwise.
      • isXmlns

        public static boolean isXmlns​(String attributeName)
      • isDefaultXmlns

        public boolean isDefaultXmlns()
        Returns true if attribute name is the default xmlns attribute and false otherwise.
        Parameters:
        attributeName -
        Returns:
        true if attribute name is the default xmlns attribute and false otherwise.
      • isDefaultXmlns

        public static boolean isDefaultXmlns​(String attributeName)
      • extractPrefixFromXmlns

        public String extractPrefixFromXmlns()
      • getPrefixIfMatchesURI

        public String getPrefixIfMatchesURI​(String uri)
        Returns the prefix if the given URI matches this attributes value. If the URI doesnt match, null is returned.
        Parameters:
        uri -
        Returns:
      • isNoDefaultXmlns

        public boolean isNoDefaultXmlns()
        Returns true if attribute name is the no default xmlns attribute and false otherwise.
        Parameters:
        attributeName -
        Returns:
        true if attribute name is the no default xmlns attribute and false otherwise.
      • isNoDefaultXmlns

        public static boolean isNoDefaultXmlns​(String attributeName)
      • isIncluded

        public boolean isIncluded​(int offset)
      • getStart

        public int getStart()
        Description copied from interface: DOMRange
        Returns the start offset of the node.
        Specified by:
        getStart in interface DOMRange
        Overrides:
        getStart in class DOMNode
        Returns:
        the start offset of the node.
      • getEnd

        public int getEnd()
        Description copied from interface: DOMRange
        Returns the end offset of the node.
        Specified by:
        getEnd in interface DOMRange
        Overrides:
        getEnd in class DOMNode
        Returns:
        the end offset of the node.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDelimiterOffset

        public int getDelimiterOffset()