|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.components.xscript.XScriptObject
XScriptObject
is the root class implemented by all the
object types in XScript. Every XScriptObject is essentially a
Source object.
Field Summary | |
protected org.apache.avalon.framework.component.ComponentManager |
componentManager
|
Constructor Summary | |
XScriptObject(XScriptManager manager)
Creates a new XScriptObject instance. |
Method Summary | |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
|
abstract long |
getContentLength()
Get the content length of the source or -1 if it is not possible to determine the length. |
org.xml.sax.InputSource |
getInputSource()
Return an InputSource object to read the XML
content. |
long |
getLastModified()
Get the last modification date of the source or 0 if it is not possible to determine the date. |
void |
recycle()
|
void |
toEmbeddedSAX(org.xml.sax.ContentHandler handler)
|
void |
toSAX(org.xml.sax.ContentHandler handler)
Generates SAX events representing the object's state. |
XScriptObject |
transform(XScriptObject stylesheet,
org.apache.avalon.framework.parameters.Parameters params)
Apply the XSLT stylesheet defined by the stylesheet
variable to this instance. |
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.environment.Source |
getInputStream, getSystemId |
Field Detail |
protected org.apache.avalon.framework.component.ComponentManager componentManager
Constructor Detail |
public XScriptObject(XScriptManager manager)
XScriptObject
instance.
manager
- a XScriptManager
valueMethod Detail |
public void compose(org.apache.avalon.framework.component.ComponentManager manager) throws org.apache.avalon.framework.component.ComponentException
compose
in interface org.apache.avalon.framework.component.Composable
org.apache.avalon.framework.component.ComponentException
public XScriptObject transform(XScriptObject stylesheet, org.apache.avalon.framework.parameters.Parameters params) throws java.lang.IllegalArgumentException, ProcessingException
stylesheet
variable to this instance. Return the result of the
transformation as an XScriptObject
.
stylesheet
- a XScriptObject
valueparams
- a Parameters
value containing optional
arguments to be passed to the XSLT processor.
XScriptObject
object containing the result
of the XSLT processing.
java.lang.IllegalArgumentException
- if an error occurs
ProcessingException
- if an error occurspublic void toEmbeddedSAX(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void toSAX(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
XMLizable
handler
can actually be a XMLConsumer
that accepts such
events.
toSAX
in interface XMLizable
org.xml.sax.SAXException
public long getLastModified()
Source
getLastModified
in interface Source
public abstract long getContentLength()
Source
getContentLength
in interface Source
public org.xml.sax.InputSource getInputSource() throws ProcessingException, java.io.IOException
Source
InputSource
object to read the XML
content.
getInputSource
in interface Source
InputSource
value
java.io.IOException
- if an error occurs
ProcessingException
- if an error occurspublic void recycle()
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |