public class FOProgramsGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysObjectResolver
The Ametys object resolver
|
protected CatalogsManager |
_catalogManager
The catalog manager
|
protected ContentTypeExtensionPoint |
_ctypeEP
The content type extension point
|
protected MetadataManager |
_metadataManager
The metadata manager
|
protected OdfReferenceTableHelper |
_odfTableRefHelper
The ODf enumeration helper
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
FOProgramsGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxPrograms(String catalog,
String lang,
Map<String,MetadataDefinition> tableRefMetaDefs)
SAX programs
|
protected void |
_saxTableRefMetadataValues(Program program,
Map<String,MetadataDefinition> tableRefMetaDefs)
SAX enumerated values of a metadata
|
void |
generate() |
void |
service(ServiceManager sManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected AmetysObjectResolver _ametysObjectResolver
protected ContentTypeExtensionPoint _ctypeEP
protected MetadataManager _metadataManager
protected OdfReferenceTableHelper _odfTableRefHelper
protected CatalogsManager _catalogManager
public FOProgramsGenerator()
public void service(ServiceManager sManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void _saxPrograms(String catalog, String lang, Map<String,MetadataDefinition> tableRefMetaDefs) throws MalformedURLException, IOException, SAXException
catalog
- the catalog's namelang
- the programs' languagetableRefMetaDefs
- The table reference metadata definitionsMalformedURLException
- if an error occurredIOException
- if an error occurredSAXException
- if an error occurredprotected void _saxTableRefMetadataValues(Program program, Map<String,MetadataDefinition> tableRefMetaDefs) throws AmetysRepositoryException, SAXException, IOException
program
- The programtableRefMetaDefs
- The table reference metadata definitionsAmetysRepositoryException
- if an error occurredSAXException
- if an error occurredIOException
- if an error occurred