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

java.lang.Object
  extended byorg.onemind.commons.java.xml.digest.DefaultDigester
      extended byorg.onemind.commons.java.xml.digest.AbstractElementCreatorDigester
All Implemented Interfaces:
ElementCreatorDigester, ElementDigester
Direct Known Subclasses:
ChainedDigester

public abstract class AbstractElementCreatorDigester
extends DefaultDigester
implements ElementCreatorDigester

The abstract implementation of ElementCreatorDigester. The element creator will fire an event at the end of digestion

Author:
TiongHiang Lee (thlee@onemindsoft.org)

Constructor Summary
AbstractElementCreatorDigester(java.lang.String name)
          Constructor
 
Method Summary
 void addListener(ElementListener l)
          Add listener
 void endDigest(SaxDigesterHandler handler)
          End the element
 java.lang.Object getCreatedElement()
          Get the created object
 void removeListener(ElementListener l)
          Remove listener
protected  void setCreatedElement(java.lang.Object obj)
          Set the created element
 
Methods inherited from class org.onemind.commons.java.xml.digest.DefaultDigester
characters, getElementName, startDigest
 
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, startDigest
 

Constructor Detail

AbstractElementCreatorDigester

public AbstractElementCreatorDigester(java.lang.String name)
Constructor

Parameters:
name - the element name
Method Detail

addListener

public final void addListener(ElementListener l)
Add listener

Specified by:
addListener in interface ElementCreatorDigester
Parameters:
l - the listener

removeListener

public final void removeListener(ElementListener l)
Remove listener

Specified by:
removeListener in interface ElementCreatorDigester
Parameters:
l - the listener

endDigest

public void endDigest(SaxDigesterHandler handler)
               throws org.xml.sax.SAXException
End the element

Specified by:
endDigest in interface ElementDigester
Overrides:
endDigest in class DefaultDigester
Throws:
org.xml.sax.SAXException

setCreatedElement

protected final void setCreatedElement(java.lang.Object obj)
Set the created element

Parameters:
obj - the object

getCreatedElement

public final java.lang.Object getCreatedElement()
Get the created object

Specified by:
getCreatedElement in interface ElementCreatorDigester
Returns:
the created object


Copyright © 2004-2006 . All Rights Reserved.