org.onemind.commons.java.xml.digest
Class ChainedDigester
java.lang.Object
org.onemind.commons.java.xml.digest.DefaultDigester
org.onemind.commons.java.xml.digest.AbstractElementCreatorDigester
org.onemind.commons.java.xml.digest.ChainedDigester
- All Implemented Interfaces:
- ElementCreatorDigester, ElementDigester
- public class ChainedDigester
- extends AbstractElementCreatorDigester
A ChainedDigester is a helper digester that chains the digestion
of xml dynamically based on a dynamic digester configured as a
attribute name.
- Author:
- TiongHiang Lee (thlee@onemindsoft.org)
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainedDigester
public ChainedDigester(java.lang.String name)
- Constructor
- Parameters:
name
- the name of element
ChainedDigester
public ChainedDigester(java.lang.String name,
java.lang.String attrName)
- Constructor
- Parameters:
name
- the element nameattrName
- the attr
ChainedDigester
public ChainedDigester(java.lang.String name,
java.lang.String attrName,
java.lang.Object[] args)
- Constructor
- Parameters:
name
- the element nameattrName
- the attribute the specifies the dynamic digesterargs
- arguments to pass to constructor of the dynamic digester
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
Copyright © 2004-2006 . All Rights Reserved.