public interface ModelAccessFacade
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!
Modifier and Type | Method and Description |
---|---|
Collection<MetafacadeBase> |
findByStereotype(String stereotype)
Finds all the model elements that have the specified
stereotype (with any filtering
applied from the information provided by setPackageFilter(Filters) ). |
Object |
getModel()
Returns an object that represents the entire model.
|
Collection<MetafacadeBase> |
getModelElements()
Returns all elements from the model (with any filtering
applied from the information provided by
setPackageFilter(Filters) ). |
String |
getName(Object metafacade)
Returns the name of a metafacade (whatever that means for a concrete model).
|
String |
getPackageName(Object modelElement)
Returns the package name of a model element (whatever that means for a concrete model).
|
Collection<String> |
getStereotypeNames(Object modelElement)
Returns a collection of stereotype names for a modelElement (whatever that means for a concrete model).
|
void |
setModel(Object model)
Sets the object that represents the entire model.
|
void |
setPackageFilter(Filters modelPackages)
Sets the model packages instance which contains the information about what
packages should and should not be filtered out.
|
void setModel(Object model)
model
- the model to set.Object getModel()
String getName(Object metafacade)
metafacade
- the metafacade from which to retrieve the name.String getPackageName(Object modelElement)
modelElement
- the model elementvoid setPackageFilter(Filters modelPackages)
getModelElements()
and findByStereotype(String)
.modelPackages
- the model packages by which to filter.Collection<String> getStereotypeNames(Object modelElement)
modelElement
- the modelElementCollection<MetafacadeBase> findByStereotype(String stereotype)
stereotype
(with any filtering
applied from the information provided by setPackageFilter(Filters)
).stereotype
- the name of the stereotype, they are matched without regard to case.Collection<MetafacadeBase> getModelElements()
setPackageFilter(Filters)
).Copyright © 2003–2014 AndroMDA.org. All rights reserved.