public class IncludePageMeta extends AbstractWingTransformer implements org.apache.cocoon.caching.CacheableProcessingComponent
Parameters should consist of a Dublin Core name and value. The format for
a parameter name must follow the form: "<element>.<qualifier>.<language>#order"
The qualifier, language, and order are all optional components. The order
component is an integer and is needed to ensure that parameter names are
unique. Since Cocoon's parameters are Hashes, duplicate names are not allowed.
The order syntax allows the sitemap programmer to specify an order in which
these metadata values should be placed inside the document.
The following are a valid examples:
<map:parameter name="theme.name.en" value="My Theme"/><map:parameter name="theme.path" value="/MyTheme/"/><map:parameter name="theme.css#1" value="style.css"/><map:parameter name="theme.css#2" value="style.css-ie"/><map:parameter name="theme.css#2" value="style.css-ff"/>| Constructor and Description |
|---|
IncludePageMeta() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPageMeta(PageMeta pageMeta)
Include the metadata in the page metadata.
|
Serializable |
getKey()
Generate the unique key.
|
org.apache.excalibur.source.SourceValidity |
getValidity()
Generate the validity object.
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
Extract the metadata name value pairs from the sitemap parameters.
|
addBody, addOptions, addUserMeta, createWingDocument, dispose, endDocument, endElement, endPrefixMapping, getComponentName, getDefaultMessageCatalogue, getObjectManager, handleException, message, message, recycle, setupWing, startDocument, startElement, startPrefixMappingcharacters, 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 Serializable getKey()
getKey in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic org.apache.excalibur.source.SourceValidity getValidity()
getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponentnull if the
component is currently not cacheable.public void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentresolver - resolver.objectModel - objectModel.src - source.parameters - parameters.org.apache.cocoon.ProcessingException - passed through.SAXException - passed through.IOException - passed through.public void addPageMeta(PageMeta pageMeta) throws WingException
addPageMeta in interface WingTransformeraddPageMeta in class AbstractWingTransformerpageMeta - to be added.WingException - passed through.Copyright © 2016 DuraSpace. All rights reserved.