public class Library extends BasePlugin
META-INF/andromda-translation-library.xml
files discovered on the classpath.Constructor and Description |
---|
Library()
The default Library constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLibraryTranslation(LibraryTranslation libraryTranslation)
Adds a new LibraryTranslation.
|
LibraryTranslation |
getLibraryTranslation(String name)
Retrieves the LibraryTranslation with the specified name.
|
Map<String,LibraryTranslation> |
getLibraryTranslations()
Gets the LibraryTranslation instances (keyed by name) which are part of this Library.
|
void |
populateTemplateContext(Map<String,Object> templateContext)
Populates the
templateContext with the properties and template objects defined in the
plugin 's descriptor. |
void |
setTranslator(String translatorClass)
Sets the
translatorClass that will perform the translation processing. |
addMacrolibrary, addPropertyReference, addTemplateObject, getContents, getLogger, getMergeLocation, getPropertyReferences, getTemplateEngine, getTemplateObjects, initialize, setTemplateEngineClass, shutdown, toString
getNamespace, getResource, setNamespace, setResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNamespace, getResource, setNamespace, setResource
public Library()
public void addLibraryTranslation(LibraryTranslation libraryTranslation)
libraryTranslation
- public Map<String,LibraryTranslation> getLibraryTranslations()
public LibraryTranslation getLibraryTranslation(String name)
name
- name
.public void setTranslator(String translatorClass)
translatorClass
that will perform the translation processing.translatorClass
- the Class for the Translator implementation.public void populateTemplateContext(Map<String,Object> templateContext)
BasePlugin
templateContext
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 BasePlugin
templateContext
- the context of the template to populate.BasePlugin.populateTemplateContext(java.util.Map)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.