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

java.lang.Object
  extended byorg.argouml.model.uml.AbstractUmlModelFactory
      extended byorg.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.
 ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier c1, boolean nav1, ru.novosoft.uml.foundation.data_types.MAggregationKind agg1, ru.novosoft.uml.foundation.core.MClassifier c2, boolean nav2, ru.novosoft.uml.foundation.data_types.MAggregationKind agg2)
          Builds a default binary association with two default association ends.
 ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier c1, boolean nav1, ru.novosoft.uml.foundation.core.MClassifier c2, boolean nav2)
          Builds a default binary association with two default association ends.
 ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier c1, ru.novosoft.uml.foundation.data_types.MAggregationKind agg1, ru.novosoft.uml.foundation.core.MClassifier c2, ru.novosoft.uml.foundation.data_types.MAggregationKind agg2)
          Builds a default binary association with two default association ends.
 ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier from, ru.novosoft.uml.foundation.data_types.MAggregationKind agg1, ru.novosoft.uml.foundation.core.MClassifier to, ru.novosoft.uml.foundation.data_types.MAggregationKind agg2, java.lang.Boolean unidirectional)
          Builds a binary associationrole on basis of two classifierroles, navigation and aggregation
 ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier c1, ru.novosoft.uml.foundation.core.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.
 ru.novosoft.uml.foundation.core.MAssociationClass buildAssociationClass(ru.novosoft.uml.foundation.core.MClassifier end1, ru.novosoft.uml.foundation.core.MClassifier end2)
          Builds an associationClass between classifier end1 and end2 with a default class.
 ru.novosoft.uml.foundation.core.MAssociationEnd buildAssociationEnd(ru.novosoft.uml.foundation.core.MAssociation assoc, java.lang.String name, ru.novosoft.uml.foundation.core.MClassifier type, ru.novosoft.uml.foundation.data_types.MMultiplicity multi, ru.novosoft.uml.foundation.extension_mechanisms.MStereotype stereo, boolean navigable, ru.novosoft.uml.foundation.data_types.MOrderingKind order, ru.novosoft.uml.foundation.data_types.MAggregationKind aggregation, ru.novosoft.uml.foundation.data_types.MScopeKind scope, ru.novosoft.uml.foundation.data_types.MChangeableKind changeable, ru.novosoft.uml.foundation.data_types.MVisibilityKind visibility)
          Builds a fully configurable association end.
 ru.novosoft.uml.foundation.core.MAssociationEnd buildAssociationEnd(ru.novosoft.uml.foundation.core.MClassifier type, ru.novosoft.uml.foundation.core.MAssociation assoc)
           
 ru.novosoft.uml.foundation.core.MAssociationClass buildAssociatonClass(ru.novosoft.uml.foundation.core.MClass cl, ru.novosoft.uml.foundation.core.MClassifier end1, ru.novosoft.uml.foundation.core.MClassifier end2)
          Builds an association class from a class and two classifiers that should be associated.
 ru.novosoft.uml.foundation.core.MAttribute buildAttribute()
          Builds a default attribute.
 ru.novosoft.uml.foundation.core.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.
 ru.novosoft.uml.foundation.core.MBinding buildBinding(ru.novosoft.uml.foundation.core.MModelElement client, ru.novosoft.uml.foundation.core.MModelElement supplier)
          Builds a binding between a client modelelement and a supplier modelelement
 ru.novosoft.uml.foundation.core.MClass buildClass()
          Builds a default implementation for a class.
 ru.novosoft.uml.foundation.core.MClass buildClass(java.lang.Object owner)
          Builds a class with a given namespace.
 ru.novosoft.uml.foundation.core.MClass buildClass(java.lang.String name)
          Builds a class with a given name.
 ru.novosoft.uml.foundation.core.MClass buildClass(java.lang.String name, java.lang.Object owner)
          Builds a class with a given name and namespace.
 ru.novosoft.uml.foundation.core.MComment buildComment(ru.novosoft.uml.foundation.core.MModelElement elementToComment)
          Builds a comment inluding a reference to the given modelelement to comment.
 ru.novosoft.uml.foundation.core.MConstraint buildConstraint(ru.novosoft.uml.foundation.core.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.
 ru.novosoft.uml.foundation.core.MDependency buildDependency(java.lang.Object clientObj, java.lang.Object supplierObj)
          Builds a modelelement dependency between two modelelements.
 ru.novosoft.uml.foundation.core.MGeneralization buildGeneralization(ru.novosoft.uml.foundation.core.MGeneralizableElement child, ru.novosoft.uml.foundation.core.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.
 ru.novosoft.uml.foundation.core.MMethod buildMethod(ru.novosoft.uml.foundation.core.MOperation op)
          Builds a default method belonging to a certain operation.
 ru.novosoft.uml.foundation.core.MMethod buildMethod(ru.novosoft.uml.foundation.core.MOperation op, NotationName notation, java.lang.String body)
          Builds a method belonging to a certain operation.
 ru.novosoft.uml.foundation.core.MMethod buildMethod(java.lang.String name)
          Builds a method with a given name.
 ru.novosoft.uml.foundation.core.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.
 ru.novosoft.uml.foundation.core.MParameter buildParameter()
          Constructs a default parameter.
 ru.novosoft.uml.foundation.core.MParameter buildParameter(ru.novosoft.uml.foundation.core.MBehavioralFeature oper)
          Constructs a default parameter and adds it to oper.
 ru.novosoft.uml.foundation.core.MParameter buildParameter(ru.novosoft.uml.foundation.core.MBehavioralFeature oper, ru.novosoft.uml.foundation.data_types.MParameterDirectionKind directionKind)
          Constructs a default parameter, adds it to oper and sets its type (return etc.).
 ru.novosoft.uml.foundation.core.MParameter buildParameter(java.lang.Object o)
          Adds a parameter initialized to default values to a given event or behavioral feature
 ru.novosoft.uml.foundation.core.MPermission buildPermission(java.lang.Object clientObj, java.lang.Object supplierObj)
          Builds a modelelement permission between two modelelements.
 java.lang.Object buildRealization(ru.novosoft.uml.foundation.core.MModelElement client, ru.novosoft.uml.foundation.core.MModelElement supplier)
          Builds a realization between some supplier (for example an interface in Java) and a client who implements the realization.
 ru.novosoft.uml.foundation.core.MUsage buildUsage(ru.novosoft.uml.foundation.core.MModelElement client, ru.novosoft.uml.foundation.core.MModelElement supplier)
          Builds a usage between some client and a supplier.
 ru.novosoft.uml.foundation.core.MClass copyClass(ru.novosoft.uml.foundation.core.MClass source, ru.novosoft.uml.foundation.core.MNamespace ns)
          Copies a class, and it's features.
 ru.novosoft.uml.foundation.core.MDataType copyDataType(ru.novosoft.uml.foundation.core.MDataType source, ru.novosoft.uml.foundation.core.MNamespace ns)
          Copies a datatype, and it's features.
 ru.novosoft.uml.foundation.core.MInterface copyInterface(ru.novosoft.uml.foundation.core.MInterface source, ru.novosoft.uml.foundation.core.MNamespace ns)
          Copies an interface, and it's features.
 java.lang.Object createAbstraction()
          Create an empty but initialized instance of a UML Abstraction.
 ru.novosoft.uml.foundation.core.MAssociation createAssociation()
          Create an empty but initialized instance of a UML Association.
 ru.novosoft.uml.foundation.core.MAssociationClass createAssociationClass()
          Create an empty but initialized instance of a UML AssociationClass.
 ru.novosoft.uml.foundation.core.MAssociationEnd createAssociationEnd()
          Create an empty but initialized instance of a UML AssociationEnd.
 ru.novosoft.uml.foundation.core.MAttribute createAttribute()
          Create an empty but initialized instance of a UML Attribute.
 ru.novosoft.uml.foundation.core.MBinding createBinding()
          Create an empty but initialized instance of a UML Binding.
 ru.novosoft.uml.foundation.core.MClass createClass()
          Create an empty but initialized instance of a UML Class.
 ru.novosoft.uml.foundation.core.MClassifier createClassifier()
          Create an empty but initialized instance of a UML Classifier.
 ru.novosoft.uml.foundation.core.MComment createComment()
          Create an empty but initialized instance of a UML Comment.
 ru.novosoft.uml.foundation.core.MComponent createComponent()
          Create an empty but initialized instance of a UML Component.
 ru.novosoft.uml.foundation.core.MConstraint createConstraint()
          Create an empty but initialized instance of a UML Constraint.
 ru.novosoft.uml.foundation.core.MDataType createDataType()
          Create an empty but initialized instance of a UML DataType.
 ru.novosoft.uml.foundation.core.MDependency createDependency()
          Create an empty but initialized instance of a UML Dependency.
 ru.novosoft.uml.foundation.core.MElementResidence createElementResidence()
          Create an empty but initialized instance of a UML ElementResidence.
 ru.novosoft.uml.foundation.core.MFlow createFlow()
          Create an empty but initialized instance of a UML Flow.
 ru.novosoft.uml.foundation.core.MGeneralization createGeneralization()
          Create an empty but initialized instance of a UML Generalization.
 ru.novosoft.uml.foundation.core.MInterface createInterface()
          Create an empty but initialized instance of a UML Interface.
 ru.novosoft.uml.foundation.core.MMethod createMethod()
          Create an empty but initialized instance of a UML Method.
 ru.novosoft.uml.foundation.core.MNamespace createNamespace()
          Create an empty but initialized instance of a UML Namespace.
 ru.novosoft.uml.foundation.core.MNode createNode()
          Create an empty but initialized instance of a UML Node.
 ru.novosoft.uml.foundation.core.MOperation createOperation()
          Create an empty but initialized instance of a UML Operation.
 ru.novosoft.uml.foundation.core.MParameter createParameter()
          Create an empty but initialized instance of a UML Parameter.
 ru.novosoft.uml.foundation.core.MPermission createPermission()
          Create an empty but initialized instance of a UML Permission.
 ru.novosoft.uml.foundation.core.MRelationship createRelationship()
          Create an empty but initialized instance of a UML Relationship.
 ru.novosoft.uml.foundation.core.MTemplateParameter createTemplateParameter()
          Create an empty but initialized instance of a UML TemplateParameter.
 ru.novosoft.uml.foundation.core.MUsage createUsage()
          Create an empty but initialized instance of a UML Usage.
 void deleteAbstraction(java.lang.Object elem)
           
 void deleteAssociation(ru.novosoft.uml.foundation.core.MAssociation elem)
           
 void deleteAssociationClass(ru.novosoft.uml.foundation.core.MAssociationClass elem)
           
 void deleteAssociationEnd(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MAttribute elem)
           
 void deleteBehavioralFeature(ru.novosoft.uml.foundation.core.MBehavioralFeature elem)
           
 void deleteBinding(ru.novosoft.uml.foundation.core.MBinding elem)
           
 void deleteClass(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MComment elem)
           
 void deleteComponent(ru.novosoft.uml.foundation.core.MComponent elem)
           
 void deleteConstraint(ru.novosoft.uml.foundation.core.MConstraint elem)
           
 void deleteDataType(ru.novosoft.uml.foundation.core.MDataType elem)
           
 void deleteDependency(ru.novosoft.uml.foundation.core.MDependency elem)
           
 void deleteElement(ru.novosoft.uml.foundation.core.MElement elem)
           
 void deleteElementResidence(ru.novosoft.uml.foundation.core.MElementResidence elem)
           
 void deleteFeature(ru.novosoft.uml.foundation.core.MFeature elem)
           
 void deleteFlow(ru.novosoft.uml.foundation.core.MFlow elem)
           
 void deleteGeneralizableElement(ru.novosoft.uml.foundation.core.MGeneralizableElement elem)
           
 void deleteGeneralization(ru.novosoft.uml.foundation.core.MGeneralization elem)
           
 void deleteInterface(ru.novosoft.uml.foundation.core.MInterface elem)
           
 void deleteMethod(ru.novosoft.uml.foundation.core.MMethod elem)
           
 void deleteModelElement(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MNamespace elem)
          A namespace deletes its owned elements.
 void deleteNode(ru.novosoft.uml.foundation.core.MNode elem)
           
 void deleteOperation(ru.novosoft.uml.foundation.core.MOperation elem)
           
 void deleteParameter(ru.novosoft.uml.foundation.core.MParameter elem)
           
 void deletePermission(ru.novosoft.uml.foundation.core.MPermission elem)
           
 void deletePresentationElement(ru.novosoft.uml.foundation.core.MPresentationElement elem)
           
 void deleteRelationship(ru.novosoft.uml.foundation.core.MRelationship elem)
           
 void deleteStructuralFeature(ru.novosoft.uml.foundation.core.MStructuralFeature elem)
           
 void deleteTemplateParameter(ru.novosoft.uml.foundation.core.MTemplateParameter elem)
           
 void deleteUsage(ru.novosoft.uml.foundation.core.MUsage elem)
           
 void doCopyClass(ru.novosoft.uml.foundation.core.MClass source, ru.novosoft.uml.foundation.core.MClass target)
          Used by the copy functions.
 void doCopyClassifier(ru.novosoft.uml.foundation.core.MClassifier source, ru.novosoft.uml.foundation.core.MClassifier target)
          Used by the copy functions.
 void doCopyDataType(ru.novosoft.uml.foundation.core.MDataType source, ru.novosoft.uml.foundation.core.MDataType target)
          Used by the copy functions.
 void doCopyElement(ru.novosoft.uml.foundation.core.MElement source, ru.novosoft.uml.foundation.core.MElement target)
          Used by the copy functions.
 void doCopyGeneralizableElement(ru.novosoft.uml.foundation.core.MGeneralizableElement source, ru.novosoft.uml.foundation.core.MGeneralizableElement target)
          Used by the copy functions.
 void doCopyInterface(ru.novosoft.uml.foundation.core.MInterface source, ru.novosoft.uml.foundation.core.MInterface target)
          Used by the copy functions.
 void doCopyModelElement(ru.novosoft.uml.foundation.core.MModelElement source, ru.novosoft.uml.foundation.core.MModelElement target)
          Used by the copy functions.
 void doCopyNamespace(ru.novosoft.uml.foundation.core.MNamespace source, ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MAssociation createAssociation()
Create an empty but initialized instance of a UML Association.

Returns:
an initialized UML Association instance.

createAssociationClass

public ru.novosoft.uml.foundation.core.MAssociationClass createAssociationClass()
Create an empty but initialized instance of a UML AssociationClass.

Returns:
an initialized UML AssociationClass instance.

createAssociationEnd

public ru.novosoft.uml.foundation.core.MAssociationEnd createAssociationEnd()
Create an empty but initialized instance of a UML AssociationEnd.

Returns:
an initialized UML AssociationEnd instance.

createAttribute

public ru.novosoft.uml.foundation.core.MAttribute createAttribute()
Create an empty but initialized instance of a UML Attribute.

Returns:
an initialized UML Attribute instance.

createBinding

public ru.novosoft.uml.foundation.core.MBinding createBinding()
Create an empty but initialized instance of a UML Binding.

Returns:
an initialized UML Binding instance.

createClass

public ru.novosoft.uml.foundation.core.MClass createClass()
Create an empty but initialized instance of a UML Class.

Returns:
an initialized UML Class instance.

createClassifier

public ru.novosoft.uml.foundation.core.MClassifier createClassifier()
Create an empty but initialized instance of a UML Classifier.

Returns:
an initialized UML Classifier instance.

createComment

public ru.novosoft.uml.foundation.core.MComment createComment()
Create an empty but initialized instance of a UML Comment.

Returns:
an initialized UML Comment instance.

createComponent

public ru.novosoft.uml.foundation.core.MComponent createComponent()
Create an empty but initialized instance of a UML Component.

Returns:
an initialized UML Component instance.

createConstraint

public ru.novosoft.uml.foundation.core.MConstraint createConstraint()
Create an empty but initialized instance of a UML Constraint.

Returns:
an initialized UML Constraint instance.

createDataType

public ru.novosoft.uml.foundation.core.MDataType createDataType()
Create an empty but initialized instance of a UML DataType.

Returns:
an initialized UML DataType instance.

createDependency

public ru.novosoft.uml.foundation.core.MDependency createDependency()
Create an empty but initialized instance of a UML Dependency.

Returns:
an initialized UML Dependency instance.

createElementResidence

public ru.novosoft.uml.foundation.core.MElementResidence createElementResidence()
Create an empty but initialized instance of a UML ElementResidence.

Returns:
an initialized UML ElementResidence instance.

createFlow

public ru.novosoft.uml.foundation.core.MFlow createFlow()
Create an empty but initialized instance of a UML Flow.

Returns:
an initialized UML Flow instance.

createGeneralization

public ru.novosoft.uml.foundation.core.MGeneralization createGeneralization()
Create an empty but initialized instance of a UML Generalization.

Returns:
an initialized UML Generalization instance.

createInterface

public ru.novosoft.uml.foundation.core.MInterface createInterface()
Create an empty but initialized instance of a UML Interface.

Returns:
an initialized UML Interface instance.

createMethod

public ru.novosoft.uml.foundation.core.MMethod createMethod()
Create an empty but initialized instance of a UML Method.

Returns:
an initialized UML Method instance.

createNamespace

public ru.novosoft.uml.foundation.core.MNamespace createNamespace()
Create an empty but initialized instance of a UML Namespace.

Returns:
an initialized UML Namespace instance.

createNode

public ru.novosoft.uml.foundation.core.MNode createNode()
Create an empty but initialized instance of a UML Node.

Returns:
an initialized UML Node instance.

createOperation

public ru.novosoft.uml.foundation.core.MOperation createOperation()
Create an empty but initialized instance of a UML Operation.

Returns:
an initialized UML Operation instance.

createParameter

public ru.novosoft.uml.foundation.core.MParameter createParameter()
Create an empty but initialized instance of a UML Parameter.

Returns:
an initialized UML Parameter instance.

createPermission

public ru.novosoft.uml.foundation.core.MPermission createPermission()
Create an empty but initialized instance of a UML Permission.

Returns:
an initialized UML Permission instance.

createRelationship

public ru.novosoft.uml.foundation.core.MRelationship createRelationship()
Create an empty but initialized instance of a UML Relationship.

Returns:
an initialized UML Relationship instance.

createTemplateParameter

public ru.novosoft.uml.foundation.core.MTemplateParameter createTemplateParameter()
Create an empty but initialized instance of a UML TemplateParameter.

Returns:
an initialized UML TemplateParameter instance.

createUsage

public ru.novosoft.uml.foundation.core.MUsage createUsage()
Create an empty but initialized instance of a UML Usage.

Returns:
an initialized UML Usage instance.

buildAssociation

public ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier c1,
                                                                     boolean nav1,
                                                                     ru.novosoft.uml.foundation.data_types.MAggregationKind agg1,
                                                                     ru.novosoft.uml.foundation.core.MClassifier c2,
                                                                     boolean nav2,
                                                                     ru.novosoft.uml.foundation.data_types.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 ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier from,
                                                                     ru.novosoft.uml.foundation.data_types.MAggregationKind agg1,
                                                                     ru.novosoft.uml.foundation.core.MClassifier to,
                                                                     ru.novosoft.uml.foundation.data_types.MAggregationKind agg2,
                                                                     java.lang.Boolean unidirectional)
Builds a binary associationrole on basis of two classifierroles, navigation and aggregation


buildAssociation

public ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier c1,
                                                                     ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier c1,
                                                                     boolean nav1,
                                                                     ru.novosoft.uml.foundation.core.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

buildAssociation

public ru.novosoft.uml.foundation.core.MAssociation buildAssociation(ru.novosoft.uml.foundation.core.MClassifier c1,
                                                                     ru.novosoft.uml.foundation.data_types.MAggregationKind agg1,
                                                                     ru.novosoft.uml.foundation.core.MClassifier c2,
                                                                     ru.novosoft.uml.foundation.data_types.MAggregationKind agg2)
Builds a default binary association with two default association ends.

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

buildAssociationClass

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

Parameters:
end1 -
end2 -
Returns:
MAssociationClass

buildAssociationEnd

public ru.novosoft.uml.foundation.core.MAssociationEnd buildAssociationEnd(ru.novosoft.uml.foundation.core.MAssociation assoc,
                                                                           java.lang.String name,
                                                                           ru.novosoft.uml.foundation.core.MClassifier type,
                                                                           ru.novosoft.uml.foundation.data_types.MMultiplicity multi,
                                                                           ru.novosoft.uml.foundation.extension_mechanisms.MStereotype stereo,
                                                                           boolean navigable,
                                                                           ru.novosoft.uml.foundation.data_types.MOrderingKind order,
                                                                           ru.novosoft.uml.foundation.data_types.MAggregationKind aggregation,
                                                                           ru.novosoft.uml.foundation.data_types.MScopeKind scope,
                                                                           ru.novosoft.uml.foundation.data_types.MChangeableKind changeable,
                                                                           ru.novosoft.uml.foundation.data_types.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 ru.novosoft.uml.foundation.core.MAssociationEnd buildAssociationEnd(ru.novosoft.uml.foundation.core.MClassifier type,
                                                                           ru.novosoft.uml.foundation.core.MAssociation assoc)

buildAssociatonClass

public ru.novosoft.uml.foundation.core.MAssociationClass buildAssociatonClass(ru.novosoft.uml.foundation.core.MClass cl,
                                                                              ru.novosoft.uml.foundation.core.MClassifier end1,
                                                                              ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MBinding buildBinding(ru.novosoft.uml.foundation.core.MModelElement client,
                                                             ru.novosoft.uml.foundation.core.MModelElement supplier)
Builds a binding between a client modelelement and a supplier modelelement

Parameters:
client -
supplier -
Returns:
MBinding

buildClass

public ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MClass buildClass(java.lang.Object owner)
Builds a class with a given namespace.

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

buildClass

public ru.novosoft.uml.foundation.core.MClass buildClass(java.lang.String name)
Builds a class with a given name.

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

buildClass

public ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MDependency buildDependency(java.lang.Object clientObj,
                                                                   java.lang.Object supplierObj)
Builds a modelelement dependency between two modelelements.

Returns:
MDependency

buildPermission

public ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MGeneralization buildGeneralization(ru.novosoft.uml.foundation.core.MGeneralizableElement child,
                                                                           ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MMethod buildMethod(ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MMethod buildMethod(ru.novosoft.uml.foundation.core.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

buildMethod

public ru.novosoft.uml.foundation.core.MMethod buildMethod(java.lang.String name)
Builds a method with a given name.

Parameters:
name -
Returns:
method

buildOperation

public ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MParameter buildParameter()
Constructs a default parameter.

Returns:
The newly created parameter.

buildParameter

public ru.novosoft.uml.foundation.core.MParameter buildParameter(ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MParameter buildParameter(ru.novosoft.uml.foundation.core.MBehavioralFeature oper,
                                                                 ru.novosoft.uml.foundation.data_types.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.

buildParameter

public ru.novosoft.uml.foundation.core.MParameter buildParameter(java.lang.Object o)
Adds a parameter initialized to default values to a given event or behavioral feature

Parameters:
o - an event or behavioral feature
Returns:
MParameter

buildRealization

public java.lang.Object buildRealization(ru.novosoft.uml.foundation.core.MModelElement client,
                                         ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MUsage buildUsage(ru.novosoft.uml.foundation.core.MModelElement client,
                                                         ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MComment buildComment(ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MConstraint buildConstraint(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MAssociation elem)

deleteAssociationClass

public void deleteAssociationClass(ru.novosoft.uml.foundation.core.MAssociationClass elem)

deleteAssociationEnd

public void deleteAssociationEnd(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MAttribute elem)

deleteBehavioralFeature

public void deleteBehavioralFeature(ru.novosoft.uml.foundation.core.MBehavioralFeature elem)

deleteBinding

public void deleteBinding(ru.novosoft.uml.foundation.core.MBinding elem)

deleteClass

public void deleteClass(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MComment elem)

deleteComponent

public void deleteComponent(ru.novosoft.uml.foundation.core.MComponent elem)

deleteConstraint

public void deleteConstraint(ru.novosoft.uml.foundation.core.MConstraint elem)

deleteDataType

public void deleteDataType(ru.novosoft.uml.foundation.core.MDataType elem)

deleteDependency

public void deleteDependency(ru.novosoft.uml.foundation.core.MDependency elem)

deleteElement

public void deleteElement(ru.novosoft.uml.foundation.core.MElement elem)

deleteElementResidence

public void deleteElementResidence(ru.novosoft.uml.foundation.core.MElementResidence elem)

deleteFeature

public void deleteFeature(ru.novosoft.uml.foundation.core.MFeature elem)

deleteFlow

public void deleteFlow(ru.novosoft.uml.foundation.core.MFlow elem)

deleteGeneralizableElement

public void deleteGeneralizableElement(ru.novosoft.uml.foundation.core.MGeneralizableElement elem)

deleteGeneralization

public void deleteGeneralization(ru.novosoft.uml.foundation.core.MGeneralization elem)

deleteInterface

public void deleteInterface(ru.novosoft.uml.foundation.core.MInterface elem)

deleteMethod

public void deleteMethod(ru.novosoft.uml.foundation.core.MMethod elem)

deleteModelElement

public void deleteModelElement(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MNamespace elem)
A namespace deletes its owned elements.


deleteNode

public void deleteNode(ru.novosoft.uml.foundation.core.MNode elem)

deleteOperation

public void deleteOperation(ru.novosoft.uml.foundation.core.MOperation elem)

deleteParameter

public void deleteParameter(ru.novosoft.uml.foundation.core.MParameter elem)

deletePermission

public void deletePermission(ru.novosoft.uml.foundation.core.MPermission elem)

deletePresentationElement

public void deletePresentationElement(ru.novosoft.uml.foundation.core.MPresentationElement elem)

deleteRelationship

public void deleteRelationship(ru.novosoft.uml.foundation.core.MRelationship elem)

deleteStructuralFeature

public void deleteStructuralFeature(ru.novosoft.uml.foundation.core.MStructuralFeature elem)

deleteTemplateParameter

public void deleteTemplateParameter(ru.novosoft.uml.foundation.core.MTemplateParameter elem)

deleteUsage

public void deleteUsage(ru.novosoft.uml.foundation.core.MUsage elem)

copyClass

public ru.novosoft.uml.foundation.core.MClass copyClass(ru.novosoft.uml.foundation.core.MClass source,
                                                        ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MDataType copyDataType(ru.novosoft.uml.foundation.core.MDataType source,
                                                              ru.novosoft.uml.foundation.core.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 ru.novosoft.uml.foundation.core.MInterface copyInterface(ru.novosoft.uml.foundation.core.MInterface source,
                                                                ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MElement source,
                          ru.novosoft.uml.foundation.core.MElement target)
Used by the copy functions. Do not call this function directly.


doCopyClass

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


doCopyClassifier

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


doCopyDataType

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


doCopyGeneralizableElement

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


doCopyInterface

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


doCopyModelElement

public void doCopyModelElement(ru.novosoft.uml.foundation.core.MModelElement source,
                               ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MNamespace source,
                            ru.novosoft.uml.foundation.core.MNamespace target)
Used by the copy functions. Do not call this function directly.



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