This project has retired. For details please refer to its
Attic page .
WriteDOMSessionTransformer (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.transformation
Class WriteDOMSessionTransformer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.apache.cocoon.transformation.WriteDOMSessionTransformer
All Implemented Interfaces: Poolable , Recyclable , Component , LogEnabled , SitemapModelComponent , Transformer , XMLPipe , XMLProducer , XMLConsumer , ContentHandler , LexicalHandler
public class WriteDOMSessionTransformer extends AbstractTransformer
Version:
CVS $Id: WriteDOMSessionTransformer.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sven Beauprez
Fields inherited from interface org.apache.cocoon.transformation.Transformer
ROLE
Method Summary
void
characters (char[] c,
int start,
int len)
Receive notification of character data.
void
endCDATA ()
Report the end of a CDATA section.
void
endElement (String uri,
String name,
String raw)
Receive notification of the end of an element.
protected void
launchStoredMappings ()
void
recycle ()
Recyclable
void
setup (SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
Set the SourceResolver
, objectModel Map
,
the source and sitemap Parameters
used to process the request.
void
startCDATA ()
Report the start of a CDATA section.
void
startElement (String uri,
String name,
String raw,
Attributes attributes)
Receive notification of the beginning of an element.
void
startPrefixMapping (String prefix,
String uri)
Begin the scope of a prefix-URI Namespace mapping.
protected void
storePrefixMapping (String prefix,
String uri)
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
comment , endDocument , endDTD , endEntity , endPrefixMapping , ignorableWhitespace , processingInstruction , setDocumentLocator , skippedEntity , startDocument , startDTD , startEntity
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
DOM_NAME
public static final String DOM_NAME
See Also: Constant Field Values
DOM_ROOT_ELEMENT
public static final String DOM_ROOT_ELEMENT
See Also: Constant Field Values
WriteDOMSessionTransformer
public WriteDOMSessionTransformer ()
recycle
public void recycle ()
Recyclable
Specified by: recycle
in interface Recyclable
Overrides: recycle
in class AbstractXMLProducer
setup
public void setup (SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
throws ProcessingException ,
SAXException ,
IOException
Description copied from interface: SitemapModelComponent
Set the SourceResolver
, objectModel Map
,
the source and sitemap Parameters
used to process the request.
Throws:
ProcessingException
SAXException
IOException
startPrefixMapping
public void startPrefixMapping (String prefix,
String uri)
throws SAXException
Description copied from class: AbstractXMLPipe
Begin the scope of a prefix-URI Namespace mapping.
Specified by: startPrefixMapping
in interface ContentHandler
Overrides: startPrefixMapping
in class AbstractXMLPipe
Parameters: prefix
- The Namespace prefix being declared.uri
- The Namespace URI the prefix is mapped to.
Throws:
SAXException
startElement
public void startElement (String uri,
String name,
String raw,
Attributes attributes)
throws SAXException
Description copied from class: AbstractXMLPipe
Receive notification of the beginning of an element.
Specified by: startElement
in interface ContentHandler
Overrides: startElement
in class AbstractXMLPipe
Parameters: uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.attributes
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
Throws:
SAXException
endElement
public void endElement (String uri,
String name,
String raw)
throws SAXException
Description copied from class: AbstractXMLPipe
Receive notification of the end of an element.
Specified by: endElement
in interface ContentHandler
Overrides: endElement
in class AbstractXMLPipe
Parameters: uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.
Throws:
SAXException
characters
public void characters (char[] c,
int start,
int len)
throws SAXException
Description copied from class: AbstractXMLPipe
Receive notification of character data.
Specified by: characters
in interface ContentHandler
Overrides: characters
in class AbstractXMLPipe
Parameters: c
- The characters from the XML document.start
- The start position in the array.len
- The number of characters to read from the array.
Throws:
SAXException
startCDATA
public void startCDATA ()
throws SAXException
Description copied from class: AbstractXMLPipe
Report the start of a CDATA section.
Specified by: startCDATA
in interface LexicalHandler
Overrides: startCDATA
in class AbstractXMLPipe
Throws:
SAXException
endCDATA
public void endCDATA ()
throws SAXException
Description copied from class: AbstractXMLPipe
Report the end of a CDATA section.
Specified by: endCDATA
in interface LexicalHandler
Overrides: endCDATA
in class AbstractXMLPipe
Throws:
SAXException
storePrefixMapping
protected void storePrefixMapping (String prefix,
String uri)
launchStoredMappings
protected void launchStoredMappings ()
throws SAXException
Throws:
SAXException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.