Method Summary |
|
static boolean | attributeExists(Object classifier, String name) Indicates whether or not the attribute exists on the given classifier. |
static Attribute | createAttribute(String name, String fullyQualifiedTypeName, String visibility, String separator) Creates an attribute having the give name and the type
having the given fullyQualifiedTypeName , with the
specified visibility, if no type can be found with the given name, no
type is set.
Parameters: name - the new name Parameters: fullyQualifiedTypeName - the name of the fully qualified type Parameters: visibility - the visibility name Parameters: separator - the separator used for qualifying the name. |
static Object | findByFullyQualifiedName(String fullyQualifiedName, String separator, boolean modelName) Finds a given model element in the model having the specified
fullyQualifiedName . |
static Object | findByName(String name) Finds and returns the first model element having the given name in the modelPackage ,
returns null if not found.
Parameters: name - the name to find. |
static UmlClass | findClassWithTaggedValueOrHyperlink(String tag, String value) Returns the first class this method can find with the given tagged value or hyperlink. |
static Collection | findFinalStatesWithNameOrHyperlink(UseCase useCase) |
static ActivityGraph | findFirstActivityGraphWithName(String name) Returns the first activity graph it can find with the given name. |
static ActivityGraph | findFirstActivityGraphWithNameAndStereotype(String name, String stereotypeName) Returns the first activity graph it can find with the given name and stereotype, if the stereotype is not
specified (it is null) it will be ignored and the returned activity graph may have any arbitrary stereotype. |
static UseCase | findFirstUseCaseWithName(String name) Returns the first use-case it can find with the given name. |
static UseCase | findFirstUseCaseWithNameAndStereotype(String name, String stereotypeName) Returns the first use-case it can find with the given name and stereotype, if the stereotype is not specified (it
is null) it will be ignored and the returned use-case may have any arbitrary stereotype. |
static Stereotype | findOrCreateStereotype(String name) Finds or creates a stereotype with the given name. |
static UseCase | findUseCaseWithTaggedValueOrHyperlink(String tag, String value) Returns the first use-case this method can find with the given tagged value or hyperlink. |
static CorePackage | getCorePackage() Basically just checks to make sure the model is of type org.omg.uml.UmlPackage and
retrieves the CorePackage from it. |
static ActivityGraph | getMetaClass(ActivityGraphFacade facade) Finds the given metafacade class for the passed in facade .
Parameters: facade - the model element facade for which to find the meta class. |
static UseCase | getMetaClass(UseCaseFacade facade) Finds the given metafacade class for the passed in facade .
Parameters: facade - the model element facade for which to find the meta class. |
static Parameter | getMetaClass(ParameterFacade facade) Finds the given metafacade class for the passed in facade .
Parameters: facade - the model element facade for which to find the meta class. |
static Event | getMetaClass(EventFacade facade) Finds the given metafacade class for the passed in facade .
Parameters: facade - the model element facade for which to find the meta class. |
static ModelElement | getMetaClass(ModelElementFacade facade) Finds the given metafacade class for the passed in facade .
Parameters: facade - the model element facade for which to find the meta class. |
static org.omg.uml.UmlPackage | getModel() Returns the entire model. |
static String | getPackageName(ModelElement metaObject, String separator, boolean modelName) Constructs the package name for the given metaObject , seperating the package name by the given
separator .
Parameters: metaObject - the Model Element Parameters: separator - the PSM namespace separator Parameters: modelName - true/false on whether or not to get the model package name insteadof the PSM package name. |
static UmlPackage | getRootPackage() Gets the root package in the model. |
static String | getSerialVersionUID(ClassifierFacade classifier) Retrieves the serial version UID by reading the tagged value
UMLProfile.TAGGEDVALUE_SERIALVERSION_UID of the
classifier .
Parameters: classifier - the classifier to be inspected. |
static VisibilityKind | getVisibilityKind(String visibility) Gets the correct meta model visibility kind for the given visibility string.
Parameters: visibility - the visibility to retrieve. |
static boolean | isHyperlinkPresent(ModelElement element, Object value) Returns true if the given model element has a hyperlink with the given value, returns false otherwise. |
static boolean | isStereotypePresent(ModelElement element, String stereotypeName) |
static boolean | isTagPresent(ModelElement element, String tag, Object value) Returns true if the given model element has a tag with the given name and value, returns false otherwise. |
public static List | removeDuplicatesAndCopyTaggedValues(Collection elements) This method removes all duplicates within the elements collection while at the same
time copying tagged values from duplicates to the one remaining element with the given name.
Parameters: elements - the elements to remove duplicates and copy tagged values to. |