org.apache.cocoon.xml
Class AbstractDOMFragment

java.lang.Object
  extended by org.apache.cocoon.xml.AbstractDOMFragment
All Implemented Interfaces:
XMLFragment, XMLizable

public abstract class AbstractDOMFragment
extends Object
implements XMLFragment

Abstract implementation of XMLFragment for objects that are more easily represented as a DOM.

The toSAX(org.xml.sax.ContentHandler) method is implemented by streaming (using a DOMStreamer) the results of the XMLFragment.toDOM(Node) that must be implemented by concrete subclasses.

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

Constructor Summary
AbstractDOMFragment()
           
 
Method Summary
 void toSAX(ContentHandler handler)
          Generates SAX events representing the object's state by serializing the result of toDOM().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.xml.XMLFragment
toDOM
 

Constructor Detail

AbstractDOMFragment

public AbstractDOMFragment()
Method Detail

toSAX

public void toSAX(ContentHandler handler)
           throws SAXException
Generates SAX events representing the object's state by serializing the result of toDOM().

Specified by:
toSAX in interface XMLizable
Throws:
SAXException


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