Class Element

    • Field Summary

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

      Constructors 
      Constructor Description
      Element()  
    • 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
      • setLocale

        public void setLocale​(java.util.Locale locale)
      • getLocale

        public java.util.Locale getLocale()
      • 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.