Provides access to a model loaded by a Repository and made available to be used to retrieve information about
model elements and metafacades.
Models can be instances of any metamodel. The most common models will be UML models. This interface is an
abstraction. Any model that implements this interface can be used with AndroMDA.
Design goal: This class should only contain the minimum amount of methods that will be needed such that the
AndroMDA core can deal with it. All other stuff should be done in cartridge-specific classes!!! So, please don't make
this class grow!
author: Matthias Bohlen author: Chad Brandon
findByStereotype(String stereotype) Finds all the model elements that have the specified stereotype (with any filtering
applied from the information provided by
ModelAccessFacade.setPackageFilter(ModelPackages) ).
Parameters: stereotype - the name of the stereotype, they are matched without regard to case.
getName(Object metafacade) Returns the name of a metafacade (whatever that means for a concrete model).
Parameters: metafacade - the metafacade from which to retrieve the name.
getStereotypeNames(Object modelElement) Returns a collection of stereotype names for a modelElement (whatever that means for a concrete model).
public void
setModel(Object model) Sets the object that represents the entire model.
public void
setPackageFilter(Filters modelPackages) Sets the model packages instance which contains the information about what
packages should and should not be filtered out.
Finds all the model elements that have the specified stereotype (with any filtering
applied from the information provided by
ModelAccessFacade.setPackageFilter(ModelPackages) ).
Parameters: stereotype - the name of the stereotype, they are matched without regard to case. Collection of model elements having the given stereotype
Returns the name of a metafacade (whatever that means for a concrete model).
Parameters: metafacade - the metafacade from which to retrieve the name. String containing the name
Returns the package name of a model element (whatever that means for a concrete model).
Parameters: modelElement - the model element String containing the name
Returns a collection of stereotype names for a modelElement (whatever that means for a concrete model).
Parameters: modelElement - the modelElement Collection of Strings with stereotype names
Sets the object that represents the entire model.
Parameters: model - the model to set.
setPackageFilter
public void setPackageFilter(Filters modelPackages)(Code)
Sets the model packages instance which contains the information about what
packages should and should not be filtered out. The model access facade
instance then uses this information to provide any filtering by package when
calling
ModelAccessFacade.getModelElements() and
ModelAccessFacade.findByStereotype(String) .
Parameters: modelPackages - the model packages by which to filter.