org.apache.cocoon.components.language.markup
Class Logicsheet

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.language.markup.Logicsheet
All Implemented Interfaces:
LogEnabled
Direct Known Subclasses:
NamedLogicsheet

public class Logicsheet
extends AbstractLogEnabled

A code-generation logicsheet. This class is actually a wrapper for a "standard" XSLT stylesheet stored as trax.Templates object. Though this will change shortly: a new markup language will be used for logicsheet authoring; logicsheets written in this language will be transformed into an equivalent XSLT stylesheet anyway... This class should probably be based on an interface...

Version:
CVS $Id: Logicsheet.java 226520 2005-07-30 13:50:45Z anathaniel $
Author:
Ricardo Rocha, Davanum Srinivas, Ovidiu Predescu

Field Summary
protected  Map namespaceURIs
          the template namespace's list
 
Constructor Summary
Logicsheet(Source source, ServiceManager manager, SourceResolver resolver, LogicsheetFilter filter)
           
Logicsheet(String systemId, ServiceManager manager, SourceResolver resolver, LogicsheetFilter filter)
           
 
Method Summary
 boolean equals(Object other)
          Return true if other logicsheet has the same system id.
 Map getNamespaceURIs()
          This will return the list of namespaces in this logicsheet.
 String getSystemId()
          Return system id which uniquely identifies logicsheet.
 TransformerHandler getTransformerHandler()
          Obtain the TransformerHandler object that will perform the transformation associated with this logicsheet.
 int hashCode()
          Return hash code value for logicsheet.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespaceURIs

protected Map namespaceURIs
the template namespace's list

Constructor Detail

Logicsheet

public Logicsheet(Source source,
                  ServiceManager manager,
                  SourceResolver resolver,
                  LogicsheetFilter filter)
           throws SAXException,
                  IOException,
                  ProcessingException

Logicsheet

public Logicsheet(String systemId,
                  ServiceManager manager,
                  SourceResolver resolver,
                  LogicsheetFilter filter)
           throws SAXException,
                  IOException,
                  SourceException,
                  ProcessingException
Method Detail

equals

public boolean equals(Object other)
Return true if other logicsheet has the same system id.


hashCode

public int hashCode()
Return hash code value for logicsheet.


getSystemId

public String getSystemId()
Return system id which uniquely identifies logicsheet.


getNamespaceURIs

public Map getNamespaceURIs()
                     throws ProcessingException
This will return the list of namespaces in this logicsheet.

Throws:
ProcessingException

getTransformerHandler

public TransformerHandler getTransformerHandler()
                                         throws ProcessingException
Obtain the TransformerHandler object that will perform the transformation associated with this logicsheet.

Returns:
a TransformerHandler value
Throws:
ProcessingException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.