|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UmlFactory
The interface for the UmlFactory.
Method Summary | |
---|---|
java.lang.Object |
buildConnection(java.lang.Object connectionType,
java.lang.Object fromElement,
java.lang.Object fromStyle,
java.lang.Object toElement,
java.lang.Object toStyle,
java.lang.Object unidirectional,
java.lang.Object namespace)
Creates a UML model element of the given type and uses this to connect two other existing UML model elements. |
java.lang.Object |
buildNode(java.lang.Object elementType)
Creates a UML model element of the given type. |
java.lang.Object |
buildNode(java.lang.Object elementType,
java.lang.Object container)
Creates a UML model element of the given type and adds it to the passed in container. |
void |
delete(java.lang.Object elem)
Delete a model element. |
void |
deleteExtent(java.lang.Object element)
Delete the entire extent which contains the given element. |
boolean |
isConnectionType(java.lang.Object connectionType)
Checks if some type of UML model element is valid to connect other UML model elements. |
boolean |
isConnectionValid(java.lang.Object connectionType,
java.lang.Object fromElement,
java.lang.Object toElement,
boolean checkWFR)
Checks if the given type of UML model element is valid to connect two other existing UML model elements, optionally checking UML well-formedness rules in addition to basic metamodel validity. |
boolean |
isContainmentValid(java.lang.Object metaType,
java.lang.Object container)
Checks if the given type of UML model element is valid to be contained within the passed in container model element. |
boolean |
isRemoved(java.lang.Object o)
Check whether a model element has been deleted. |
Method Detail |
---|
java.lang.Object buildConnection(java.lang.Object connectionType, java.lang.Object fromElement, java.lang.Object fromStyle, java.lang.Object toElement, java.lang.Object toStyle, java.lang.Object unidirectional, java.lang.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 dojava.lang.Object buildNode(java.lang.Object elementType)
elementType
- the type of model element to build
java.lang.Object buildNode(java.lang.Object elementType, java.lang.Object container)
elementType
- the type of model element to buildcontainer
- the model element that will contain the
newly built model element
boolean isConnectionType(java.lang.Object connectionType)
connectionType
- the UML object type of the connection
boolean isConnectionValid(java.lang.Object connectionType, java.lang.Object fromElement, java.lang.Object toElement, boolean checkWFR)
connectionType
- the UML object type of the connectionfromElement
- the UML object type of the "from"toElement
- the UML object type of the "to"checkWFR
- true to check UML Well Formedness Rules
boolean isContainmentValid(java.lang.Object metaType, java.lang.Object container)
metaType
- the UML object type to be testedcontainer
- the UML object that is the container
void delete(java.lang.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 deletedvoid deleteExtent(java.lang.Object element)
element
- an element in extent to be deleted.boolean isRemoved(java.lang.Object o)
NOTE:You probably don't want to use this. It's not thread-safe! Without external synchronization there's no guarantee that the element won't be deleted by thread after this method returns, but before the caller can do anything with it.
If the calling code isn't protected by a lock or some other type of synchronization, a much, MUCH better alternative to using this call is to use a try/catch block which catches InvalidElementExceptions.
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 |