org.argouml.model.uml.foundation.core
Class CoreFactory

java.lang.Object
  |
  +--org.argouml.model.uml.AbstractUmlModelFactory
        |
        +--org.argouml.model.uml.foundation.core.CoreFactory

public class CoreFactory
extends AbstractUmlModelFactory

Factory to create UML classes for the UML Foundation::Core package. Feature, StructuralFeature, and PresentationElement do not have a create methods since it is called an "abstract metaclass" in the UML specifications.

Since:
ARGO0.11.2

Method Summary
 java.lang.Object buildAbstraction(java.lang.String name)
          Build an empty but initialized instance of a UML Abstraction with a given name.
 MAssociation buildAssociation(MClassifier c1, boolean nav1, MAggregationKind agg1, MClassifier c2, boolean nav2, MAggregationKind agg2)
          Builds a default binary association with two default association ends.
 MAssociation buildAssociation(MClassifier c1, boolean nav1, MClassifier c2, boolean nav2)
          Builds a default binary association with two default association ends.
 MAssociation buildAssociation(MClassifier from, MAggregationKind agg1, MClassifier to, MAggregationKind agg2, java.lang.Boolean unidirectional)
          Builds a binary associationrole on basis of two classifierroles, navigation and aggregation
 MAssociation buildAssociation(MClassifier c1, MClassifier c2)
          Builds a binary associations between two classifiers with default values for the association ends and the association itself.
 java.lang.Object buildAssociation(java.lang.Object c1, boolean nav1, java.lang.Object c2, boolean nav2, java.lang.String name)
          Builds a binary association with a direction, aggregation and a given name.
 MAssociationClass buildAssociationClass(MClassifier end1, MClassifier end2)
          Builds an associationClass between classifier end1 and end2 with a default class.
 MAssociationEnd buildAssociationEnd(MAssociation assoc, java.lang.String name, MClassifier type, MMultiplicity multi, MStereotype stereo, boolean navigable, MOrderingKind order, MAggregationKind aggregation, MScopeKind scope, MChangeableKind changeable, MVisibilityKind visibility)
          Builds a fully configurable association end.
 MAssociationEnd buildAssociationEnd(MClassifier type, MAssociation assoc)
           
 MAssociationClass buildAssociatonClass(MClass cl, MClassifier end1, MClassifier end2)
          Builds an association class from a class and two classifiers that should be associated.
 MAttribute buildAttribute()
          Builds a default attribute.
 MAttribute buildAttribute(java.lang.Object handle)
          Builds an attribute owned by some classifier cls.
 java.lang.Object buildAttribute(java.lang.String name)
          Builds a default attribute with a given name.
 MBinding buildBinding(MModelElement client, MModelElement supplier)
          Builds a binding between a client modelelement and a supplier modelelement
 MClass buildClass()
          Builds a default implementation for a class.
 MClass buildClass(java.lang.Object owner)
          Builds a class with a given namespace.
 MClass buildClass(java.lang.String name)
          Builds a class with a given name.
 MClass buildClass(java.lang.String name, java.lang.Object owner)
          Builds a class with a given name and namespace.
 MComment buildComment(MModelElement elementToComment)
          Builds a comment inluding a reference to the given modelelement to comment.
 MConstraint buildConstraint(MModelElement constrainedElement)
          Builds a constraint that constraints the given modelelement.
 java.lang.Object buildConstraint(java.lang.String name, java.lang.Object bexpr)
          Builds a constraint with a given name and boolean expression.
 java.lang.Object buildDataType(java.lang.String name, java.lang.Object owner)
          Builds a datatype with a given name and namespace.
 MDependency buildDependency(java.lang.Object clientObj, java.lang.Object supplierObj)
          Builds a modelelement dependency between two modelelements.
 MGeneralization buildGeneralization(MGeneralizableElement child, MGeneralizableElement parent)
          Builds a generalization between a parent and a child.
 java.lang.Object buildGeneralization(java.lang.Object child, java.lang.Object parent, java.lang.String name)
          Builds a generalization between a parent and a child with a given name.
 java.lang.Object buildInterface()
          Builds a default implementation for an interface.
 java.lang.Object buildInterface(java.lang.Object owner)
          Builds an interface with a given namespace.
 java.lang.Object buildInterface(java.lang.String name)
          Builds an interface with a given name.
 java.lang.Object buildInterface(java.lang.String name, java.lang.Object owner)
          Builds an interface with a given name and namespace.
 MMethod buildMethod(MOperation op)
          Builds a default method belonging to a certain operation.
 MMethod buildMethod(MOperation op, NotationName notation, java.lang.String body)
          Builds a method belonging to a certain operation.
 MOperation buildOperation(java.lang.Object handle)
          Builds an operation for classifier cls.
 java.lang.Object buildOperation(java.lang.Object cls, java.lang.String name)
          Builds an operation with a given name for classifier cls.
 MParameter buildParameter()
          Constructs a default parameter.
 MParameter buildParameter(MBehavioralFeature oper)
          Constructs a default parameter and adds it to oper.
 MParameter buildParameter(MBehavioralFeature oper, MParameterDirectionKind directionKind)
          Constructs a default parameter, adds it to oper and sets its type (return etc.).
 MPermission buildPermission(java.lang.Object clientObj, java.lang.Object supplierObj)
          Builds a modelelement permission between two modelelements.
 java.lang.Object buildRealization(MModelElement client, MModelElement supplier)
          Builds a realization between some supplier (for example an interface in Java) and a client who implements the realization.
 MUsage buildUsage(MModelElement client, MModelElement supplier)
          Builds a usage between some client and a supplier.
 MClass copyClass(MClass source, MNamespace ns)
          Copies a class, and it's features.
 MDataType copyDataType(MDataType source, MNamespace ns)
          Copies a datatype, and it's features.
 MInterface copyInterface(MInterface source, MNamespace ns)
          Copies an interface, and it's features.
 java.lang.Object createAbstraction()
          Create an empty but initialized instance of a UML Abstraction.
 MAssociation createAssociation()
          Create an empty but initialized instance of a UML Association.
 MAssociationClass createAssociationClass()
          Create an empty but initialized instance of a UML AssociationClass.
 MAssociationEnd createAssociationEnd()
          Create an empty but initialized instance of a UML AssociationEnd.
 MAttribute createAttribute()
          Create an empty but initialized instance of a UML Attribute.
 MBinding createBinding()
          Create an empty but initialized instance of a UML Binding.
 MClass createClass()
          Create an empty but initialized instance of a UML Class.
 MClassifier createClassifier()
          Create an empty but initialized instance of a UML Classifier.
 MComment createComment()
          Create an empty but initialized instance of a UML Comment.
 MComponent createComponent()
          Create an empty but initialized instance of a UML Component.
 MConstraint createConstraint()
          Create an empty but initialized instance of a UML Constraint.
 MDataType createDataType()
          Create an empty but initialized instance of a UML DataType.
 MDependency createDependency()
          Create an empty but initialized instance of a UML Dependency.
 MElementResidence createElementResidence()
          Create an empty but initialized instance of a UML ElementResidence.
 MFlow createFlow()
          Create an empty but initialized instance of a UML Flow.
 MGeneralization createGeneralization()
          Create an empty but initialized instance of a UML Generalization.
 MInterface createInterface()
          Create an empty but initialized instance of a UML Interface.
 MMethod createMethod()
          Create an empty but initialized instance of a UML Method.
 MNamespace createNamespace()
          Create an empty but initialized instance of a UML Namespace.
 MNode createNode()
          Create an empty but initialized instance of a UML Node.
 MOperation createOperation()
          Create an empty but initialized instance of a UML Operation.
 MParameter createParameter()
          Create an empty but initialized instance of a UML Parameter.
 MPermission createPermission()
          Create an empty but initialized instance of a UML Permission.
 MRelationship createRelationship()
          Create an empty but initialized instance of a UML Relationship.
 MTemplateParameter createTemplateParameter()
          Create an empty but initialized instance of a UML TemplateParameter.
 MUsage createUsage()
          Create an empty but initialized instance of a UML Usage.
 void deleteAbstraction(java.lang.Object elem)
           
 void deleteAssociation(MAssociation elem)
           
 void deleteAssociationClass(MAssociationClass elem)
           
 void deleteAssociationEnd(MAssociationEnd elem)
           Does a 'cascading delete' to all modelelements that are associated with this element that would be in an illegal state after deletion of the element.
 void deleteAttribute(MAttribute elem)
           
 void deleteBehavioralFeature(MBehavioralFeature elem)
           
 void deleteBinding(MBinding elem)
           
 void deleteClass(MClass elem)
           
 void deleteClassifier(java.lang.Object elem)
           Does a 'cascading delete' to all modelelements that are associated with this element that would be in an illegal state after deletion of the element.
 void deleteComment(MComment elem)
           
 void deleteComponent(MComponent elem)
           
 void deleteConstraint(MConstraint elem)
           
 void deleteDataType(MDataType elem)
           
 void deleteDependency(MDependency elem)
           
 void deleteElement(MElement elem)
           
 void deleteElementResidence(MElementResidence elem)
           
 void deleteFeature(MFeature elem)
           
 void deleteFlow(MFlow elem)
           
 void deleteGeneralizableElement(MGeneralizableElement elem)
           
 void deleteGeneralization(MGeneralization elem)
           
 void deleteInterface(MInterface elem)
           
 void deleteMethod(MMethod elem)
           
 void deleteModelElement(MModelElement elem)
           Does a 'cascading delete' to all modelelements that are associated with this element that would be in an illegal state after deletion of the element.
 void deleteNamespace(MNamespace elem)
          A namespace deletes its owned elements.
 void deleteNode(MNode elem)
           
 void deleteOperation(MOperation elem)
           
 void deleteParameter(MParameter elem)
           
 void deletePermission(MPermission elem)
           
 void deletePresentationElement(MPresentationElement elem)
           
 void deleteRelationship(MRelationship elem)
           
 void deleteStructuralFeature(MStructuralFeature elem)
           
 void deleteTemplateParameter(MTemplateParameter elem)
           
 void deleteUsage(MUsage elem)
           
 void doCopyClass(MClass source, MClass target)
          Used by the copy functions.
 void doCopyClassifier(MClassifier source, MClassifier target)
          Used by the copy functions.
 void doCopyDataType(MDataType source, MDataType target)
          Used by the copy functions.
 void doCopyElement(MElement source, MElement target)
          Used by the copy functions.
 void doCopyGeneralizableElement(MGeneralizableElement source, MGeneralizableElement target)
          Used by the copy functions.
 void doCopyInterface(MInterface source, MInterface target)
          Used by the copy functions.
 void doCopyModelElement(MModelElement source, MModelElement target)
          Used by the copy functions.
 void doCopyNamespace(MNamespace source, MNamespace target)
          Used by the copy functions.
