org.onemind.commons.java.xml.digest
Class ChainedDigester

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

Constructor Detail

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 name
attrName - the attr

ChainedDigester

public ChainedDigester(java.lang.String name,
                       java.lang.String attrName,
                       java.lang.Object[] args)
Constructor

Parameters:
name - the element name
attrName - the attribute the specifies the dynamic digester
args - arguments to pass to constructor of the dynamic digester
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


Copyright © 2004-2006 . All Rights Reserved.