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
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe content type extension point.protected OdfReferenceTableHelperThe ODf enumeration helperprotected AmetysObjectResolverThe Ametys resolverprotected static final StringThe name of the parameter containing the path of the enumerated attributeFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
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 definitionvoidgenerate()voidservice(ServiceManager serviceManager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
servicein interfaceServiceable- Overrides:
servicein 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
-