|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.model.uml.modelmanagement.ModelManagementHelper
Helper class for UML ModelManagement Package. Current implementation is a placeholder.
Field Summary | |
protected static org.apache.log4j.Category |
cat
|
Method Summary | |
boolean |
corresponds(ru.novosoft.uml.foundation.core.MModelElement obj1,
ru.novosoft.uml.foundation.core.MModelElement obj2)
Tests if two objects are of the same type, have the same name and the same relative position in the model. |
java.util.Collection |
getAllModelElementsOfKind(java.lang.Class kind)
Returns all modelelements found in this namespace and its children that are of some class kind n the projectbrowser model |
java.util.Collection |
getAllModelElementsOfKind(java.lang.Object nsa,
java.lang.Class kind)
Returns all modelelements found in this namespace and its children that are of some class kind. |
java.util.Collection |
getAllNamespaces()
Returns all namespaces found in the projectbrowser model |
java.util.Collection |
getAllNamespaces(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns all namespaces found in this namespace and in its children |
java.util.Collection |
getAllSubSystems()
Returns all subsystems found in the projectbrowser model |
java.util.Collection |
getAllSubSystems(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns all subsystems found in this namespace and in its children |
java.util.Collection |
getAllSurroundingNamespaces(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns all surrounding namespaces of some namespace ns. |
ru.novosoft.uml.foundation.core.MModelElement |
getCorrespondingElement(ru.novosoft.uml.foundation.core.MModelElement elem,
ru.novosoft.uml.model_management.MModel model)
Utility function for managing several overlayed models, eg a user model to which elements from some profile models is imported when needed. |
ru.novosoft.uml.foundation.core.MModelElement |
getCorrespondingElement(ru.novosoft.uml.foundation.core.MModelElement elem,
ru.novosoft.uml.model_management.MModel model,
boolean canCreate)
Utility function for managing several overlayed models, eg a user model to which elements from some profile models is imported when needed. |
ru.novosoft.uml.foundation.core.MModelElement |
getElement(java.util.Vector path,
ru.novosoft.uml.foundation.core.MModelElement root)
|
static ModelManagementHelper |
getHelper()
Singleton instance access method. |
java.util.Vector |
getPath(java.lang.Object element)
Finds the absolute path of a ModelElement. |
boolean |
isCyclicOwnership(java.lang.Object parent,
java.lang.Object child)
Checks if a child for some ownershiprelationship (as in a namespace A is owned by a namespace B) is allready in the ownerhship relation. |
void |
moveElement(ru.novosoft.uml.foundation.core.MModelElement element,
ru.novosoft.uml.model_management.MModel to)
Deprecated. As of ArgoUml version 0.13.5, You should use getCorrespondingElement(MModelElement,MModel,boolean)
instead. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Category cat
Method Detail |
public static ModelManagementHelper getHelper()
public java.util.Collection getAllSubSystems()
public java.util.Collection getAllSubSystems(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAllNamespaces()
public java.util.Collection getAllNamespaces(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAllModelElementsOfKind(java.lang.Class kind)
public java.util.Collection getAllModelElementsOfKind(java.lang.Object nsa, java.lang.Class kind)
kind
-
public java.util.Collection getAllSurroundingNamespaces(ru.novosoft.uml.foundation.core.MNamespace ns)
ns
-
public ru.novosoft.uml.foundation.core.MModelElement getElement(java.util.Vector path, ru.novosoft.uml.foundation.core.MModelElement root)
public java.util.Vector getPath(java.lang.Object element)
The returned Vector implicitly starts at the root (the model) and follows element's chain of owning namespaces back down to element. The first element will thus be the name of the top level namespace below the model, and the last element will be the name of element itself. Note thus that for the model the path will be empty.
element
- is the object to resolve the path for.
java.lang.IllegalArgumentException
- if element isn't a ModelElement
properly owned by namespaces and a model.public void moveElement(ru.novosoft.uml.foundation.core.MModelElement element, ru.novosoft.uml.model_management.MModel to)
getCorrespondingElement(MModelElement,MModel,boolean)
instead.
element
- to
- public ru.novosoft.uml.foundation.core.MModelElement getCorrespondingElement(ru.novosoft.uml.foundation.core.MModelElement elem, ru.novosoft.uml.model_management.MModel model)
elem
- is some element.model
- is the model the returned object shall belong to.
public ru.novosoft.uml.foundation.core.MModelElement getCorrespondingElement(ru.novosoft.uml.foundation.core.MModelElement elem, ru.novosoft.uml.model_management.MModel model, boolean canCreate)
elem
- is some element.model
- is the model the returned object shall belong to.canCreate
- determines if objects can be copied into model.
public boolean corresponds(ru.novosoft.uml.foundation.core.MModelElement obj1, ru.novosoft.uml.foundation.core.MModelElement obj2)
obj1
- is an object.obj2
- is another object.
public boolean isCyclicOwnership(java.lang.Object parent, java.lang.Object child)
parent
- The current leaf for the ownership relationchild
- The child that should be owned by the parent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20030829) | ArgoUML Project Home | ArgoUML Cookbook |