This project has retired. For details please refer to its
Attic page .
TraversableSourceDescriptionGenerator (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.generation
Class TraversableSourceDescriptionGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.apache.cocoon.generation.TraversableGenerator
org.apache.cocoon.generation.TraversableSourceDescriptionGenerator
All Implemented Interfaces: Poolable , Recyclable , Disposable , Component , LogEnabled , Serviceable , CacheableProcessingComponent , Generator , SitemapModelComponent , XMLProducer
public class TraversableSourceDescriptionGenerator extends TraversableGenerator
This Generator augments the output of the TraversableGenerator.
It adds:
version information if the Source implements VersionableSource.
locking information if the Source implements Lockablesource.
permission information if the Source implements RestrictableSource.
and describes its SourceProperties if the Source implements InspectableSource.
Sitemap parameters that can be specified to control processing are:
version
(true
)
whether to generate versioning information.
locking
(true
)
whether to generate locking information.
permission
(true
)
whether to generate permission information.
properties
(true
)
whether to generate source property information.
Version:
$Id: TraversableSourceDescriptionGenerator.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Stephan Michels , Unico Hommes
Fields inherited from class org.apache.cocoon.generation.TraversableGenerator
attributes , cacheKeyParList , COL_NODE_NAME , DATE_ATTR_NAME , dateFormatter , depth , excludeRE , includeRE , isRequestedSource , LASTMOD_ATTR_NAME , PREFIX , refreshDelay , RES_NAME_ATTR_NAME , RESOURCE_NODE_NAME , reverse , rootRE , SIZE_ATTR_NAME , sort , URI , URI_ATTR_NAME , validity
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
Methods inherited from class org.apache.cocoon.generation.TraversableGenerator
addAncestorPath , addPath , endNode , generate , getAncestors , getKey , getValidity , isExcluded , isIncluded , isRoot , recycle , startNode
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
MIME_TYPE_ATTR_NAME
protected static final String MIME_TYPE_ATTR_NAME
See Also: Constant Field Values
TraversableSourceDescriptionGenerator
public TraversableSourceDescriptionGenerator ()
setup
public void setup (SourceResolver resolver,
Map objectModel,
String location,
Parameters parameters)
throws ProcessingException ,
SAXException ,
IOException
Set the SourceResolver
, objectModel Map
,
the source and sitemap Parameters
used to process the request.
Specified by: setup
in interface SitemapModelComponent
Overrides: setup
in class TraversableGenerator
Parameters: resolver
- Source ResolverobjectModel
- Object model.location
- Location of the source.parameters
- Parameters for the generator.
Throws:
ProcessingException
SAXException
IOException
addContent
protected final void addContent (TraversableSource source)
throws SAXException ,
ProcessingException
Augments source nodes with additional information.
Overrides: addContent
in class TraversableGenerator
Parameters: source
- the Source to describe.
Throws:
SAXException
ProcessingException
setNodeAttributes
protected void setNodeAttributes (TraversableSource source)
throws SAXException ,
ProcessingException
Augments source node elements with additional attributes describing the Source.
The additional attributes are a mimeType
attribute,
and iff the Source is an instance of VersionableSource and the generator
is configured to output versioning information two attributes:
revision
and branch
.
Overrides: setNodeAttributes
in class TraversableGenerator
Parameters: source
- the Source to describe.
Throws:
SAXException
ProcessingException
pushSourceLocks
public void pushSourceLocks (LockableSource source)
throws SAXException ,
SourceException
Push a XML description about all locks of a source.
Parameters: source
- the Source to describe.
Throws:
SAXException
SourceException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.