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(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element.
|
void |
endPrefixMapping(java.lang.String prefix)
End the scope of a prefix-URI mapping.
|
java.lang.String |
getComponentName()
Return the name of this component.
|
static java.lang.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(java.lang.Exception e)
Handle exceptions that occurred during the document's creation.
|
static Message |
message(java.lang.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(java.lang.String catalogue,
java.lang.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(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Receive notification of the beginning of an element.
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.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, skippedEntitypublic void setupWing()
throws WingException
WingExceptionpublic void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.apache.cocoon.xml.AbstractXMLPipeorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.apache.cocoon.xml.AbstractXMLPipeorg.xml.sax.SAXExceptionpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerstartPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipeprefix - The Namespace prefix being declared.uri - The Namespace URI the prefix is mapped to.org.xml.sax.SAXExceptionpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerendPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipeprefix - The prefix that was being mapping.org.xml.sax.SAXExceptionpublic void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.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.org.xml.sax.SAXExceptionpublic void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.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.org.xml.sax.SAXExceptionprotected void handleException(java.lang.Exception e)
throws org.xml.sax.SAXException
e - The thrown exceptionorg.xml.sax.SAXExceptionprotected WingDocument createWingDocument(WingContext wingContext) throws WingException
wingContext - The current wing context this transformer is operating under.WingExceptionpublic void addBody(Body body) throws java.lang.Exception
addBody in interface WingTransformerjava.lang.Exceptionpublic void addOptions(Options options) throws java.lang.Exception
WingTransformeraddOptions in interface WingTransformerjava.lang.Exceptionpublic void addUserMeta(UserMeta userMeta) throws java.lang.Exception
WingTransformeraddUserMeta in interface WingTransformerjava.lang.Exceptionpublic void addPageMeta(PageMeta pageMeta) throws java.lang.Exception
WingTransformeraddPageMeta in interface WingTransformerjava.lang.Exceptionpublic ObjectManager getObjectManager()
public java.lang.String getComponentName()
getComponentName in interface WingTransformerpublic static java.lang.String getDefaultMessageCatalogue()
public static Message message(java.lang.String key)
key - The catalogue key used to look up a message.public static Message message(java.lang.String catalogue, java.lang.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 © 2014 DuraSpace. All Rights Reserved.