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

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

public class DefaultDigester
extends java.lang.Object
implements ElementDigester

A default digesters that does nothing

Author:
TiongHiang Lee (thlee@thinklient.org)

Constructor Summary
DefaultDigester(java.lang.String name)
          Constructor
 
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 attrs)
          Start an element with the given attributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDigester

public DefaultDigester(java.lang.String name)
Constructor

Parameters:
name - the name
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
Parameters:
handler - the handler
attrs - 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

Specified by:
endDigest in interface ElementDigester
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

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

getElementName

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

Specified by:
getElementName in interface ElementDigester
Returns:
the element name


Copyright © 2004-2006 . All Rights Reserved.