|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.onemind.commons.java.xml.digest.DefaultDigester
org.onemind.commons.java.xml.digest.AbstractElementCreatorDigester
org.onemind.commons.java.xml.digest.ChainedDigester
public class ChainedDigester
A ChainedDigester is a helper digester that chains the digestion of xml dynamically based on a dynamic digester configured as a attribute name.
Field Summary | |
---|---|
private java.lang.Object[] |
_args
the argument to pass the constructor of the dynamic digester |
private java.lang.String |
_attrName
the attribute name that specify the digester class |
Constructor Summary | |
---|---|
ChainedDigester(java.lang.String name)
Constructor |
|
ChainedDigester(java.lang.String name,
java.lang.String attrName)
Constructor |
|
ChainedDigester(java.lang.String name,
java.lang.String attrName,
java.lang.Object[] args)
Constructor |
Method Summary | |
---|---|
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.AbstractElementCreatorDigester |
---|
addListener, endDigest, getCreatedElement, removeListener, setCreatedElement |
Methods inherited from class org.onemind.commons.java.xml.digest.DefaultDigester |
---|
characters, 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 |
---|
characters, getElementName |
Field Detail |
---|
private java.lang.String _attrName
private java.lang.Object[] _args
Constructor Detail |
---|
public ChainedDigester(java.lang.String name)
name
- the name of elementpublic ChainedDigester(java.lang.String name, java.lang.String attrName)
name
- the element nameattrName
- the attrpublic ChainedDigester(java.lang.String name, java.lang.String attrName, java.lang.Object[] args)
name
- the element nameattrName
- the attribute the specifies the dynamic digesterargs
- arguments to pass to constructor of the dynamic digesterMethod Detail |
---|
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 attributes
org.xml.sax.SAXException
- if there's handling exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |