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)
Abstract implementation of WingTransformer.
|
void |
addPageMeta(PageMeta pageMeta)
Abstract implementation of WingTransformer.
|
void |
addUserMeta(UserMeta userMeta)
Abstract implementation of WingTransformer.
|
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()
Recycle.
|
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
WingException - if setup is impossible.public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.apache.cocoon.xml.AbstractXMLPipeSAXException - if document is malformed.public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.apache.cocoon.xml.AbstractXMLPipeSAXException - if document is malformed.public 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.SAXException - if document is malformed.public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipeprefix - The prefix that was being mapping.SAXException - if document is malformed.public 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.SAXException - if document is malformed.public 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.SAXException - if document is malformed.protected void handleException(Exception e) throws SAXException
e - The thrown exceptionSAXException - unconditionally.protected WingDocument createWingDocument(WingContext wingContext) throws WingException
wingContext - The current wing context this transformer is operating under.WingException - if it can't.public void addBody(Body body) throws Exception
addBody in interface WingTransformerbody - to be added.Exception - if something went wrong.public void addOptions(Options options) throws Exception
addOptions in interface WingTransformeroptions - to be added.Exception - if something went wrong.public void addUserMeta(UserMeta userMeta) throws Exception
addUserMeta in interface WingTransformeruserMeta - to be added.Exception - if something went wrong.public void addPageMeta(PageMeta pageMeta) throws Exception
addPageMeta in interface WingTransformerpageMeta - to be added.Exception - if something went wrong.public 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 © 2016 DuraSpace. All rights reserved.