|
||||||||||
| 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
public abstract class BasePlugin
Represents the base plugin of AndroMDA. All Plugin instances inherit from this class.
| Constructor Summary | |
|---|---|
BasePlugin()
|
|
| Method Summary | |
|---|---|
void |
addMacrolibrary(String macrolibrary)
Adds a macro library to the TemplateEngine used by this BasePlugin. |
void |
addPropertyReference(String reference)
Adds a property reference. |
void |
addTemplateObject(TemplateObject templateObject)
Adds the templateObject to the collection of template objects that will be made available to the
plugin during processing. |
List<String> |
getContents()
Returns a list containing the name of each resource contained within the plugin. |
protected Logger |
getLogger()
Retrieves the logger instance that should be used for logging output for the plugin sub classes. |
protected URL |
getMergeLocation()
Gets the current merge location for this plugin. |
String[] |
getPropertyReferences()
Gets all property references available for this cartridge. |
TemplateEngine |
getTemplateEngine()
Gets the TemplateEngine which implements the template processing. |
Collection<TemplateObject> |
getTemplateObjects()
Returns all the TemplateObject objects that are available to this Plugin. |
void |
initialize()
Initializes the plugin. |
protected void |
populateTemplateContext(Map<String,Object> templateContext)
Populates the templateContext with the properties and template objects defined in the
plugin's descriptor. |
void |
setTemplateEngineClass(String templateEngineClass)
Sets the template engine class for this cartridge. |
void |
shutdown()
Shuts down the plugin. |
String |
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 BasePlugin()
| Method Detail |
|---|
public void initialize()
throws Exception
Plugin
initialize in interface PluginExceptionPlugin.initialize()protected URL getMergeLocation()
public void shutdown()
Plugin
shutdown in interface PluginPlugin.shutdown()public void addTemplateObject(TemplateObject templateObject)
templateObject to the collection of template objects that will be made available to the
plugin during processing.
templateObject - the TemplateObject to add.public void addMacrolibrary(String macrolibrary)
macrolibrary - public Collection<TemplateObject> getTemplateObjects()
Plugin
getTemplateObjects in interface PluginPlugin.getTemplateObjects()public void setTemplateEngineClass(String templateEngineClass)
templateEngineClass - the Class of the template engine implementation.public TemplateEngine getTemplateEngine()
Plugin
getTemplateEngine in interface PluginPlugin.getTemplateEngine()public String[] getPropertyReferences()
Plugin
getPropertyReferences in interface PluginPlugin.getPropertyReferences()public void addPropertyReference(String reference)
reference - the namespace of the reference.protected void populateTemplateContext(Map<String,Object> templateContext)
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.
templateContext - the context of the template to populate.public List<String> getContents()
Plugin
getContents in interface PluginPlugin.getContents()protected Logger getLogger()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||