fr.gouv.culture.sdx.pipeline
Class ElementCountTransformation
java.lang.Object
org.apache.avalon.framework.logger.AbstractLoggable
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
fr.gouv.culture.sdx.pipeline.AbstractTransformation
fr.gouv.culture.sdx.pipeline.ElementCountTransformation
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, Transformation, org.apache.cocoon.xml.XMLConsumer, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer
- Direct Known Subclasses:
- ElementCounter
- public class ElementCountTransformation
- extends AbstractTransformation
Created by IntelliJ IDEA.
User: rpandey
Date: Jul 28, 2003
Time: 12:07:43 PM
To change this template use Options | File Templates.
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
contentHandler, lexicalHandler, xmlConsumer |
Method Summary |
void |
characters(char[] c,
int start,
int len)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Loads base configuration common to all transformations.
|
protected void |
count(java.lang.String uri,
java.lang.String loc,
java.lang.String raw,
org.xml.sax.Attributes atts)
|
void |
endElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw)
|
protected void |
resetFields()
|
protected void |
sendSummary()
|
void |
startElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw,
org.xml.sax.Attributes a)
|
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
setConsumer, setContentHandler, setLexicalHandler |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
Methods inherited from interface org.xml.sax.ext.LexicalHandler |
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
setConsumer |
ElementCountTransformation
public ElementCountTransformation()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Description copied from class:
AbstractTransformation
- Loads base configuration common to all transformations.
Currently loads the id from the configuraion object.
It will eventually load the optional "keep" parameter which
is used to specify that the results of the transformation
should be retained.
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Overrides:
configure
in class AbstractTransformation
- Parameters:
configuration
- The configuration object
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
count
protected void count(java.lang.String uri,
java.lang.String loc,
java.lang.String raw,
org.xml.sax.Attributes atts)
startElement
public void startElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw,
org.xml.sax.Attributes a)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
sendSummary
protected void sendSummary()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
resetFields
protected void resetFields()
characters
public void characters(char[] c,
int start,
int len)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
Copyright © 2000-2004 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.