Package org.ametys.cms.contenttype
Class ContentTypeGenerator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.xml.AbstractXMLProducer
-
- org.apache.cocoon.generation.AbstractGenerator
-
- org.ametys.cms.contenttype.ContentTypeGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
public class ContentTypeGenerator extends AbstractGenerator implements Serviceable
Generates content type's definition.
-
-
Field Summary
Fields Modifier and Type Field Description private ContentTypeExtensionPoint
_cTypeEP
private ContentTypesHelper
_cTypeHelper
-
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
Constructors Constructor Description ContentTypeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_saxModelViewItem(ModelViewItem modelViewItem, String prefix)
private void
_saxNonNullI18nizableText(I18nizableText text, String tagName)
private void
_saxViewFromContent(Content content, String viewName)
private void
_saxViewFromContentType(String cTypeId, String viewName)
private void
_saxViewItemAccessor(ViewItemAccessor viewItemAccessor, String prefix)
private void
_saxViewItemGroup(ViewItemGroup group, String prefix)
void
generate()
void
service(ServiceManager manager)
-
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 Detail
-
_cTypeHelper
private ContentTypesHelper _cTypeHelper
-
_cTypeEP
private ContentTypeExtensionPoint _cTypeEP
-
-
Constructor Detail
-
ContentTypeGenerator
public ContentTypeGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
- Specified by:
generate
in interfaceGenerator
- Throws:
IOException
SAXException
ProcessingException
-
_saxViewFromContent
private void _saxViewFromContent(Content content, String viewName) throws SAXException
- Throws:
SAXException
-
_saxViewFromContentType
private void _saxViewFromContentType(String cTypeId, String viewName) throws SAXException
- Throws:
SAXException
-
_saxViewItemAccessor
private void _saxViewItemAccessor(ViewItemAccessor viewItemAccessor, String prefix) throws SAXException
- Throws:
SAXException
-
_saxModelViewItem
private void _saxModelViewItem(ModelViewItem modelViewItem, String prefix) throws SAXException
- Throws:
SAXException
-
_saxViewItemGroup
private void _saxViewItemGroup(ViewItemGroup group, String prefix) throws SAXException
- Throws:
SAXException
-
_saxNonNullI18nizableText
private void _saxNonNullI18nizableText(I18nizableText text, String tagName) throws SAXException
- Throws:
SAXException
-
-