org.onemind.commons.java.datastructure
public class XmlPropertyElementDigester extends DefaultDigester implements ElementDigester
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
_prop |
private static java.util.Map |
_typeMap |
Constructor and Description |
---|
XmlPropertyElementDigester(java.lang.String elementName,
java.util.Map prop) |
Modifier and Type | Method and Description |
---|---|
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
|
getElementName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementName
private static final java.util.Map _typeMap
private final java.util.Map _prop
public XmlPropertyElementDigester(java.lang.String elementName, java.util.Map prop)
public void startDigest(SaxDigesterHandler handler, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startDigest
in interface ElementDigester
startDigest
in class DefaultDigester
handler
- the handlerattrs
- the attributesorg.xml.sax.SAXException
- if there's handling exceptionpublic void endDigest(SaxDigesterHandler handler) throws org.xml.sax.SAXException
endDigest
in interface ElementDigester
endDigest
in class DefaultDigester
handler
- the handlerorg.xml.sax.SAXException
- if there's handling exceptionpublic void characters(SaxDigesterHandler handler, char[] chars, int offset, int length) throws org.xml.sax.SAXException
characters
in interface ElementDigester
characters
in class DefaultDigester
handler
- the handlerchars
- the charactersoffset
- the offsetlength
- the lengthorg.xml.sax.SAXException
- if there's parse problem