The AndroMDA Cartridge implementation of the Plugin. Cartridge instances are configured from
META-INF/andromda/cartridge.xml files discovered on the classpath.
author: Matthias Bohlen author: Chad Brandon
Method Summary
public void
addCondition(String name, String value) Adds the outputCondition given the name and value
to the outputConditions map.
public void
addResource(Resource resource) Adds a resource to the list of defined resources.
getResources() Returns the list of templates configured in this cartridge.
protected void
populateTemplateContext(Map templateContext) Populates the templateContext with the properties and template objects defined in the
plugin's descriptor.
public void
processModelElements(MetafacadeFactory factory) Processes all model elements with relevant stereotypes by retrieving the model elements from the model facade
contained within the context.
Adds the outputCondition given the name and value
to the outputConditions map.
Parameters: name - the name of the outputCondition. Parameters: value - the value of the outputCondition.
Populates the 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.
Parameters: templateContext - the context of the template to populate.
Processes all model elements with relevant stereotypes by retrieving the model elements from the model facade
contained within the context.
Parameters: factory - the metafacade factory (which is used to manage the lifecycle of metafacades).
Processes the template without metafacades. This is useful if you need to generate something that
is part of your cartridge, however you only need to use a property passed in from a namespace or a template
object defined in your cartridge descriptor.
Parameters: template - the template to process.