| |
|
| java.lang.Object com.metaboss.sdlctools.models.metabossmodel.ModelUtils
ModelUtils | public class ModelUtils (Code) | | Set of MetaBossModel utility and helper methods realising some facilities seemingly not provided by MDR.
|
Method Summary | |
public static void | convertMetaBossModelToUMLModel(String pSourceMetaBossModelName, String pTargetUMLModelName) This method converts MetaBoss model to UML model with MetaBoss profile
Note that resulting UML model is a 100% UML in all aspect but it is
enriched and constrained with special stereotypes and tagged values.
In UML this is quite normal and allowed technique.
Parameters: pSourceMetaBossModelName - the name of already loaded MetaBoss model Parameters: pTargetUMLModelName - the name of destination UML model. | public static void | convertUMLModelToMetaBossModel(String pSourceUMLModelName, String pTargetMetaBossModelName) This method converts UML model to MetaBoss model.
Note that source UML model is a 100% UML in all aspect but it is
enriched and constrained with special stereotypes and tagged values.
In UML this is quite normal and allowed technique.
Parameters: pSourceUMLModelName - the name of already loaded UML model Parameters: pTargetMetaBossModelName - the name of destination MetaBoss model. | public static void | createMetaBossUMLProfileModel(String pTargetUMLModelName) This method creates UML Profile for MetaBoss model. | public static ModelElement | getRootElement(String pModelName) Returns one and only one top level ModelElement. | public static ModelElement | getRootElement(MetaBossModelPackage pMetaBossModelPackage) Returns one and only one top level ModelElement. |
convertMetaBossModelToUMLModel | public static void convertMetaBossModelToUMLModel(String pSourceMetaBossModelName, String pTargetUMLModelName) throws ModelRepositoryException(Code) | | This method converts MetaBoss model to UML model with MetaBoss profile
Note that resulting UML model is a 100% UML in all aspect but it is
enriched and constrained with special stereotypes and tagged values.
In UML this is quite normal and allowed technique.
Parameters: pSourceMetaBossModelName - the name of already loaded MetaBoss model Parameters: pTargetUMLModelName - the name of destination UML model. This modelshould not exist at the time this method is called. It will be created inside this method. exception: ModelRepositoryException - is thrown in case of trouble (e.g. source model not found, target model already exists etc) |
convertUMLModelToMetaBossModel | public static void convertUMLModelToMetaBossModel(String pSourceUMLModelName, String pTargetMetaBossModelName) throws ModelRepositoryException(Code) | | This method converts UML model to MetaBoss model.
Note that source UML model is a 100% UML in all aspect but it is
enriched and constrained with special stereotypes and tagged values.
In UML this is quite normal and allowed technique.
Parameters: pSourceUMLModelName - the name of already loaded UML model Parameters: pTargetMetaBossModelName - the name of destination MetaBoss model. This modelshould not exist at the time this method is called. It will be created inside this method. exception: ModelRepositoryException - is thrown in case of trouble (e.g. source model not found, target model already exists etc) |
createMetaBossUMLProfileModel | public static void createMetaBossUMLProfileModel(String pTargetUMLModelName) throws ModelRepositoryException(Code) | | This method creates UML Profile for MetaBoss model. The resulting profile
may be used as a starting point for the UML Models containing MetaBoss enterprise
definition.
Parameters: pTargetUMLModelName - the name of destination UML model. This modelshould not exist at the time this method is called. It will be created inside this method. exception: ModelRepositoryException - is thrown in case of trouble (e.g. source model not found, target model already exists etc) |
getRootElement | public static ModelElement getRootElement(String pModelName) throws ModelRepositoryException(Code) | | Returns one and only one top level ModelElement. This element can be of
type DesignLibrary, TechnologyLibrary or Enterprise. The type of returned element
determines what kind of model we are looking at.
Parameters: pModelName - the name of the model previously loaded in the repository exception: ModelRepositoryException - is thrown if model with the given name is not found, or it is not of the expected type |
getRootElement | public static ModelElement getRootElement(MetaBossModelPackage pMetaBossModelPackage) throws ModelRepositoryException(Code) | | Returns one and only one top level ModelElement. This element can be of
type DesignLibrary, TechnologyLibrary or Enterprise. The type of returned element
determines what kind of model we are looking at.
Parameters: pModelName - the name of the model previously loaded in the repository exception: ModelRepositoryException - is thrown if model with the given name is not found, or it is not of the expected type |
|
|
|