org.onemind.commons.java.datastructure
Class XmlPropertyElementDigester

java.lang.Object
  extended byorg.onemind.commons.java.xml.digest.DefaultDigester
      extended byorg.onemind.commons.java.datastructure.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)

Constructor Summary
XmlPropertyElementDigester(java.lang.String elementName, java.util.Map prop)
           
 
Method Summary
 void characters(SaxDigesterHandler handler, char[] chars, int offset, int length)
          Handle the characters
 void endDigest(SaxDigesterHandler handler)
          End the element
 void startDigest(SaxDigesterHandler handler, org.xml.sax.Attributes attrs)
          Start an element with the given attributes
 
Methods inherited from class org.onemind.commons.java.xml.digest.DefaultDigester
getElementName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.onemind.commons.java.xml.digest.ElementDigester
getElementName
 

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
Throws:
org.xml.sax.SAXException

endDigest

public void endDigest(SaxDigesterHandler handler)
               throws org.xml.sax.SAXException
End the element

Specified by:
endDigest in interface ElementDigester
Overrides:
endDigest in class DefaultDigester
Throws:
org.xml.sax.SAXException

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
Throws:
org.xml.sax.SAXException


Copyright © 2004-2006 . All Rights Reserved.