Class Element

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      Element()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void addChild​(Element child)  
      java.lang.String getName()  
      java.lang.Object getValue()  
      java.lang.Class<? extends Element> resolveType​(java.lang.String name)
      This allows complex elements to return their own implementation or definitions for element types.
      void setAttributes​(org.xml.sax.Attributes attr)  
      void setName​(java.lang.String value)  
      void setRawValue​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

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

      • name

        protected java.lang.String name
    • Constructor Detail

      • Element

        public Element()
    • Method Detail

      • setAttributes

        public void setAttributes​(org.xml.sax.Attributes attr)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String value)
      • getValue

        public java.lang.Object getValue()
      • setRawValue

        public void setRawValue​(java.lang.String value)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addChild

        public abstract void addChild​(Element child)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resolveType

        public java.lang.Class<? extends Element> resolveType​(java.lang.String name)
        This allows complex elements to return their own implementation or definitions for element types. When a new element is encountered, the system works its way up through the current stack, and finally ends up at the types registered on the reader. This should return null if the element doesn't provide a custom type for the given name.
        The class returned can be a non-static class. In that case, it will get instantiated against the object returning it.
        Parameters:
        name - the lower cased element name.
        Returns:
        a class that represents the element, or null if unknown.