org.onemind.commons.java.xml.digest
Interface ElementDigester

All Known Subinterfaces:
ElementCreatorDigester
All Known Implementing Classes:
AbstractElementCreatorDigester, DefaultDigester, XmlPropertyElementDigester

public interface ElementDigester

An element digester digest a particular element inside an xml file in common-digest framework

Version:
$Id: ElementDigester.java,v 1.3 2005/06/22 22:58:58 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@thinklient.org)

Method Summary
 void characters(SaxDigesterHandler handler, char[] chars, int offset, int length)
          Handle the characters
 void endDigest(SaxDigesterHandler handler)
          End the element
 java.lang.String getElementName()
          Get the element name
 void startDigest(SaxDigesterHandler handler, org.xml.sax.Attributes attr)
          Start an element with the given attributes
 

Method Detail

getElementName

public java.lang.String getElementName()
Get the element name

Returns:
the element name

startDigest

public void startDigest(SaxDigesterHandler handler,
                        org.xml.sax.Attributes attr)
                 throws org.xml.sax.SAXException
Start an element with the given attributes

Parameters:
handler - the handler
attr - the attributes
Throws:
org.xml.sax.SAXException - if there's handling exception

endDigest

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

Parameters:
handler - the handler
Throws:
org.xml.sax.SAXException - if there's handling exception

characters

public void characters(SaxDigesterHandler handler,
                       char[] chars,
                       int offset,
                       int length)
                throws org.xml.sax.SAXException
Handle the characters

Parameters:
handler - the handler
chars - the characters
offset - the offset
length - the length
Throws:
org.xml.sax.SAXException - if there's parse problem


Copyright © 2004-2006 . All Rights Reserved.