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
|
manager
objectModel, parameters, resolver, source
contentHandler, 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) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected ContentTypeExtensionPoint _cTypeEP
protected OdfReferenceTableHelper _odfRefTableHelper
protected AmetysObjectResolver _resolver
public EnumeratedMetadataValuesGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public 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.