static CoreFactory getFactory()
          Singleton instance access method.
 
Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory
addListenersToModelElement, initialize, isGuiEnabled, setGuiEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static CoreFactory getFactory()
Singleton instance access method.


createAbstraction

public java.lang.Object createAbstraction()
Create an empty but initialized instance of a UML Abstraction.

Returns:
an initialized UML Abstraction instance.

buildAbstraction

public java.lang.Object buildAbstraction(java.lang.String name)
Build an empty but initialized instance of a UML Abstraction with a given name.

Parameters:
name -
Returns:
an initialized UML Abstraction instance.

createAssociation

public MAssociation createAssociation()
Create an empty but initialized instance of a UML Association.

Returns:
an initialized UML Association instance.

createAssociationClass

public MAssociationClass createAssociationClass()
Create an empty but initialized instance of a UML AssociationClass.

Returns:
an initialized UML AssociationClass instance.

createAssociationEnd

public MAssociationEnd createAssociationEnd()
Create an empty but initialized instance of a UML AssociationEnd.

Returns:
an initialized UML AssociationEnd instance.

createAttribute

public MAttribute createAttribute()
Create an empty but initialized instance of a UML Attribute.

Returns:
an initialized UML Attribute instance.

createBinding

public MBinding createBinding()
Create an empty but initialized instance of a UML Binding.

