cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Burton <ross.bur...@mail.com>
Subject Re: XObject
Date Mon, 04 Dec 2000 19:43:36 GMT
Jeremy Quinn wrote:
> So I suggest this interface:
> 
> package org.apache.cocoon.xml;
> 
> import org.w3c.dom.Node;
> import org.xml.sax.ContentHandler;
> 
> public interface XSPObject {
>   /**
>    * Generates SAX events representing the object's state
>    * for the given content handler
>    */
>   public void toSAX(ContentHandler handler);
> 
>   /**
>    * Appends children representing the object's state to
>    * the given node
>    */
>   public void toDOM(Node node);
> 
>   /**
>    * Returns a String representing the object's state
>    * Used when the output of one TagLib is sent to the input of another,
>          * that does not handle XSPObject, or for setting Attributes, etc.
>    */
>   public String toString();
> }

API: +1
Package: +1
Object name: +0

I'm not sure about XSPObject... I do like XMLFragment though.  It can be
used in more than just XSP, which is what XSPObject implies.  The object
is actually a fragment of a potential XML document.

Ross Burton

Mime
View raw message