Class Element


  • public class Element
    extends java.lang.Object
    Provides an XML element data object.
    Author:
    Joel HÃ¥kansson
    • Constructor Summary

      Constructors 
      Constructor Description
      Element​(java.lang.String uri, java.lang.String localName, java.util.Map<java.lang.String,​java.lang.String> attributes)
      Creates a new Element
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getAttributes()
      Gets this element's attributes
      java.lang.String getLocalName()
      Gets this elements local name
      java.lang.String getUri()
      Gets this element's namespace uri
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Element

        public Element​(java.lang.String uri,
                       java.lang.String localName,
                       java.util.Map<java.lang.String,​java.lang.String> attributes)
        Creates a new Element
        Parameters:
        uri - the namespace uri for the element
        localName - the local name for the element
        attributes - the attributes for the element
    • Method Detail

      • getUri

        public java.lang.String getUri()
        Gets this element's namespace uri
        Returns:
        returns this element's namespace uri
      • getLocalName

        public java.lang.String getLocalName()
        Gets this elements local name
        Returns:
        returns this element's local name
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getAttributes()
        Gets this element's attributes
        Returns:
        returns this element's attributes