|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.model.uml.AbstractUmlModelFactory | +--org.argouml.model.uml.foundation.core.CoreFactory
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.
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 |
public static CoreFactory getFactory()
public java.lang.Object createAbstraction()
public java.lang.Object buildAbstraction(java.lang.String name)
name
-
public MAssociation createAssociation()
public MAssociationClass createAssociationClass()
public MAssociationEnd createAssociationEnd()
public MAttribute createAttribute()
public MBinding createBinding()
public MClass createClass()
public MClassifier createClassifier()
public MComment createComment()
public MComponent createComponent()
public MConstraint createConstraint()
public MDataType createDataType()
public MDependency createDependency()
public MElementResidence createElementResidence()
public MFlow createFlow()
public MGeneralization createGeneralization()
public MInterface createInterface()
public MMethod createMethod()
public MNamespace createNamespace()
public MNode createNode()
public MOperation createOperation()
public MParameter createParameter()
public MPermission createPermission()
public MRelationship createRelationship()
public MTemplateParameter createTemplateParameter()
public MUsage createUsage()
public MAssociation buildAssociation(MClassifier c1, boolean nav1, MAggregationKind agg1, MClassifier c2, boolean nav2, MAggregationKind agg2)
c1
- The first classifier to connect tonav1
- The navigability of the Associaton endagg1
- The aggregation type of the second Associaton endc2
- The second classifier to connect tonav2
- The navigability of the second Associaton endagg2
- The aggregation type of the second Associaton end
public MAssociation buildAssociation(MClassifier from, MAggregationKind agg1, MClassifier to, MAggregationKind agg2, java.lang.Boolean unidirectional)
public MAssociation buildAssociation(MClassifier c1, MClassifier c2)
c1
- The first classifier to connectc2
- The second classifier to connect
public MAssociation buildAssociation(MClassifier c1, boolean nav1, MClassifier c2, boolean nav2)
c1
- The first classifier to connect tonav1
- The navigability of the Associaton endc2
- The second classifier to connect tonav2
- The navigability of the second Associaton end
public java.lang.Object buildAssociation(java.lang.Object c1, boolean nav1, java.lang.Object c2, boolean nav2, java.lang.String name)
c1
- The first classifier to connect tonav1
- The navigability of the Associaton endc2
- The second classifier to connect tonav2
- The navigability of the second Associaton endname
-
public MAssociationClass buildAssociationClass(MClassifier end1, MClassifier end2)
end1
- end2
-
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)
assoc
- The associaton this end will be part ofname
- The name of the association endtype
- The type (classifier) the end will connect. The end
is a connection piece between an association and a classifiermulti
- The multiplicitystereo
- The stereotypenavigable
- The navigability. True if this association end
can be 'passed' from the other classifier.order
- Ordering of the associationaggregation
- scope
- changeable
- visibility
-
public MAssociationEnd buildAssociationEnd(MClassifier type, MAssociation assoc)
public MAssociationClass buildAssociatonClass(MClass cl, MClassifier end1, MClassifier end2)
cl
-
public MAttribute buildAttribute()
public java.lang.Object buildAttribute(java.lang.String name)
name
-
public MAttribute buildAttribute(java.lang.Object handle)
public MBinding buildBinding(MModelElement client, MModelElement supplier)
client
- supplier
-
public MClass buildClass()
public MClass buildClass(java.lang.Object owner)
owner
-
buildClass()
public MClass buildClass(java.lang.String name)
name
-
buildClass()
public MClass buildClass(java.lang.String name, java.lang.Object owner)
name
- owner
-
buildClass()
public java.lang.Object buildInterface()
public java.lang.Object buildInterface(java.lang.Object owner)
owner
-
buildInterface()
public java.lang.Object buildInterface(java.lang.String name)
name
-
buildInterface()
public java.lang.Object buildInterface(java.lang.String name, java.lang.Object owner)
name
- owner
-
buildInterface()
public java.lang.Object buildDataType(java.lang.String name, java.lang.Object owner)
name
- owner
-
public MDependency buildDependency(java.lang.Object clientObj, java.lang.Object supplierObj)
public MPermission buildPermission(java.lang.Object clientObj, java.lang.Object supplierObj)
public java.lang.Object buildGeneralization(java.lang.Object child, java.lang.Object parent, java.lang.String name)
child
- parent
- name
-
public MGeneralization buildGeneralization(MGeneralizableElement child, MGeneralizableElement parent)
child
- parent
-
public MMethod buildMethod(MOperation op)
op
-
public MMethod buildMethod(MOperation op, NotationName notation, java.lang.String body)
op
- The operation this method belongs tonotation
- The notationname (language name) of the bodybody
- The actual body of the method
public MOperation buildOperation(java.lang.Object handle)
public java.lang.Object buildOperation(java.lang.Object cls, java.lang.String name)
cls
- name
-
public MParameter buildParameter()
public MParameter buildParameter(MBehavioralFeature oper)
oper
- The operation where it is added to.
If null, it is not added.
public MParameter buildParameter(MBehavioralFeature oper, MParameterDirectionKind directionKind)
oper
- The operation where it is added to.
If null, it is not added.directionKind
- The directionkind. If null it is not set.
public java.lang.Object buildRealization(MModelElement client, MModelElement supplier)
client
- supplier
-
public MUsage buildUsage(MModelElement client, MModelElement supplier)
client
- supplier
-
public MComment buildComment(MModelElement elementToComment)
elementToComment
-
public MConstraint buildConstraint(MModelElement constrainedElement)
constrainedElement
-
public java.lang.Object buildConstraint(java.lang.String name, java.lang.Object bexpr)
name
-
public void deleteAbstraction(java.lang.Object elem)
public void deleteAssociation(MAssociation elem)
public void deleteAssociationClass(MAssociationClass elem)
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.
elem
- UmlFactory#delete(MBase)
public void deleteAttribute(MAttribute elem)
public void deleteBehavioralFeature(MBehavioralFeature elem)
public void deleteBinding(MBinding elem)
public void deleteClass(MClass elem)
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
elem
- UmlFactory#delete(MBase)
public void deleteComment(MComment elem)
public void deleteComponent(MComponent elem)
public void deleteConstraint(MConstraint elem)
public void deleteDataType(MDataType elem)
public void deleteDependency(MDependency elem)
public void deleteElement(MElement elem)
public void deleteElementResidence(MElementResidence elem)
public void deleteFeature(MFeature elem)
public void deleteFlow(MFlow elem)
public void deleteGeneralizableElement(MGeneralizableElement elem)
public void deleteGeneralization(MGeneralization elem)
public void deleteInterface(MInterface elem)
public void deleteMethod(MMethod elem)
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)
elem
- UmlFactory#delete(MBase)
public void deleteNamespace(MNamespace elem)
public void deleteNode(MNode elem)
public void deleteOperation(MOperation elem)
public void deleteParameter(MParameter elem)
public void deletePermission(MPermission elem)
public void deletePresentationElement(MPresentationElement elem)
public void deleteRelationship(MRelationship elem)
public void deleteStructuralFeature(MStructuralFeature elem)
public void deleteTemplateParameter(MTemplateParameter elem)
public void deleteUsage(MUsage elem)
public MClass copyClass(MClass source, MNamespace ns)
source
- is the class to copy.ns
- is the namespace to put the copy in.public MDataType copyDataType(MDataType source, MNamespace ns)
source
- is the datatype to copy.ns
- is the namespace to put the copy in.public MInterface copyInterface(MInterface source, MNamespace ns)
source
- is the interface to copy.ns
- is the namespace to put the copy in.public void doCopyElement(MElement source, MElement target)
public void doCopyClass(MClass source, MClass target)
public void doCopyClassifier(MClassifier source, MClassifier target)
public void doCopyDataType(MDataType source, MDataType target)
public void doCopyGeneralizableElement(MGeneralizableElement source, MGeneralizableElement target)
public void doCopyInterface(MInterface source, MInterface target)
public void doCopyModelElement(MModelElement source, MModelElement target)
public void doCopyNamespace(MNamespace source, MNamespace target)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |