public class ContentTypeGenerator extends AbstractGenerator implements Serviceable
Modifier and Type | Field and Description |
---|---|
private ContentTypeExtensionPoint |
_cTypeEp |
private ContentTypesHelper |
_cTypeHelper |
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
ContentTypeGenerator() |
Modifier and Type | Method and Description |
---|---|
private MetadataDefinition |
_getDefinition(String path,
String[] contentTypes,
String[] mixins) |
private void |
_saxMetadataSetElement(AbstractMetadataSetElement container,
String prefix,
String[] contentTypes,
String[] mixinTypes) |
void |
generate() |
void |
service(ServiceManager manager) |
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par) |
recycle
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
private ContentTypeExtensionPoint _cTypeEp
private ContentTypesHelper _cTypeHelper
public ContentTypeGenerator()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
setup
in interface SitemapModelComponent
setup
in class AbstractGenerator
ProcessingException
SAXException
IOException
public void generate() throws IOException, SAXException, ProcessingException
generate
in interface Generator
IOException
SAXException
ProcessingException
private void _saxMetadataSetElement(AbstractMetadataSetElement container, String prefix, String[] contentTypes, String[] mixinTypes) throws SAXException
SAXException
private MetadataDefinition _getDefinition(String path, String[] contentTypes, String[] mixins)