A Translation-Library is made up of a jar/directory containing the following components:
Resource | Description | Required |
---|---|---|
/META-INF/andromda/namespace.xml | Because the translation-library ia a namespace component it MUST be registered within anamespace descriptor. This descriptor is what allows the translation-library's namespace to be "discovered" on the classpath. This namespace descriptor also registers the translation-library component within the AndroMDA core. | Yes |
/META-INF/andromda-translation-library.xml | The descriptor which describes the components of the translation-library and allows the framework to find the translation-library. | Yes |
/translations/<translation-name>/*.vsl (i.e. /translations/query/Hibernate-QL.vsl) | Any templates used to map translation fragments to OCL expression fragments defined within a Translator class. Each translation template is also an XML document which must comply with the translationschema. | Yes |
/*.class files | Java *.class files for the Translator object(s) (and any support classes) used for translation (translator objects must implement Translator) | Yes |