org.apache.cocoon.transformation.helpers
Class ParametersRecorder

java.lang.Object
  extended byorg.apache.cocoon.transformation.helpers.NOPRecorder
      extended byorg.apache.cocoon.transformation.helpers.ParametersRecorder
All Implemented Interfaces:
ContentHandler, LexicalHandler, XMLConsumer, org.apache.cocoon.xml.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:
$Id: ParametersRecorder.html 1304280 2012-03-23 11:18:01Z ilgrosso $

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(String namespace, String name, String raw)
           
 SourceParameters getParameters(Parameters source)
           
 SourceParameters getParameters(SourceParameters source)
           
 void startElement(String namespace, String name, String raw, 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
 

Constructor Detail

ParametersRecorder

public ParametersRecorder()
If source is null a new Parameters object is created Otherwise they are joined.

Method Detail

getParameters

public SourceParameters getParameters(Parameters source)

getParameters

public SourceParameters getParameters(SourceParameters source)

startElement

public void startElement(String namespace,
                         String name,
                         String raw,
                         Attributes attr)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class NOPRecorder
Throws:
SAXException

endElement

public void endElement(String namespace,
                       String name,
                       String raw)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class NOPRecorder
Throws:
SAXException

characters

public void characters(char[] ary,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class NOPRecorder
Throws:
SAXException


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.