Package org.ametys.odf.enumeration
Class EnumeratedAttributeValuesGenerator
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.ametys.odf.enumeration.EnumeratedAttributeValuesGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
Generate the values of an enumerated attribute of the program content type.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentTypeExtensionPoint
The content type extension point.protected OdfReferenceTableHelper
The ODf enumeration helperprotected AmetysObjectResolver
The Ametys resolverprotected static final String
The name of the parameter containing the path of the enumerated attributeFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ElementDefinition
_getElementDefinition
(ContentType cType, String attributePath) Get the element definition from its path.protected void
_saxContents
(ContentAttributeDefinition attributeDefinition) SAX contents of the type defined by the attribute definitionvoid
generate()
void
service
(ServiceManager serviceManager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Field Details
-
ATTRIBUTE_PATH_PARAMETER_NAME
The name of the parameter containing the path of the enumerated attribute- See Also:
-
_cTypeEP
The content type extension point. -
_odfRefTableHelper
The ODf enumeration helper -
_resolver
The Ametys resolver
-
-
Constructor Details
-
EnumeratedAttributeValuesGenerator
public EnumeratedAttributeValuesGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
generate
-
_getElementDefinition
Get the element definition from its path.- Parameters:
cType
- the content type.attributePath
- the attribute path.- Returns:
- the element definition or null if not found.
-
_saxContents
SAX contents of the type defined by the attribute definition- Parameters:
attributeDefinition
- The attribute definition- Throws:
SAXException
- if an error occurred while saxing
-