public abstract class AbstractWingTransformer extends org.apache.cocoon.transformation.AbstractTransformer implements WingTransformer
| Constructor and Description |
|---|
AbstractWingTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBody(Body body)
Abstract implementations of WingTransformer
|
void |
addOptions(Options options)
What to add to the options list
|
void |
addPageMeta(PageMeta pageMeta)
What page metadata to add to the document
|
void |
addUserMeta(UserMeta userMeta)
What user metadata to add to the document
|
protected WingDocument |
createWingDocument(WingContext wingContext)
Construct a new WingDocument.
|
void |
dispose()
Dispose
|
void |
endDocument()
Receive notification of the end of a document.
|
void |
endElement(String namespaceURI,
String localName,
String qName)
Receive notification of the end of an element.
|
void |
endPrefixMapping(String prefix)
End the scope of a prefix-URI mapping.
|
String |
getComponentName()
Return the name of this component.
|
static String |
getDefaultMessageCatalogue()
Return the default i18n message catalogue that should be used
when no others are specified.
|
ObjectManager |
getObjectManager()
Return the ObjectManager associated with this component.
|
protected void |
handleException(Exception e)
Handle exceptions that occurred during the document's creation.
|
static Message |
message(String key)
This is a short cut method for creating a new message object, this
allows them to be created with one simple method call that uses
the default catalogue.
|
static Message |
message(String catalogue,
String key)
This is a short cut method for creating a new message object.
|
void |
recycle()
Recyle
|
void |
setupWing()
Set up the transformer so that it can build a feeder Wing document and
merge it into the main document
FIXME: Update document: - this method must be called to initialize the
framework.
|
void |
startDocument()
Receive notification of the beginning of a document.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes attributes)
Receive notification of the beginning of an element.
|
void |
startPrefixMapping(String prefix,
String uri)
Begin the scope of a prefix-URI Namespace mapping.
|
characters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntitysetConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntitycomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitypublic void setupWing()
throws WingException
WingExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.apache.cocoon.xml.AbstractXMLPipeSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.apache.cocoon.xml.AbstractXMLPipeSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipeprefix - The Namespace prefix being declared.uri - The Namespace URI the prefix is mapped to.SAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipeprefix - The prefix that was being mapping.SAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.apache.cocoon.xml.AbstractXMLPipenamespaceURI - The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace processing is not being
performed.localName - The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName - The raw XML 1.0 name (with prefix), or the empty string if raw
names are not available.attributes - The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.SAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.apache.cocoon.xml.AbstractXMLPipenamespaceURI - The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace processing is not being
performed.localName - The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName - The raw XML 1.0 name (with prefix), or the empty string if raw
names are not available.SAXExceptionprotected void handleException(Exception e) throws SAXException
e - The thrown exceptionSAXExceptionprotected WingDocument createWingDocument(WingContext wingContext) throws WingException
wingContext - The current wing context this transformer is operating under.WingExceptionpublic void addBody(Body body) throws Exception
addBody in interface WingTransformerExceptionpublic void addOptions(Options options) throws Exception
WingTransformeraddOptions in interface WingTransformerExceptionpublic void addUserMeta(UserMeta userMeta) throws Exception
WingTransformeraddUserMeta in interface WingTransformerExceptionpublic void addPageMeta(PageMeta pageMeta) throws Exception
WingTransformeraddPageMeta in interface WingTransformerExceptionpublic ObjectManager getObjectManager()
public String getComponentName()
getComponentName in interface WingTransformerpublic static String getDefaultMessageCatalogue()
public static Message message(String key)
key - The catalogue key used to look up a message.public static Message message(String catalogue, String key)
catalogue - The catalogue where translations will be located.key - The catalogue key used to look up a translation within the
catalogue.public void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class org.apache.cocoon.xml.AbstractXMLProducerpublic void dispose()
Copyright © 2013 DuraSpace. All Rights Reserved.