org.apache.cocoon.transformation.helpers
Class ParametersRecorder
java.lang.Object
|
+--org.apache.cocoon.transformation.helpers.NOPRecorder
|
+--org.apache.cocoon.transformation.helpers.ParametersRecorder
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler, XMLConsumer
- public final class ParametersRecorder
- extends NOPRecorder
This class records SAX Events and generates Parameters from them
The xml is flat and consists of elements which all have exactly one text node:
value_one
value_two
- Version:
- CVS $Id: ParametersRecorder.java,v 1.1.2.1 2002/06/07 09:34:24 cziegeler Exp $
- Author:
- Carsten Ziegeler
Constructor Summary |
ParametersRecorder()
If source is null a new Parameters object is created
Otherwise they are joined. |
Method Summary |
void |
characters(char[] ary,
int start,
int length)
|
void |
endElement(java.lang.String namespace,
java.lang.String name,
java.lang.String raw)
|
org.apache.excalibur.source.SourceParameters |
getParameters(org.apache.avalon.framework.parameters.Parameters source)
|
org.apache.excalibur.source.SourceParameters |
getParameters(org.apache.excalibur.source.SourceParameters source)
|
void |
startElement(java.lang.String namespace,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
|
Methods inherited from class org.apache.cocoon.transformation.helpers.NOPRecorder |
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParametersRecorder
public ParametersRecorder()
- If source is null a new Parameters object is created
Otherwise they are joined.
getParameters
public org.apache.excalibur.source.SourceParameters getParameters(org.apache.avalon.framework.parameters.Parameters source)
getParameters
public org.apache.excalibur.source.SourceParameters getParameters(org.apache.excalibur.source.SourceParameters source)
startElement
public void startElement(java.lang.String namespace,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
- Overrides:
startElement
in class NOPRecorder
endElement
public void endElement(java.lang.String namespace,
java.lang.String name,
java.lang.String raw)
throws org.xml.sax.SAXException
- Overrides:
endElement
in class NOPRecorder
characters
public void characters(char[] ary,
int start,
int length)
throws org.xml.sax.SAXException
- Overrides:
characters
in class NOPRecorder
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.