Returns:
an initialized UML Binding instance.

createClass

public MClass createClass()
Create an empty but initialized instance of a UML Class.

Returns:
an initialized UML Class instance.

createClassifier

public MClassifier createClassifier()
Create an empty but initialized instance of a UML Classifier.

Returns:
an initialized UML Classifier instance.

createComment

public MComment createComment()
Create an empty but initialized instance of a UML Comment.

Returns:
an initialized UML Comment instance.

createComponent

public MComponent createComponent()
Create an empty but initialized instance of a UML Component.

Returns:
an initialized UML Component instance.

createConstraint

public MConstraint createConstraint()
Create an empty but initialized instance of a UML Constraint.

Returns:
an initialized UML Constraint instance.

createDataType

public MDataType createDataType()
Create an empty but initialized instance of a UML DataType.

Returns:
an initialized UML DataType instance.

createDependency

public MDependency createDependency()
Create an empty but initialized instance of a UML Dependency.

Returns:
an initialized UML Dependency instance.

createElementResidence

public MElementResidence createElementResidence()
Create an empty but initialized instance of a UML ElementResidence.

Returns:
an initialized UML ElementResidence instance.

createFlow

public MFlow createFlow()
Create an empty but initialized instance of a UML Flow.

Returns:
an initialized UML Flow instance.

