org.apache.cocoon.components.language.markup
Class Logicsheet
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.components.language.markup.Logicsheet
- All Implemented Interfaces:
- org.apache.avalon.framework.logger.Loggable
- Direct Known Subclasses:
- NamedLogicsheet
- public class Logicsheet
- extends org.apache.avalon.framework.logger.AbstractLoggable
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 $Revision: 1.3.2.5 $ $Date: 2001/10/11 08:56:06 $
- Author:
- Ricardo Rocha, Davanum Srinivas, Ovidiu Predescu
Inner Class Summary |
protected class |
Logicsheet.SaveNamespaceFilter
This filter listen for source SAX events, and register the declared
namespaces into a Map object. |
Field Summary |
protected java.util.Map |
namespaces
the template namespace's list |
Constructor Summary |
Logicsheet(Source source,
org.apache.avalon.framework.component.ComponentManager manager,
SourceResolver resolver)
|
Logicsheet(java.lang.String systemId,
URLFactory urlFactory,
org.apache.avalon.framework.component.ComponentManager manager)
|
Logicsheet(java.net.URL url,
URLFactory urlFactory,
org.apache.avalon.framework.component.ComponentManager manager)
Creates a new Logicsheet instance given an URL to
containing the logicsheet, the URLFactory , and a
ComponentManager . |
Method Summary |
java.util.Map |
getNamespaces()
This will return the list of namespaces in this logicsheet. |
java.lang.String |
getSystemId()
|
javax.xml.transform.sax.TransformerHandler |
getTransformerHandler()
Obtain the TransformerHandler object that will perform the
transformation associated with this logicsheet. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespaces
protected java.util.Map namespaces
- the template namespace's list
Logicsheet
public Logicsheet(Source source,
org.apache.avalon.framework.component.ComponentManager manager,
SourceResolver resolver)
Logicsheet
public Logicsheet(java.net.URL url,
URLFactory urlFactory,
org.apache.avalon.framework.component.ComponentManager manager)
throws java.net.MalformedURLException,
java.io.IOException
- Creates a new
Logicsheet
instance given an URL to
containing the logicsheet, the URLFactory
, and a
ComponentManager
.
- Parameters:
url
- an URL
valueurlFactory
- an URLFactory
value- Throws:
java.net.MalformedURLException
- if an error occursjava.io.IOException
- if an error occurs
Logicsheet
public Logicsheet(java.lang.String systemId,
URLFactory urlFactory,
org.apache.avalon.framework.component.ComponentManager manager)
throws java.net.MalformedURLException,
java.io.IOException
getSystemId
public java.lang.String getSystemId()
getNamespaces
public java.util.Map getNamespaces()
- This will return the list of namespaces in this logicsheet.
getTransformerHandler
public javax.xml.transform.sax.TransformerHandler getTransformerHandler()
- Obtain the TransformerHandler object that will perform the
transformation associated with this logicsheet.
- Returns:
- a
TransformerHandler
value
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.