|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface for the UmlFactory.
| Method Summary | |
Object |
buildConnection(Object connectionType,
Object fromElement,
Object fromStyle,
Object toElement,
Object toStyle,
Object unidirectional,
Object namespace)
Creates a UML model element of the given type and uses this to connect two other existing UML model elements. |
Object |
buildNode(Object elementType)
Creates a UML model element of the given type. |
void |
delete(Object elem)
Delete a model element. |
boolean |
isConnectionType(Object connectionType)
Checks if some type of UML model element is valid to connect other UML model elements. |
boolean |
isConnectionValid(Object connectionType,
Object fromElement,
Object toElement)
Checks if some type of UML model element is valid to connect two other existing UML model elements. |
boolean |
isRemoved(Object o)
Check whether a model element has been deleted. |
| Method Detail |
public Object buildConnection(Object connectionType,
Object fromElement,
Object fromStyle,
Object toElement,
Object toStyle,
Object unidirectional,
Object namespace)
throws IllegalModelElementConnectionException
connectionType - the UML object type of the connectionfromElement - the UML object for the "from" elementfromStyle - the aggregationkind for the connection
in case of an associationtoElement - the UML object for the "to" elementtoStyle - the aggregationkind for the connection
in case of an associationunidirectional - for association and associationrolenamespace - the namespace to use if it can't be determined
IllegalModelElementConnectionException - if the connection is not
a valid thing to dopublic Object buildNode(Object elementType)
elementType - the type of model element to build
public boolean isConnectionType(Object connectionType)
connectionType - the UML object type of the connection
public boolean isConnectionValid(Object connectionType,
Object fromElement,
Object toElement)
This only works for UML elements. If a diagram contains elements of another type then it is the responsibility of the diagram to filter those out before calling this method.
connectionType - the UML object type of the connectionfromElement - the UML object type of the "from"toElement - the UML object type of the "to"
public void delete(Object elem)
Callers who are interested in receiving notification of all elements which were deleted should register an event listener to receive delete events.
elem - The element to be deletedpublic boolean isRemoved(Object o)
Note that without external synchronization that there's no guarantee that the element won't be deleted by another after this method returns, but before the caller can do anything with it.
o - the object to be checked
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |