org.apache.cocoon.taglib.string
Class TextRecordingTag

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.taglib.TagSupport
          extended by org.apache.cocoon.taglib.VarTagSupport
              extended by org.apache.cocoon.taglib.VarTransformerTagSupport
                  extended by org.apache.cocoon.taglib.string.TextRecordingTag
All Implemented Interfaces:
Poolable, Recyclable, Component, LogEnabled, Serviceable, Tag, TransformerTag, XMLProducerTag, XMLProducer, XMLConsumer, ContentHandler, LexicalHandler
Direct Known Subclasses:
StringTagSupport

public class TextRecordingTag
extends VarTransformerTagSupport

Version:
CVS $Id: TextRecordingTag.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Volker Schmitt

Field Summary
 
Fields inherited from class org.apache.cocoon.taglib.VarTransformerTagSupport
xmlConsumer
 
Fields inherited from class org.apache.cocoon.taglib.VarTagSupport
manager, var
 
Fields inherited from class org.apache.cocoon.taglib.TagSupport
objectModel, parameters, parent, resolver
 
Fields inherited from interface org.apache.cocoon.taglib.Tag
EVAL_BODY, EVAL_PAGE, ROLE, SKIP_BODY
 
Constructor Summary
TextRecordingTag()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 int doEndTag(String namespaceURI, String localName, String qName)
          Process the end tag for this instance.
protected  String getText()
           
 void recycle()
           
 
Methods inherited from class org.apache.cocoon.taglib.VarTransformerTagSupport
comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setConsumer, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.cocoon.taglib.VarTagSupport
getRequest, getVar, getVariable, removeVariable, service, setVar, setVariable
 
Methods inherited from class org.apache.cocoon.taglib.TagSupport
doStartTag, findAncestorWithClass, findAttribute, getParent, setParent, setup
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, 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.apache.cocoon.taglib.Tag
doStartTag, getParent, setParent, setup
 

Constructor Detail

TextRecordingTag

public TextRecordingTag()
Method Detail

doEndTag

public int doEndTag(String namespaceURI,
                    String localName,
                    String qName)
             throws SAXException
Description copied from class: TagSupport
Process the end tag for this instance.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
EVAL_PAGE.
Throws:
SAXException

getText

protected final String getText()
Returns:
String result of recording

characters

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

recycle

public void recycle()
Specified by:
recycle in interface Recyclable
Overrides:
recycle in class VarTransformerTagSupport


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.