Class XmlPropertyElementDigester

  • All Implemented Interfaces:
    ElementDigester

    public class XmlPropertyElementDigester
    extends DefaultDigester
    implements ElementDigester
    A Sax elemenbt handler that can handle parsing properties specified in an xml file This syntax of the xml is something like
    Author:
    TiongHiang Lee (thlee@onemindsoft.org)
    • Field Detail

      • _typeMap

        private static final java.util.Map _typeMap
      • _prop

        private final java.util.Map _prop
    • Constructor Detail

      • XmlPropertyElementDigester

        public XmlPropertyElementDigester​(java.lang.String elementName,
                                          java.util.Map prop)
    • Method Detail

      • startDigest

        public void startDigest​(SaxDigesterHandler handler,
                                org.xml.sax.Attributes attrs)
                         throws org.xml.sax.SAXException
        Start an element with the given attributes
        Specified by:
        startDigest in interface ElementDigester
        Overrides:
        startDigest in class DefaultDigester
        Parameters:
        handler - the handler
        attrs - the attributes
        Throws:
        org.xml.sax.SAXException - if there's handling exception
      • characters

        public void characters​(SaxDigesterHandler handler,
                               char[] chars,
                               int offset,
                               int length)
                        throws org.xml.sax.SAXException
        Handle the characters
        Specified by:
        characters in interface ElementDigester
        Overrides:
        characters in class DefaultDigester
        Parameters:
        handler - the handler
        chars - the characters
        offset - the offset
        length - the length
        Throws:
        org.xml.sax.SAXException - if there's parse problem