createGeneralization

public MGeneralization createGeneralization()
Create an empty but initialized instance of a UML Generalization.

Returns:
an initialized UML Generalization instance.

createInterface

public MInterface createInterface()
Create an empty but initialized instance of a UML Interface.

Returns:
an initialized UML Interface instance.

createMethod

public MMethod createMethod()
Create an empty but initialized instance of a UML Method.

Returns:
an initialized UML Method instance.

createNamespace

public MNamespace createNamespace()
Create an empty but initialized instance of a UML Namespace.

Returns:
an initialized UML Namespace instance.

createNode

public MNode createNode()
Create an empty but initialized instance of a UML Node.

Returns:
an initialized UML Node instance.

createOperation

public MOperation createOperation()
Create an empty but initialized instance of a UML Operation.

Returns:
an initialized UML Operation instance.

createParameter

public MParameter createParameter()
Create an empty but initialized instance of a UML Parameter.

Returns:
an initialized UML Parameter instance.

createPermission

public MPermission createPermission()
Create an empty but initialized instance of a UML Permission.

Returns:
an initialized UML Permission instance.

createRelationship

public MRelationship createRelationship()
Create an empty but initialized instance of a UML Relationship.

Returns:
an initialized UML Relationship instance.

createTemplateParameter

public MTemplateParameter createTemplateParameter()
Create an empty but initialized instance of a UML TemplateParameter.

Returns:
an initialized UML TemplateParameter instance.

createUsage

public MUsage createUsage()
Create an empty but initialized instance of a UML Usage.

Returns:
an initialized UML Usage instance.

buildAssociation

public MAssociation buildAssociation(MClassifier c1,
                                     boolean nav1,
                                     MAggregationKind agg1,
                                     MClassifier c2,
                                     boolean nav2,
                                     MAggregationKind agg2)
Builds a default binary association with two default association ends.

Parameters:
c1 - The first classifier to connect to
nav1 - The navigability of the Associaton end
agg1 - The aggregation type of the second Associaton end
c2 - The second classifier to connect to
nav2 - The navigability of the second Associaton end
agg2 - The aggregation type of the second Associaton end
Returns:
MAssociation

buildAssociation

public MAssociation buildAssociation(MClassifier from,
                                     MAggregationKind agg1,
                                     MClassifier to,
                                     MAggregationKind agg2,
                                     java.lang.Boolean unidirectional)
Builds a binary associationrole on basis of two classifierroles, navigation and aggregation


buildAssociation

public MAssociation buildAssociation(MClassifier c1,
                                     MClassifier c2)
Builds a binary associations between two classifiers with default values for the association ends and the association itself.

Parameters:
c1 - The first classifier to connect
c2 - The second classifier to connect
Returns:
MAssociation

buildAssociation

public MAssociation buildAssociation(MClassifier c1,
                                     boolean nav1,
                                     MClassifier c2,
                                     boolean nav2)
Builds a default binary association with two default association ends.

Parameters:
c1 - The first classifier to connect to
nav1 - The navigability of the Associaton end
c2 - The second classifier to connect to
nav2 - The navigability of the second Associaton end
Returns:
MAssociation

buildAssociation

public java.lang.Object buildAssociation(java.lang.Object c1,
                                         boolean nav1,
                                         java.lang.Object c2,
                                         boolean nav2,
                                         java.lang.String name)
Builds a binary association with a direction, aggregation and a given name.

Parameters:
c1 - The first classifier to connect to
nav1 - The navigability of the Associaton end
c2 - The second classifier to connect to
nav2 - The navigability of the second Associaton end
name -
Returns:
association

buildAssociationClass

public MAssociationClass buildAssociationClass(MClassifier end1,
                                               MClassifier end2)
Builds an associationClass between classifier end1 and end2 with a default class.

Parameters:
end1 -
end2 -
Returns:
MAssociationClass

