Class XmlPropertyElementDigester
- java.lang.Object
-
- org.onemind.commons.java.xml.digest.DefaultDigester
-
- org.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
Constructors Constructor Description XmlPropertyElementDigester(java.lang.String elementName, java.util.Map prop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(SaxDigesterHandler handler, char[] chars, int offset, int length)Handle the charactersvoidendDigest(SaxDigesterHandler handler)End the elementvoidstartDigest(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
-
-
-
-
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:
startDigestin interfaceElementDigester- Overrides:
startDigestin classDefaultDigester- Parameters:
handler- the handlerattrs- the attributes- Throws:
org.xml.sax.SAXException- if there's handling exception
-
endDigest
public void endDigest(SaxDigesterHandler handler) throws org.xml.sax.SAXException
End the element- Specified by:
endDigestin interfaceElementDigester- Overrides:
endDigestin classDefaultDigester- Parameters:
handler- the handler- 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:
charactersin interfaceElementDigester- Overrides:
charactersin classDefaultDigester- Parameters:
handler- the handlerchars- the charactersoffset- the offsetlength- the length- Throws:
org.xml.sax.SAXException- if there's parse problem
-
-