|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.andromda.core.namespace.BaseNamespaceComponent
org.andromda.core.common.BasePlugin
org.andromda.core.translation.library.Library
The AndroMDA Translation Library implementation of the Plugin. Library instances are configured from
META-INF/andromda-translation-library.xml files discovered on the classpath.
| Constructor Summary | |
Library()
The default Library constructor. |
|
| Method Summary | |
void |
addLibraryTranslation(LibraryTranslation libraryTranslation)
Adds a new LibraryTranslation. |
LibraryTranslation |
getLibraryTranslation(String name)
Retrieves the LibraryTranslation with the specified name. |
Map |
getLibraryTranslations()
Gets the LibraryTranslation instances (keyed by name) which are part of this Library. |
void |
populateTemplateContext(Map templateContext)
Populates the templateContext with the properties and template objects defined in the
plugin's descriptor. |
void |
setTranslator(String translatorClass)
Sets the |
| Methods inherited from class org.andromda.core.common.BasePlugin |
addMacrolibrary, addPropertyReference, addTemplateObject, getContents, getLogger, getMergeLocation, getPropertyReferences, getTemplateEngine, getTemplateObjects, initialize, setTemplateEngineClass, shutdown, toString |
| Methods inherited from class org.andromda.core.namespace.BaseNamespaceComponent |
getNamespace, getResource, setNamespace, setResource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.andromda.core.namespace.NamespaceComponent |
getNamespace, getResource, setNamespace, setResource |
| Constructor Detail |
public Library()
| Method Detail |
public void addLibraryTranslation(LibraryTranslation libraryTranslation)
libraryTranslation - public Map getLibraryTranslations()
public LibraryTranslation getLibraryTranslation(String name)
name -
name.public void setTranslator(String translatorClass)
translatorClass - the Class for the Translator implementation.public void populateTemplateContext(Map templateContext)
BasePlugintemplateContext with the properties and template objects defined in the
plugin's descriptor. If the templateContext is null, a new Map instance will be created
before populating the context.
populateTemplateContext in class BasePlugintemplateContext - the context of the template to populate.BasePlugin.populateTemplateContext(java.util.Map)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||