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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Ricardo Rocha, Davanum Srinivas, Ovidiu Predescu

Field Summary
protected  Map namespaceURIs
          the template namespace's list
 
Constructor Summary
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.
 void fillNamespaceURIs()
          Fill the list of namespaces in this logicsheet.
 Map getNamespaceURIs()
          This will return the list of namespaces in this logicsheet, or null, if fillNamespaceURIs has not been called yet.
 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(String systemId,
                  ServiceManager manager,
                  SourceResolver resolver,
                  LogicsheetFilter filter)
           throws SAXException,
                  IOException,
                  SourceException,
                  ProcessingException
Throws:
SAXException
IOException
SourceException
ProcessingException
Method Detail

equals

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

Overrides:
equals in class Object

hashCode

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

Overrides:
hashCode in class Object

getSystemId

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


getNamespaceURIs

public Map getNamespaceURIs()
This will return the list of namespaces in this logicsheet, or null, if fillNamespaceURIs has not been called yet.


fillNamespaceURIs

public void fillNamespaceURIs()
                       throws ProcessingException
Fill 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-2010 The Apache Software Foundation. All Rights Reserved.