org.apache.cocoon.woody.transformation
Class EffectWidgetReplacingPipe
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.woody.transformation.EffectPipe
org.apache.cocoon.woody.transformation.EffectWidgetReplacingPipe
- All Implemented Interfaces:
- Poolable, Recyclable, LogEnabled, XMLPipe, XMLProducer, XMLConsumer, ContentHandler, LexicalHandler
- Direct Known Subclasses:
- WoodyTemplateTransformer
public class EffectWidgetReplacingPipe
- extends EffectPipe
The basic operation of this Pipe is that it replaces wt:widget (in the
Constants.WT_NS
namespace) tags (having an id attribute)
by the XML representation of the corresponding widget instance.
These XML fragments (normally all in the "Woody Instance"
namespace), can
then be translated to a HTML presentation by an XSL. This XSL will then only have to style
individual widget, and will not need to do the whole page layout.
For more information about the supported tags and their function, see the user documentation
for the woody template transformer.
- Version:
- CVS $Id: EffectWidgetReplacingPipe.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Timothy Larson
Fields inherited from class org.apache.cocoon.woody.transformation.EffectPipe |
bufferHandler, c, data, elements, event, EVENT_CHARACTERS, EVENT_COMMENT, EVENT_ELEMENT, EVENT_END_CDATA, EVENT_END_DOCUMENT, EVENT_END_DTD, EVENT_END_ELEMENT, EVENT_END_ENTITY, EVENT_END_PREFIX_MAPPING, EVENT_IGNORABLE_WHITESPACE, EVENT_PROCESSING_INSTRUCTION, EVENT_SET_DOCUMENT_LOCATOR, EVENT_SKIPPED_ENTITY, EVENT_START_CDATA, EVENT_START_DOCUMENT, EVENT_START_DTD, EVENT_START_ELEMENT, EVENT_START_ENTITY, EVENT_START_PREFIX_MAPPING, handler, handlers, input, len, locator, name, nullHandler, out, prefix, publicId, start, systemId, target, uri |
Methods inherited from class org.apache.cocoon.woody.transformation.EffectPipe |
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, init, processingInstruction, setConsumer, setContentHandler, setDocumentLocator, setLexicalHandler, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contextWidget
protected Widget contextWidget
contextWidgets
protected LinkedList contextWidgets
widgetId
protected String widgetId
widget
protected Widget widget
classes
protected Map classes
pipeContext
protected WoodyPipelineConfig pipeContext
gotStylingElement
protected boolean gotStylingElement
- Have we encountered a element in a widget ?
namespacePrefix
protected String namespacePrefix
- Namespace prefix used for the namespace
Constants.WT_NS
.
EffectWidgetReplacingPipe
public EffectWidgetReplacingPipe()
init
public void init(Widget contextWidget,
WoodyPipelineConfig pipeContext)
getWidgetId
protected String getWidgetId(Attributes attributes)
throws SAXException
- Throws:
SAXException
getWidget
protected Widget getWidget(String widgetId)
throws SAXException
- Throws:
SAXException
getRepeaterWidget
protected void getRepeaterWidget(String handler)
throws SAXException
- Throws:
SAXException
throwWrongWidgetType
public void throwWrongWidgetType(String pipeName,
String element,
String widget)
throws SAXException
- Throws:
SAXException
nestedTemplate
public EffectPipe.Handler nestedTemplate()
throws SAXException
- Throws:
SAXException
recycle
public void recycle()
- Description copied from class:
AbstractXMLProducer
- Recycle the producer by removing references, and resetting handlers to
null (empty) implementations.
- Specified by:
recycle
in interface Recyclable
- Overrides:
recycle
in class EffectPipe
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.