|
||||||||||
| 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(java.lang.String macrolibrary)
Adds a macro library to the TemplateEngine used by this BasePlugin. |
void |
addPropertyReference(java.lang.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. |
java.util.List |
getContents()
Returns a list containing the name of each resource contained within the plugin. |
protected org.apache.log4j.Logger |
getLogger()
Retrieves the logger instance that should be used for logging output for the plugin sub classes. |
protected java.net.URL |
getMergeLocation()
Gets the current merge location for this plugin. |
java.lang.String[] |
getPropertyReferences()
Gets all property references available for this cartridge. |
TemplateEngine |
getTemplateEngine()
Gets the TemplateEngine which implements the template processing. |
java.util.Collection |
getTemplateObjects()
Returns all the TemplateObject objects that are available to this Plugin. |
void |
initialize()
Initializes the plugin. |
protected void |
populateTemplateContext(java.util.Map templateContext)
Populates the templateContext with the properties and template objects defined in the
plugin's descriptor. |
void |
setTemplateEngineClass(java.lang.String templateEngineClass)
Sets the template engine class for this cartridge. |
void |
shutdown()
Shuts down the plugin. |
java.lang.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 java.lang.Exception
Plugin
initialize in interface Pluginjava.lang.ExceptionPlugin.initialize()protected java.net.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(java.lang.String macrolibrary)
macrolibrary - public java.util.Collection getTemplateObjects()
Plugin
getTemplateObjects in interface PluginPlugin.getTemplateObjects()public void setTemplateEngineClass(java.lang.String templateEngineClass)
templateEngineClass - the Class of the template engine implementation.public TemplateEngine getTemplateEngine()
Plugin
getTemplateEngine in interface PluginPlugin.getTemplateEngine()public java.lang.String[] getPropertyReferences()
Plugin
getPropertyReferences in interface PluginPlugin.getPropertyReferences()public void addPropertyReference(java.lang.String reference)
reference - the namespace of the reference.protected void populateTemplateContext(java.util.Map 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 java.util.List getContents()
Plugin
getContents in interface PluginPlugin.getContents()protected org.apache.log4j.Logger getLogger()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||