public class EnumeratedMetadataValuesGenerator extends ServiceableGenerator
| Modifier and Type | Field and Description |
|---|---|
protected ContentTypeExtensionPoint |
_cTypeEP
The content type extension point.
|
protected OdfReferenceTableHelper |
_odfRefTableHelper
The ODf enumeration helper
|
protected AmetysObjectResolver |
_resolver
The Ametys resolver
|
managerobjectModel, parameters, resolver, sourcecontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer| Constructor and Description |
|---|
EnumeratedMetadataValuesGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected MetadataDefinition |
_getMetadataDefinition(ContentType contentType,
String metadataPath)
Get a metadata definition from its path.
|
protected void |
_saxContents(MetadataDefinition metaDef)
SAX contents of the type defined by the metadata definition
|
void |
generate() |
void |
service(ServiceManager serviceManager) |
disposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprotected ContentTypeExtensionPoint _cTypeEP
protected OdfReferenceTableHelper _odfRefTableHelper
protected AmetysObjectResolver _resolver
public EnumeratedMetadataValuesGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ServiceableGeneratorServiceExceptionpublic void generate() throws IOException, SAXException, ProcessingException
protected void _saxContents(MetadataDefinition metaDef) throws SAXException
metaDef - The metadata definitionSAXException - if an error occurred while saxingprotected MetadataDefinition _getMetadataDefinition(ContentType contentType, String metadataPath)
contentType - the content type.metadataPath - the metadata path.