buildAssociationEnd

public MAssociationEnd buildAssociationEnd(MAssociation assoc,
                                           java.lang.String name,
                                           MClassifier type,
                                           MMultiplicity multi,
                                           MStereotype stereo,
                                           boolean navigable,
                                           MOrderingKind order,
                                           MAggregationKind aggregation,
                                           MScopeKind scope,
                                           MChangeableKind changeable,
                                           MVisibilityKind visibility)
Builds a fully configurable association end. All variables for an associationend can be given as parameter.

Parameters:
assoc - The associaton this end will be part of
name - The name of the association end
type - The type (classifier) the end will connect. The end is a connection piece between an association and a classifier
multi - The multiplicity
stereo - The stereotype
navigable - The navigability. True if this association end can be 'passed' from the other classifier.
order - Ordering of the association
aggregation -
scope -
changeable -
visibility -
Returns:
MAssociationEnd

buildAssociationEnd

public MAssociationEnd buildAssociationEnd(MClassifier type,
                                           MAssociation assoc)

buildAssociatonClass

public MAssociationClass buildAssociatonClass(MClass cl,
                                              MClassifier end1,
                                              MClassifier end2)
Builds an association class from a class and two classifiers that should be associated. Both ends of the associationclass are navigable.

Parameters:
cl -
Returns:
MAssociationClass

buildAttribute

public MAttribute buildAttribute()
Builds a default attribute.

Returns:
MAttribute

buildAttribute

public java.lang.Object buildAttribute(java.lang.String name)
Builds a default attribute with a given name.

Parameters:
name -
Returns:
attribute

buildAttribute

public MAttribute buildAttribute(java.lang.Object handle)
Builds an attribute owned by some classifier cls. I don't know if this is legal for an interface (purely UML speaking). In this method it is.

Returns:
MAttribute

buildBinding

public MBinding buildBinding(MModelElement client,
                             MModelElement supplier)
Builds a binding between a client modelelement and a supplier modelelement

Parameters:
client -
supplier -
Returns:
MBinding

buildClass

public MClass buildClass()
Builds a default implementation for a class. The class is not owned by any model element by default. Users should not forget to add ownership

Returns:
MClass

buildClass

public MClass buildClass(java.lang.Object owner)
Builds a class with a given namespace.

Parameters:
owner -
Returns:
MClass
See Also:
buildClass()

buildClass

public MClass buildClass(java.lang.String name)
Builds a class with a given name.

Parameters:
name -
Returns:
MClass
See Also:
buildClass()

buildClass

public MClass buildClass(java.lang.String name,
                         java.lang.Object owner)
Builds a class with a given name and namespace.

Parameters:
name -
owner -
Returns:
MClass
See Also:
buildClass()

buildInterface

public java.lang.Object buildInterface()
Builds a default implementation for an interface. The interface is not owned by any model element by default. Users should not forget to add ownership

Returns:
MInterface

buildInterface

public java.lang.Object buildInterface(java.lang.Object owner)
Builds an interface with a given namespace.

Parameters:
owner -
Returns:
MInterface
See Also:
buildInterface()

buildInterface

public java.lang.Object buildInterface(java.lang.String name)
Builds an interface with a given name.

Parameters:
name -
Returns:
MInterface
See Also:
buildInterface()

buildInterface

public java.lang.Object buildInterface(java.lang.String name,
                                       java.lang.Object owner)
Builds an interface with a given name and namespace.

Parameters:
name -
owner -
Returns:
MInterface
See Also:
buildInterface()

buildDataType

public java.lang.Object buildDataType(java.lang.String name,
                                      java.lang.Object owner)
Builds a datatype with a given name and namespace.

Parameters:
name -
owner -
Returns:
an initialized UML DataType instance.

buildDependency

public MDependency buildDependency(java.lang.Object clientObj,
                                   java.lang.Object supplierObj)
Builds a modelelement dependency between two modelelements.

Returns:
MDependency

buildPermission

public MPermission buildPermission(java.lang.Object clientObj,
                                   java.lang.Object supplierObj)
Builds a modelelement permission between two modelelements.

Returns:
MPermission

buildGeneralization

public java.lang.Object buildGeneralization(java.lang.Object child,
                                            java.lang.Object parent,
                                            java.lang.String name)
Builds a generalization between a parent and a child with a given name.

Parameters:
child -
parent -
name -
Returns:
generalization

