fr.gouv.culture.sdx.pipeline
Class TagFilter

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.xml.AbstractXMLPipe
              extended by fr.gouv.culture.sdx.utils.xml.AbstractSdxXMLPipe
                  extended by fr.gouv.culture.sdx.pipeline.AbstractTransformation
                      extended by fr.gouv.culture.sdx.pipeline.AbstractNodeBasedTransformation
                          extended by fr.gouv.culture.sdx.pipeline.TagFilter
All Implemented Interfaces:
Transformation, Describable, Encodable, Identifiable, Localizable, SdxObject, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer, org.apache.excalibur.xml.sax.XMLConsumer, org.apache.excalibur.xml.sax.XMLizable, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
Direct Known Subclasses:
ElementFilter, TagFilter

public class TagFilter
extends AbstractNodeBasedTransformation


Nested Class Summary
 
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.utils.SdxObject
SdxObject.ConfigurationNode
 
Field Summary
protected  java.lang.String _lastPrefixRemoved
           
protected  boolean _send
           
static java.lang.String PARAM_NAME_SEND_MODE
          Variable indicating wheter elements specified as in the transParameters object should be sent
 
Fields inherited from class fr.gouv.culture.sdx.pipeline.AbstractNodeBasedTransformation
_attributesToTrack, _wildcardNodesToTrack, _xpathString, c_attributes, c_loc, c_raw, c_uri
 
Fields inherited from class fr.gouv.culture.sdx.pipeline.AbstractTransformation
_resolver, PARAMETER_NAME_DISABLE, PARAMETER_NAME_ENABLE, parameters, transParameters
 
Fields inherited from class fr.gouv.culture.sdx.utils.xml.AbstractSdxXMLPipe
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface fr.gouv.culture.sdx.pipeline.Transformation
ATTRIBUTE_KEEP, ATTRIBUTE_SRC, ATTRIBUTE_TH, CLASS_NAME_SUFFIX, PACKAGE_QUALNAME
 
Fields inherited from interface fr.gouv.culture.sdx.utils.Encodable
DEFAULT_ENCODING
 
Constructor Summary
TagFilter()
           
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String loc, java.lang.String raw)
           
 void endPrefixMapping(java.lang.String prefix)
           
 void recycle()
          Recycles the contentHandler, lexicalHandler, and xmlConsumer for the transformation
protected  void resetFields()
           
protected  void setInternalParameters(org.apache.avalon.framework.parameters.Parameters params)
           
protected  void setSendMode(org.apache.avalon.framework.parameters.Parameters params)
           
protected  boolean shouldSendElementEvent(java.lang.String uri, java.lang.String loc, java.lang.String raw, org.xml.sax.Attributes atts)
           
 void startElement(java.lang.String uri, java.lang.String loc, java.lang.String raw, org.xml.sax.Attributes a)
           
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
           
 
Methods inherited from class fr.gouv.culture.sdx.pipeline.AbstractNodeBasedTransformation
attributeIsParameter, configure, elementIsParameter, matchesWildcardAttribute, matchesWildcardElement, matchesWildcardName, nodeIsParameter, peekCurrentAttributes, resetCurrentElementProperties, setCurrentElementProperties, setNodesToTrack, wildCardExprMatchesElementXpathString
 
Methods inherited from class fr.gouv.culture.sdx.pipeline.AbstractTransformation
getClassNameSuffix, getParameters, initToSax, initVolatileObjectsToSax, isStepEnabled, service, setParameters, shouldKeepResult, verifyConfigurationParameters
 
Methods inherited from class fr.gouv.culture.sdx.utils.xml.AbstractSdxXMLPipe
configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
characters, comment, endCDATA, endDocument, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
getLogger, 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
characters, endDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument
 
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
 
Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject
getLog
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 
Methods inherited from interface org.apache.avalon.framework.context.Contextualizable
contextualize
 
Methods inherited from interface fr.gouv.culture.sdx.utils.Identifiable
getId, setId
 
Methods inherited from interface fr.gouv.culture.sdx.utils.Describable
getDescription, setDescription
 
Methods inherited from interface fr.gouv.culture.sdx.utils.Encodable
getEncoding, setEncoding
 
Methods inherited from interface fr.gouv.culture.sdx.utils.Localizable
getLocale, getXmlLang, setLocale, setXmlLang
 
Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable
toSAX
 

Field Detail

PARAM_NAME_SEND_MODE

public static final java.lang.String PARAM_NAME_SEND_MODE
Variable indicating wheter elements specified as in the transParameters object should be sent

See Also:
Constant Field Values

_send

protected boolean _send

_lastPrefixRemoved

protected java.lang.String _lastPrefixRemoved
Constructor Detail

TagFilter

public TagFilter()
Method Detail

setSendMode

protected void setSendMode(org.apache.avalon.framework.parameters.Parameters params)

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
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.apache.cocoon.xml.AbstractXMLPipe
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
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.apache.cocoon.xml.AbstractXMLPipe
Throws:
org.xml.sax.SAXException

shouldSendElementEvent

protected boolean shouldSendElementEvent(java.lang.String uri,
                                         java.lang.String loc,
                                         java.lang.String raw,
                                         org.xml.sax.Attributes atts)

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws org.xml.sax.SAXException
Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler
Overrides:
startPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipe
Throws:
org.xml.sax.SAXException

endPrefixMapping

public void endPrefixMapping(java.lang.String prefix)
                      throws org.xml.sax.SAXException
Specified by:
endPrefixMapping in interface org.xml.sax.ContentHandler
Overrides:
endPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipe
Throws:
org.xml.sax.SAXException

setInternalParameters

protected void setInternalParameters(org.apache.avalon.framework.parameters.Parameters params)
Overrides:
setInternalParameters in class AbstractNodeBasedTransformation

resetFields

protected void resetFields()
Overrides:
resetFields in class AbstractNodeBasedTransformation

recycle

public void recycle()
Description copied from class: AbstractTransformation
Recycles the contentHandler, lexicalHandler, and xmlConsumer for the transformation

Specified by:
recycle in interface Transformation
Specified by:
recycle in interface org.apache.avalon.excalibur.pool.Recyclable
Overrides:
recycle in class AbstractNodeBasedTransformation


Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.