org.andromda.metafacades.uml
Interface ModelFacade


public interface ModelFacade

Metafacade interface to be used by AndroMDA cartridges.


Method Summary
 ActivityGraphFacade findActivityGraphByName(String name)
           
 ActivityGraphFacade findActivityGraphByNameAndStereotype(String name, String stereotypeName)
           
 ClassifierFacade findClassWithTaggedValueOrHyperlink(String tag, String value)
           
 Collection findFinalStatesWithNameOrHyperlink(UseCaseFacade useCase)
           
 UseCaseFacade findUseCaseByName(String name)
           
 UseCaseFacade findUseCaseWithNameAndStereotype(String name, String stereotypeName)
           
 UseCaseFacade findUseCaseWithTaggedValueOrHyperlink(String tag, String value)
           
 Collection getAllActionStates()
           
 Collection getAllActionStatesWithStereotype(ActivityGraphFacade activityGraph, String stereotypeName)
           
 Collection getAllActors()
           
 Collection getAllClasses()
           
 Collection getAllObjectFlowStates()
           All object flow states in this model.
 Collection getAllUseCases()
           
 PackageFacade getRootPackage()
           
 String getValidationName()
          Gets the name of the metafacade used within validation messages.
 Object getValidationOwner()
          Gets the metafacade that acts as the owner of this metafacade.
 void initialize()
          Provides any required initialization of the metafacade.
 boolean isModelFacadeMetaType()
          Indicates the metafacade type (used for metafacade mappings).
 void validateInvariants(Collection validationMessages)
          Performs validation of any invariants found on this model element and stores the messages within the validationMessages collection.
 

Method Detail

isModelFacadeMetaType

public boolean isModelFacadeMetaType()
Indicates the metafacade type (used for metafacade mappings).

Returns:
always true

initialize

public void initialize()
Provides any required initialization of the metafacade.


getValidationOwner

public Object getValidationOwner()
Gets the metafacade that acts as the owner of this metafacade. (for example: an operation is an owner of its parameters, etc). This is used by AndroMDA's validation framework to provide more context as to where the error has occurred.


getValidationName

public String getValidationName()
Gets the name of the metafacade used within validation messages. This provides the full name of the metafacade.


validateInvariants

public void validateInvariants(Collection validationMessages)
Performs validation of any invariants found on this model element and stores the messages within the validationMessages collection.

Parameters:
validationMessages - the collection of messages to which additional validation messages will be added if invariants are broken.

findActivityGraphByName

public ActivityGraphFacade findActivityGraphByName(String name)

findActivityGraphByNameAndStereotype

public ActivityGraphFacade findActivityGraphByNameAndStereotype(String name,
                                                                String stereotypeName)

findClassWithTaggedValueOrHyperlink

public ClassifierFacade findClassWithTaggedValueOrHyperlink(String tag,
                                                            String value)

findFinalStatesWithNameOrHyperlink

public Collection findFinalStatesWithNameOrHyperlink(UseCaseFacade useCase)

findUseCaseByName

public UseCaseFacade findUseCaseByName(String name)

findUseCaseWithNameAndStereotype

public UseCaseFacade findUseCaseWithNameAndStereotype(String name,
                                                      String stereotypeName)

findUseCaseWithTaggedValueOrHyperlink

public UseCaseFacade findUseCaseWithTaggedValueOrHyperlink(String tag,
                                                           String value)

getAllActionStates

public Collection getAllActionStates()

getAllActionStatesWithStereotype

public Collection getAllActionStatesWithStereotype(ActivityGraphFacade activityGraph,
                                                   String stereotypeName)

getAllActors

public Collection getAllActors()

getAllClasses

public Collection getAllClasses()

getAllObjectFlowStates

public Collection getAllObjectFlowStates()

All object flow states in this model.


getAllUseCases

public Collection getAllUseCases()

getRootPackage

public PackageFacade getRootPackage()


Copyright © 2003-2006 The AndroMDA Team. All Rights Reserved.