org.apache.cocoon.xml
Class ParamSaxBuffer
java.lang.Object
org.apache.cocoon.xml.AbstractSAXFragment
org.apache.cocoon.xml.SaxBuffer
org.apache.cocoon.xml.ParamSaxBuffer
- All Implemented Interfaces:
- ContentHandler, LexicalHandler, Poolable, Recyclable, Serializable, XMLConsumer, org.apache.cocoon.xml.XMLConsumer, org.apache.cocoon.xml.XMLFragment, XMLizable
- public class ParamSaxBuffer
- extends org.apache.cocoon.xml.SaxBuffer
Modification of the SAX buffer with parameterization capabilities.
Any {name}
expression inside of the character events can be
replaced by the content of another SaxBuffer if it is present in the map
passed to the toSAX(ContentHandler, Map)
method.
- Version:
- $Id: ParamSaxBuffer.html 1304280 2012-03-23 11:18:01Z ilgrosso $
- See Also:
- Serialized Form
Nested classes inherited from class org.apache.cocoon.xml.SaxBuffer |
org.apache.cocoon.xml.SaxBuffer.Characters, org.apache.cocoon.xml.SaxBuffer.Comment, org.apache.cocoon.xml.SaxBuffer.EndCDATA, org.apache.cocoon.xml.SaxBuffer.EndDocument, org.apache.cocoon.xml.SaxBuffer.EndDTD, org.apache.cocoon.xml.SaxBuffer.EndElement, org.apache.cocoon.xml.SaxBuffer.EndEntity, org.apache.cocoon.xml.SaxBuffer.EndPrefixMapping, org.apache.cocoon.xml.SaxBuffer.IgnorableWhitespace, org.apache.cocoon.xml.SaxBuffer.PI, org.apache.cocoon.xml.SaxBuffer.SkippedEntity, org.apache.cocoon.xml.SaxBuffer.StartCDATA, org.apache.cocoon.xml.SaxBuffer.StartDocument, org.apache.cocoon.xml.SaxBuffer.StartDTD, org.apache.cocoon.xml.SaxBuffer.StartElement, org.apache.cocoon.xml.SaxBuffer.StartEntity, org.apache.cocoon.xml.SaxBuffer.StartPrefixMapping, org.apache.cocoon.xml.SaxBuffer.XMLizableBit |
Fields inherited from class org.apache.cocoon.xml.SaxBuffer |
saxbits |
Constructor Summary |
ParamSaxBuffer()
Creates empty SaxBuffer |
ParamSaxBuffer(org.apache.cocoon.xml.SaxBuffer saxBuffer)
Creates copy of another SaxBuffer |
Method Summary |
void |
characters(char[] ch,
int start,
int length)
Parses text and extracts {name} parameters for later
substitution. |
void |
comment(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(String target,
String data)
|
void |
startDocument()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
toSAX(ContentHandler contentHandler,
Map parameters)
|
String |
toString(Map parameters)
|
Methods inherited from class org.apache.cocoon.xml.SaxBuffer |
addBit, bits, dump, endCDATA, endEntity, endPrefixMapping, getBits, isEmpty, recycle, setDocumentLocator, skippedEntity, startCDATA, startEntity, startPrefixMapping, toSAX, toString, xmlizable |
Methods inherited from class org.apache.cocoon.xml.AbstractSAXFragment |
toDOM |
ParamSaxBuffer
public ParamSaxBuffer()
- Creates empty SaxBuffer
ParamSaxBuffer
public ParamSaxBuffer(org.apache.cocoon.xml.SaxBuffer saxBuffer)
- Creates copy of another SaxBuffer
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Parses text and extracts
{name}
parameters for later
substitution.
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Throws:
SAXException
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Throws:
SAXException
startDocument
public void startDocument()
throws SAXException
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Throws:
SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws SAXException
- Throws:
SAXException
endDTD
public void endDTD()
throws SAXException
- Throws:
SAXException
startDTD
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
- Throws:
SAXException
toSAX
public void toSAX(ContentHandler contentHandler,
Map parameters)
throws SAXException
- Parameters:
parameters
- map containing SaxBuffers
- Throws:
SAXException
toString
public String toString(Map parameters)
throws SAXException
- Parameters:
parameters
- map containing SaxBuffers
- Throws:
SAXException
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.