buildGeneralization

public MGeneralization buildGeneralization(MGeneralizableElement child,
                                           MGeneralizableElement parent)
Builds a generalization between a parent and a child. Does not check if multiple inheritance is allowed for the current notation.

Parameters:
child -
parent -
Returns:
MGeneralization

buildMethod

public MMethod buildMethod(MOperation op)
Builds a default method belonging to a certain operation. The language of the body is set to the selected Notation language. The body of the method is set to an emtpy string.

Parameters:
op -
Returns:
MMethod

buildMethod

public MMethod buildMethod(MOperation op,
                           NotationName notation,
                           java.lang.String body)
Builds a method belonging to a certain operation.

Parameters:
op - The operation this method belongs to
notation - The notationname (language name) of the body
body - The actual body of the method
Returns:
MMethod

buildOperation

public MOperation buildOperation(java.lang.Object handle)
Builds an operation for classifier cls.

Returns:
MOperation

buildOperation

public java.lang.Object buildOperation(java.lang.Object cls,
                                       java.lang.String name)
Builds an operation with a given name for classifier cls.

Parameters:
cls -
name -
Returns:
MOperation

buildParameter

public MParameter buildParameter()
Constructs a default parameter.

Returns:
The newly created parameter.

buildParameter

public MParameter buildParameter(MBehavioralFeature oper)
Constructs a default parameter and adds it to oper. The name is unique in the operation so no code generation problems will exist.

Parameters:
oper - The operation where it is added to. If null, it is not added.
Returns:
The newly created parameter.

buildParameter

public MParameter buildParameter(MBehavioralFeature oper,
                                 MParameterDirectionKind directionKind)
Constructs a default parameter, adds it to oper and sets its type (return etc.).

Parameters:
oper - The operation where it is added to. If null, it is not added.
directionKind - The directionkind. If null it is not set.
Returns:
The newly created parameter.

buildRealization

public java.lang.Object buildRealization(MModelElement client,
                                         MModelElement supplier)
Builds a realization between some supplier (for example an interface in Java) and a client who implements the realization.

Parameters:
client -
supplier -
Returns:
Object the created abstraction

buildUsage

public MUsage buildUsage(MModelElement client,
                         MModelElement supplier)
Builds a usage between some client and a supplier. If client and supplier do not have the same model, an illegalargumentexception is thrown.

Parameters:
client -
supplier -
Returns:
MUsage

buildComment

public MComment buildComment(MModelElement elementToComment)
Builds a comment inluding a reference to the given modelelement to comment. If the element is null, the comment is still build since it is not mandatory to have an annotated element in the comment.

Parameters:
elementToComment -
Returns:
MComment

buildConstraint

public MConstraint buildConstraint(MModelElement constrainedElement)
Builds a constraint that constraints the given modelelement. The namespace of the constraint will be the same as the namespace of the given modelelement.

Parameters:
constrainedElement -
Returns:
MConstraint

buildConstraint

public java.lang.Object buildConstraint(java.lang.String name,
                                        java.lang.Object bexpr)
Builds a constraint with a given name and boolean expression.

Parameters:
name -
Returns:
constraint

deleteAbstraction

public void deleteAbstraction(java.lang.Object elem)

deleteAssociation

public void deleteAssociation(MAssociation elem)

deleteAssociationClass

public void deleteAssociationClass(MAssociationClass elem)

deleteAssociationEnd

public void deleteAssociationEnd(MAssociationEnd elem)

Does a 'cascading delete' to all modelelements that are associated with this element that would be in an illegal state after deletion of the element. Does not do an cascading delete for elements that are deleted by the NSUML method remove. This method should not be called directly.

In the case of an associationend these are the following elements:

- Binary Associations that 'loose' one of the associationends by this deletion.

Parameters:
elem -
See Also:
UmlFactory#delete(MBase)

deleteAttribute

public void deleteAttribute(MAttribute elem)

deleteBehavioralFeature

public void deleteBehavioralFeature(MBehavioralFeature elem)

deleteBinding

public void deleteBinding(MBinding elem)

deleteClass

public void deleteClass(MClass elem)

deleteClassifier

public void deleteClassifier(java.lang.Object elem)

Does a 'cascading delete' to all modelelements that are associated with this element that would be in an illegal state after deletion of the element. Does not do an cascading delete for elements that are deleted by the NSUML method remove. This method should not be called directly.

