alma::tools::entitybuilder::EntitybuilderConfig Class Reference

Collaboration diagram for alma::tools::entitybuilder::EntitybuilderConfig:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void load (File configFile, File[] includeConfigFiles) throws BindingException
String[] getAllNamespaces ()
String getJPackageForNamespace (String ns)
String[] getAllSchemaNames ()
String getJPackageForSchema (String schemaName)
List< File > getPrimarySchemaFiles () throws BindingException
List< File > getAllSchemaFiles ()
Map< String, File > getSchemaName2File ()

Private Member Functions

void storePckgMappings (EntitybuilderSettings ebs, File schemaBaseDir)
EntitybuilderSettings parseConfigFile (File configFile) throws BindingException

Private Attributes

EntitybuilderSettings m_entitybuilderSettings
Map< String, String > m_schema2pckMap = new HashMap<String, String>()
Map< String, String > m_ns2pckMap = new HashMap<String, String>()
Map< String, File > m_schemaName2File = new HashMap<String, File>()

Detailed Description

Author:
hsommer

Member Function Documentation

String [] alma::tools::entitybuilder::EntitybuilderConfig::getAllNamespaces (  )  [inline]

Gets all xsd namespaces, even those from included config files for which no code is generated directly.

References m_ns2pckMap.

Referenced by alma::tools::entitybuilder::CastorBuilder::run().

List<File> alma::tools::entitybuilder::EntitybuilderConfig::getAllSchemaFiles (  )  [inline]
String [] alma::tools::entitybuilder::EntitybuilderConfig::getAllSchemaNames (  )  [inline]

Gets all schema names, even those from included config files for which no code is generated directly. Only file names, no directory path.

References m_schema2pckMap.

String alma::tools::entitybuilder::EntitybuilderConfig::getJPackageForNamespace ( String  ns  )  [inline]
String alma::tools::entitybuilder::EntitybuilderConfig::getJPackageForSchema ( String  schemaName  )  [inline]
List<File> alma::tools::entitybuilder::EntitybuilderConfig::getPrimarySchemaFiles (  )  throws BindingException [inline]

Gets all schema files which should be run explicitly through the code generator. Schema files that are only used indirectly (include, import) are not returned.

References alma::tools::entitybuilder::generated::EntitybuilderSettings::getEntitySchema(), m_entitybuilderSettings, and m_schemaName2File.

Referenced by alma::tools::entitybuilder::CastorBuilder::run().

Map<String, File> alma::tools::entitybuilder::EntitybuilderConfig::getSchemaName2File (  )  [inline]
void alma::tools::entitybuilder::EntitybuilderConfig::load ( File  configFile,
File[]  includeConfigFiles 
) throws BindingException [inline]

Reads the configuration data.

Exceptions:
BindingException 

References m_entitybuilderSettings, parseConfigFile(), and storePckgMappings().

Referenced by alma::tools::entitybuilder::CastorBuilder::run().

EntitybuilderSettings alma::tools::entitybuilder::EntitybuilderConfig::parseConfigFile ( File  configFile  )  throws BindingException [inline, private]

Referenced by load().

void alma::tools::entitybuilder::EntitybuilderConfig::storePckgMappings ( EntitybuilderSettings  ebs,
File  schemaBaseDir 
) [inline, private]

Member Data Documentation

Referenced by getPrimarySchemaFiles(), and load().

Map<String, String> alma::tools::entitybuilder::EntitybuilderConfig::m_ns2pckMap = new HashMap<String, String>() [private]

key = xsd namespace, value = Java package

Referenced by getAllNamespaces(), getJPackageForNamespace(), and storePckgMappings().

Map<String, String> alma::tools::entitybuilder::EntitybuilderConfig::m_schema2pckMap = new HashMap<String, String>() [private]

key = schema file name w/o path, value = Java package

Referenced by getAllSchemaNames(), getJPackageForSchema(), and storePckgMappings().

Map<String, File> alma::tools::entitybuilder::EntitybuilderConfig::m_schemaName2File = new HashMap<String, File>() [private]

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2