|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topcased.modeler.diagrams.model.util.DiagramsUtils
public final class DiagramsUtils
A Helper class used to facilitate Diagrams management.
Creation 6 oct. 06
Method Summary | |
---|---|
static java.util.List<Diagram> |
findAllDiagrams(Diagrams rootDiagrams)
Return all the Diagram model objects that are defined in the Diagrams file. |
static java.util.List<Diagram> |
findAllExistingDiagram(Diagrams rootDiagrams,
EObject modelObject)
This method return the list of Diagram model objects that are defined for a given EObject. |
static Diagrams |
findNearestContainerDiagrams(Diagrams rootDiagrams,
EObject modelObject)
This method returns the nearest Diagrams in the hierarchy that should contains a Diagram associated with the given modelObject. |
static Diagrams |
findRootDiagrams(Diagrams diagrams)
Retrieve the root Diagrams model object |
static GraphElement |
getNearestCommonParentGraphElement(GraphElement elt1,
GraphElement elt2)
This method is used to retrieve the first GraphElement that both contains (directly or not) the two passed GraphElements. |
static Diagram |
getRootDiagram(Diagrams diagrams)
Retrieve the root Diagram from a Diagrams element : we search in the hierarchy (subtree) of the Diagrams element. |
static void |
updateDI(Diagrams rootDiagrams)
This method is used to update a Diagrams model to be compliant with the new Diagrams metamodel (nsURI=0.11). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Diagrams findRootDiagrams(Diagrams diagrams)
diagrams
- a Diagrams model object
public static Diagram getRootDiagram(Diagrams diagrams)
diagrams
- the Diagrams where to search
public static java.util.List<Diagram> findAllDiagrams(Diagrams rootDiagrams)
rootDiagrams
- the root Diagrams model object
public static java.util.List<Diagram> findAllExistingDiagram(Diagrams rootDiagrams, EObject modelObject)
rootDiagrams
- the root Diagrams model objectmodelObject
- the model object
public static Diagrams findNearestContainerDiagrams(Diagrams rootDiagrams, EObject modelObject)
rootDiagrams
- a DiagramsmodelObject
- the modelObject
public static void updateDI(Diagrams rootDiagrams)
rootDiagrams
- the rootDiagramspublic static GraphElement getNearestCommonParentGraphElement(GraphElement elt1, GraphElement elt2)
elt1
- The first GraphElementelt2
- The second GraphElement
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.