In the case of a classifier these are the following elements:

- AssociationEnds that have this classifier as type

Parameters:
elem -
See Also:
UmlFactory#delete(MBase)

deleteComment

public void deleteComment(MComment elem)

deleteComponent

public void deleteComponent(MComponent elem)

deleteConstraint

public void deleteConstraint(MConstraint elem)

deleteDataType

public void deleteDataType(MDataType elem)

deleteDependency

public void deleteDependency(MDependency elem)

deleteElement

public void deleteElement(MElement elem)

deleteElementResidence

public void deleteElementResidence(MElementResidence elem)

deleteFeature

public void deleteFeature(MFeature elem)

deleteFlow

public void deleteFlow(MFlow elem)

deleteGeneralizableElement

public void deleteGeneralizableElement(MGeneralizableElement elem)

deleteGeneralization

public void deleteGeneralization(MGeneralization elem)

deleteInterface

public void deleteInterface(MInterface elem)

deleteMethod

public void deleteMethod(MMethod elem)

deleteModelElement

public void deleteModelElement(MModelElement elem)

Does a 'cascading delete' to all modelelements that are associated with this element that would be in an illegal state after deletion of the element. Does not do an cascading delete for elements that are deleted by the NSUML method remove. This method should not be called directly.

In the case of a modelelement these are the following elements:

- Dependencies that have the modelelement as supplier or as a client and are binary. (that is, they only have one supplier and one client)

Parameters:
elem -
See Also:
UmlFactory#delete(MBase)

deleteNamespace

public void deleteNamespace(MNamespace elem)
A namespace deletes its owned elements.


deleteNode

public void deleteNode(MNode elem)

deleteOperation

public void deleteOperation(MOperation elem)

deleteParameter

public void deleteParameter(MParameter elem)

deletePermission

public void deletePermission(MPermission elem)

deletePresentationElement

public void deletePresentationElement(MPresentationElement elem)

deleteRelationship

public void deleteRelationship(MRelationship elem)

deleteStructuralFeature

public void deleteStructuralFeature(MStructuralFeature elem)

deleteTemplateParameter

public void deleteTemplateParameter(MTemplateParameter elem)

deleteUsage

public void deleteUsage(MUsage elem)

copyClass

public MClass copyClass(MClass source,
                        MNamespace ns)
Copies a class, and it's features. This may also require other classifiers to be copied.

Parameters:
source - is the class to copy.
ns - is the namespace to put the copy in.

copyDataType

public MDataType copyDataType(MDataType source,
                              MNamespace ns)
Copies a datatype, and it's features. This may also require other classifiers to be copied.

Parameters:
source - is the datatype to copy.
ns - is the namespace to put the copy in.

copyInterface

public MInterface copyInterface(MInterface source,
                                MNamespace ns)
Copies an interface, and it's features. This may also require other classifiers to be copied.

Parameters:
source - is the interface to copy.
ns - is the namespace to put the copy in.

doCopyElement

public void doCopyElement(MElement source,
                          MElement target)
Used by the copy functions. Do not call this function directly.


doCopyClass

public void doCopyClass(MClass source,
                        MClass target)
Used by the copy functions. Do not call this function directly.


doCopyClassifier

public void doCopyClassifier(MClassifier source,
                             MClassifier target)
Used by the copy functions. Do not call this function directly. TODO: actions? instances? collaborations etc?


doCopyDataType

public void doCopyDataType(MDataType source,
                           MDataType target)
Used by the copy functions. Do not call this function directly.


doCopyGeneralizableElement

public void doCopyGeneralizableElement(MGeneralizableElement source,
                                       MGeneralizableElement target)
Used by the copy functions. Do not call this function directly. TODO: generalizations, specializations?


doCopyInterface

public void doCopyInterface(MInterface source,
                            MInterface target)
Used by the copy functions. Do not call this function directly.


doCopyModelElement

public void doCopyModelElement(MModelElement source,
                               MModelElement target)
Used by the copy functions. Do not call this function directly. TODO: template parameters, default type TODO: constraining elements TODO: flows, dependencies, comments, bindings, contexts ??? TODO: contents, residences ???


doCopyNamespace

public void doCopyNamespace(MNamespace source,
                            MNamespace target)
Used by the copy functions. Do not call this function directly.



ArgoUML © 1996-2003 (20030919)ArgoUML Project HomeArgoUML Cookbook