org.apache.cocoon.xml
Class AbstractSAXFragment

java.lang.Object
  extended by org.apache.cocoon.xml.AbstractSAXFragment
All Implemented Interfaces:
XMLFragment, XMLizable
Direct Known Subclasses:
SaxBuffer, XMLByteStreamFragment

public abstract class AbstractSAXFragment
extends Object
implements XMLFragment

Abstract implementation of XMLFragment for objects that are more easily represented as SAX events.

The toDOM(org.w3c.dom.Node) method is implemented by piping in a DOMBuilder the results of XMLizable.toSAX(ContentHandler) that must be implemented by concrete subclasses.

Version:
CVS $Id: AbstractSAXFragment.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez

Constructor Summary
AbstractSAXFragment()
           
 
Method Summary
 void toDOM(Node node)
          Appends children representing the object's state to the given node by using the results of toSAX().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable
toSAX
 

Constructor Detail

AbstractSAXFragment

public AbstractSAXFragment()
Method Detail

toDOM

public void toDOM(Node node)
           throws Exception
Appends children representing the object's state to the given node by using the results of toSAX().

Specified by:
toDOM in interface XMLFragment
Throws:
Exception


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.