|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.model.uml.AbstractUmlModelFactory
org.argouml.model.uml.CoreFactoryImpl
Factory to create UML classes for the UML Foundation::Core package.
Feature, StructuralFeature, and PresentationElement do not have a create method since it is called an "abstract metaclass" in the UML specifications.
| Field Summary | |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
| Constructor Summary | |
(package private) |
CoreFactoryImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
| Method Summary | |
Object |
buildAbstraction(String name,
Object supplier,
Object client)
Build an empty but initialized instance of a UML Abstraction with a given name. |
private 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. |
Object |
buildAssociation(Object c1,
boolean nav1,
Object c2,
boolean nav2,
String name)
Builds a binary association with a direction, aggregation and a given name. |
Object |
buildAssociation(Object classifier1,
Object classifier2)
Builds a binary associations between two classifiers with default values for the association ends and the association itself. |
Object |
buildAssociation(Object fromClassifier,
Object aggregationKind1,
Object toClassifier,
Object aggregationKind2,
Boolean unidirectional)
Builds a binary associationrole on basis of two classifierroles, navigation and aggregation. |
private ru.novosoft.uml.foundation.core.MAssociationClass |
buildAssociationClass(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. |
Object |
buildAssociationClass(Object end1,
Object end2)
Builds an associationClass between classifier end1 and end2 with a default class. |
Object |
buildAssociationEnd(Object type,
Object assoc)
Builds a simply configured association end. |
Object |
buildAssociationEnd(Object assoc,
String name,
Object type,
Object multi,
Object stereo,
boolean navigable,
Object order,
Object aggregation,
Object scope,
Object changeable,
Object visibility)
Builds a fully configurable association end. |
Object |
buildAttribute(Object model,
Object theIntType)
Builds a default attribute. |
Object |
buildAttribute(Object handle,
Object model,
Object intType,
Collection propertyChangeListeners)
Builds an attribute owned by some classifier cls. |
Object |
buildClass()
Builds a default implementation for a class. |
Object |
buildClass(Object owner)
Builds a class with a given namespace. |
Object |
buildClass(String name)
Builds a class with a given name. |
Object |
buildClass(String name,
Object owner)
Builds a class with a given name and namespace. |
Object |
buildComment(Object element,
Object model)
Builds a comment inluding a reference to the given modelelement to comment. |
Object |
buildConstraint(Object constrElement)
Builds a constraint that constraints the given modelelement. |
Object |
buildConstraint(String name,
Object bexpr)
Builds a constraint with a given name and boolean expression. |
Object |
buildDataType(String name,
Object owner)
Builds a datatype with a given name and namespace. |
Object |
buildDependency(Object clientObj,
Object supplierObj)
Builds a modelelement dependency between two modelelements. |
Object |
buildGeneralization(Object child1,
Object parent1)
Builds a generalization between a parent and a child. |
Object |
buildGeneralization(Object child,
Object parent,
String name)
Builds a generalization between a parent and a child with a given name. |
Object |
buildInterface()
Builds a default implementation for an interface. |
Object |
buildInterface(Object owner)
Builds an interface with a given namespace. |
Object |
buildInterface(String name)
Builds an interface with a given name. |
Object |
buildInterface(String name,
Object owner)
Builds an interface with a given name and namespace. |
Object |
buildMethod(String name)
Builds a method with a given name. |
Object |
buildOperation(Object classifier,
Object model,
Object voidType,
Collection propertyChangeListeners)
Builds an operation for a classifier. |
Object |
buildOperation(Object cls,
Object model,
Object voidType,
String name,
Collection propertyChangeListeners)
Builds an operation with a given name for classifier. |
private Object |
buildParameter(ru.novosoft.uml.model_management.MModel model,
ru.novosoft.uml.foundation.core.MClassifier voidType)
Constructs a default parameter. |
Object |
buildParameter(Object o,
Object model,
Object voidType,
Collection propertyChangeListeners)
Adds a parameter initialized to default values to a given event or behavioral feature. |
Object |
buildPermission(Object clientObj,
Object supplierObj)
Builds a modelelement permission between two modelelements. |
Object |
buildRealization(Object clnt,
Object spplr,
Object model)
Builds a realization between some supplier (for example an interface in Java) and a client who implements the realization. |
Object |
buildUsage(Object client,
Object supplier)
Builds a usage between some client and a supplier. |
Object |
copyClass(Object source,
Object ns)
Copies a class, and it's features. |
Object |
copyDataType(Object source,
Object ns)
Copies a datatype, and it's features. |
Object |
copyInterface(Object source,
Object ns)
Copies an interface, and it's features. |
(package private) Object |
createAbstraction()
Create an empty but initialized instance of a UML Abstraction. |
(package private) Object |
createAssociation()
Create an empty but initialized instance of a UML Association. |
(package private) Object |
createAssociationClass()
Create an empty but initialized instance of a UML AssociationClass. |
Object |
createAssociationEnd()
Create an empty but initialized instance of a UML AssociationEnd. |
Object |
createAttribute()
Create an empty but initialized instance of a UML Attribute. |
Object |
createBinding()
Create an empty but initialized instance of a UML Binding. |
Object |
createClass()
Create an empty but initialized instance of a UML Class. |
Object |
createClassifier()
Create an empty but initialized instance of a UML Classifier. |
Object |
createComment()
Create an empty but initialized instance of a UML Comment. |
Object |
createComponent()
Create an empty but initialized instance of a UML Component. |
Object |
createConstraint()
Create an empty but initialized instance of a UML Constraint. |
Object |
createDataType()
Create an empty but initialized instance of a UML DataType. |
(package private) Object |
createDependency()
Create an empty but initialized instance of a UML Dependency. |
Object |
createElementResidence()
Create an empty but initialized instance of a UML ElementResidence. |
Object |
createFlow()
Create an empty but initialized instance of a UML Flow. |
(package private) Object |
createGeneralization()
Create an empty but initialized instance of a UML Generalization. |
Object |
createInterface()
Create an empty but initialized instance of a UML Interface. |
Object |
createMethod()
Create an empty but initialized instance of a UML Method. |
Object |
createNamespace()
Create an empty but initialized instance of a UML Namespace. |
Object |
createNode()
Create an empty but initialized instance of a UML Node. |
Object |
createOperation()
Create an empty but initialized instance of a UML Operation. |
Object |
createParameter()
Create an empty but initialized instance of a UML Parameter. |
Object |
createPermission()
Create an empty but initialized instance of a UML Permission. |
Object |
createRelationship()
Create an empty but initialized instance of a UML Relationship. |
Object |
createTemplateParameter()
Create an empty but initialized instance of a UML TemplateParameter. |
Object |
createUsage()
Create an empty but initialized instance of a UML Usage. |
(package private) void |
deleteAbstraction(Object elem)
|
(package private) void |
deleteAssociation(Object elem)
|
(package private) void |
deleteAssociationClass(Object elem)
|
(package private) void |
deleteAssociationEnd(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. |
(package private) void |
deleteAttribute(Object elem)
|
(package private) void |
deleteBehavioralFeature(Object elem)
|
(package private) void |
deleteBinding(Object elem)
|
(package private) void |
deleteClass(Object elem)
|
(package private) void |
deleteClassifier(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. |
(package private) void |
deleteComment(Object elem)
|
(package private) void |
deleteComponent(Object elem)
|
(package private) void |
deleteConstraint(Object elem)
|
(package private) void |
deleteDataType(Object elem)
|
(package private) void |
deleteDependency(Object elem)
|
(package private) void |
deleteElement(Object elem)
|
(package private) void |
deleteElementResidence(Object elem)
|
(package private) void |
deleteFeature(Object elem)
|
(package private) void |
deleteFlow(Object elem)
|
(package private) void |
deleteGeneralizableElement(Object elem)
|
(package private) void |
deleteGeneralization(Object elem)
|
(package private) void |
deleteInterface(Object elem)
|
(package private) void |
deleteMethod(Object elem)
|
(package private) void |
deleteModelElement(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. |
(package private) void |
deleteNamespace(Object elem)
A namespace deletes its owned elements. |
(package private) void |
deleteNode(Object elem)
|
(package private) void |
deleteOperation(Object elem)
|
(package private) void |
deleteParameter(Object elem)
|
(package private) void |
deletePermission(Object elem)
|
(package private) void |
deletePresentationElement(Object elem)
|
(package private) void |
deleteRelationship(Object elem)
|
(package private) void |
deleteStructuralFeature(Object elem)
|
(package private) void |
deleteTemplateParameter(Object elem)
|
(package private) void |
deleteUsage(Object elem)
|
void |
doCopyClass(Object source,
Object target)
Used by the copy functions. |
void |
doCopyClassifier(Object source,
Object target)
Used by the copy functions. |
void |
doCopyDataType(Object source,
Object target)
Used by the copy functions. |
private void |
doCopyElement(Object source,
Object target)
Used by the copy functions. |
void |
doCopyGeneralizableElement(Object source,
Object target)
Used by the copy functions. |
void |
doCopyInterface(Object source,
Object target)
Used by the copy functions. |
void |
doCopyModelElement(Object source,
Object target)
Used by the copy functions. |
void |
doCopyNamespace(Object source,
Object target)
Used by the copy functions. |
| Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory |
addListenersToModelElement, initialize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private NSUMLModelImplementation nsmodel
| Constructor Detail |
CoreFactoryImpl(NSUMLModelImplementation implementation)
implementation - To get other helpers and factories.| Method Detail |
Object createAbstraction()
public Object buildAbstraction(String name,
Object supplier,
Object client)
buildAbstraction in interface org.argouml.model.CoreFactoryname - The name.supplier - the supplier of the abstractionclient - the client of the abstraction
Object createAssociation()
Object createAssociationClass()
public Object createAssociationEnd()
createAssociationEnd in interface org.argouml.model.CoreFactorypublic Object createAttribute()
createAttribute in interface org.argouml.model.CoreFactorypublic Object createBinding()
createBinding in interface org.argouml.model.CoreFactorypublic Object createClass()
createClass in interface org.argouml.model.CoreFactorypublic Object createClassifier()
createClassifier in interface org.argouml.model.CoreFactorypublic Object createComment()
createComment in interface org.argouml.model.CoreFactorypublic Object createComponent()
createComponent in interface org.argouml.model.CoreFactorypublic Object createConstraint()
createConstraint in interface org.argouml.model.CoreFactorypublic Object createDataType()
createDataType in interface org.argouml.model.CoreFactoryObject createDependency()
public Object createElementResidence()
createElementResidence in interface org.argouml.model.CoreFactorypublic Object createFlow()
createFlow in interface org.argouml.model.CoreFactoryObject createGeneralization()
public Object createInterface()
createInterface in interface org.argouml.model.CoreFactorypublic Object createMethod()
createMethod in interface org.argouml.model.CoreFactorypublic Object createNamespace()
createNamespace in interface org.argouml.model.CoreFactorypublic Object createNode()
createNode in interface org.argouml.model.CoreFactorypublic Object createOperation()
createOperation in interface org.argouml.model.CoreFactorypublic Object createParameter()
createParameter in interface org.argouml.model.CoreFactorypublic Object createPermission()
createPermission in interface org.argouml.model.CoreFactorypublic Object createRelationship()
createRelationship in interface org.argouml.model.CoreFactorypublic Object createTemplateParameter()
createTemplateParameter in interface org.argouml.model.CoreFactorypublic Object createUsage()
createUsage in interface org.argouml.model.CoreFactory
private 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)
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
IllegalArgumentException - if either Classifier is null
public Object buildAssociation(Object fromClassifier,
Object aggregationKind1,
Object toClassifier,
Object aggregationKind2,
Boolean unidirectional)
buildAssociation in interface org.argouml.model.CoreFactoryfromClassifier - the first given classifieraggregationKind1 - the first aggregationkindtoClassifier - the second given classifieraggregationKind2 - the second aggregationkindunidirectional - true if unidirectional
public Object buildAssociation(Object classifier1,
Object classifier2)
buildAssociation in interface org.argouml.model.CoreFactoryclassifier1 - The first classifier to connectclassifier2 - The second classifier to connect
public Object buildAssociation(Object c1,
boolean nav1,
Object c2,
boolean nav2,
String name)
buildAssociation in interface org.argouml.model.CoreFactoryc1 - 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 - the given name
public Object buildAssociationClass(Object end1,
Object end2)
buildAssociationClass in interface org.argouml.model.CoreFactoryend1 - the first given classifierend2 - the second given classifier
public Object buildAssociationEnd(Object assoc,
String name,
Object type,
Object multi,
Object stereo,
boolean navigable,
Object order,
Object aggregation,
Object scope,
Object changeable,
Object visibility)
buildAssociationEnd in interface org.argouml.model.CoreFactoryassoc - 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 - the aggregationkindscope - the scope kindchangeable - the changeablekindvisibility - the visibilitykind
public Object buildAssociationEnd(Object type,
Object assoc)
buildAssociationEnd in interface org.argouml.model.CoreFactorytype - the given classifierassoc - the given association
private ru.novosoft.uml.foundation.core.MAssociationClass buildAssociationClass(ru.novosoft.uml.foundation.core.MClass cl,
ru.novosoft.uml.foundation.core.MClassifier end1,
ru.novosoft.uml.foundation.core.MClassifier end2)
cl - the classend1 - the first classifierend2 - the second classifier
public Object buildAttribute(Object model,
Object theIntType)
buildAttribute in interface org.argouml.model.CoreFactoryCoreFactory.buildAttribute(java.lang.Object,
java.lang.Object)
public Object buildAttribute(Object handle,
Object model,
Object intType,
Collection propertyChangeListeners)
buildAttribute in interface org.argouml.model.CoreFactoryCoreFactory.buildAttribute(java.lang.Object,
java.lang.Object, java.lang.Object, java.util.Collection)public Object buildClass()
buildClass in interface org.argouml.model.CoreFactorypublic Object buildClass(Object owner)
buildClass in interface org.argouml.model.CoreFactoryowner - the namespace
buildClass()public Object buildClass(String name)
buildClass in interface org.argouml.model.CoreFactoryname - the given name
buildClass()
public Object buildClass(String name,
Object owner)
buildClass in interface org.argouml.model.CoreFactoryname - the given nameowner - the namespace
buildClass()public Object buildInterface()
buildInterface in interface org.argouml.model.CoreFactorypublic Object buildInterface(Object owner)
buildInterface in interface org.argouml.model.CoreFactoryowner - is the owner
buildInterface()public Object buildInterface(String name)
buildInterface in interface org.argouml.model.CoreFactoryname - is the given name.
buildInterface()
public Object buildInterface(String name,
Object owner)
buildInterface in interface org.argouml.model.CoreFactoryname - is the given nameowner - is the namespace
buildInterface()
public Object buildDataType(String name,
Object owner)
buildDataType in interface org.argouml.model.CoreFactoryname - is the nameowner - is the namespace
public Object buildDependency(Object clientObj,
Object supplierObj)
buildDependency in interface org.argouml.model.CoreFactoryclientObj - is the clientsupplierObj - is the supplier
public Object buildPermission(Object clientObj,
Object supplierObj)
buildPermission in interface org.argouml.model.CoreFactoryclientObj - is the clientsupplierObj - is the supplier
public Object buildGeneralization(Object child,
Object parent,
String name)
buildGeneralization in interface org.argouml.model.CoreFactorychild - is the childparent - is the parentname - is the given name
public Object buildGeneralization(Object child1,
Object parent1)
buildGeneralization in interface org.argouml.model.CoreFactorychild1 - is the childparent1 - is the parent
public Object buildMethod(String name)
buildMethod in interface org.argouml.model.CoreFactoryname - is the given name
public Object buildOperation(Object classifier,
Object model,
Object voidType,
Collection propertyChangeListeners)
buildOperation in interface org.argouml.model.CoreFactoryclassifier - is the given classifiermodel - is the model to which the class belongsvoidType - the type of the return parameterpropertyChangeListeners - the listeners
public Object buildOperation(Object cls,
Object model,
Object voidType,
String name,
Collection propertyChangeListeners)
buildOperation in interface org.argouml.model.CoreFactorycls - is the classifier that shall own the operationmodel - is the model that contains the classvoidType - the type of the return parametername - the given name for the operationpropertyChangeListeners - the listeners
private Object buildParameter(ru.novosoft.uml.model_management.MModel model,
ru.novosoft.uml.foundation.core.MClassifier voidType)
public Object buildParameter(Object o,
Object model,
Object voidType,
Collection propertyChangeListeners)
buildParameter in interface org.argouml.model.CoreFactoryo - an event or behavioral featuremodel - the model to which the event or behavioral feature belongsvoidType - the type of the return parameterpropertyChangeListeners - the listeners
public Object buildRealization(Object clnt,
Object spplr,
Object model)
buildRealization in interface org.argouml.model.CoreFactoryclnt - is the clientspplr - is the suppliermodel - the namespace to use if client and
supplier are of different namespace
public Object buildUsage(Object client,
Object supplier)
IllegalArgumentException is thrown.
buildUsage in interface org.argouml.model.CoreFactoryclient - is the clientsupplier - is the supplier
public Object buildComment(Object element,
Object model)
buildComment in interface org.argouml.model.CoreFactoryelement - is the model elementmodel - the namespace for the comment
public Object buildConstraint(Object constrElement)
buildConstraint in interface org.argouml.model.CoreFactoryconstrElement - The constrained element.
public Object buildConstraint(String name,
Object bexpr)
buildConstraint in interface org.argouml.model.CoreFactoryname - is the given namebexpr - boolean expression
void deleteAbstraction(Object elem)
elem - the abstraction to be deletedvoid deleteAssociation(Object elem)
elem - the association to be deletedvoid deleteAssociationClass(Object elem)
elem - the a. to be deletedvoid deleteAssociationEnd(Object elem)
In the case of an associationend these are the following elements:
elem - UmlFactoryImpl.delete(Object)void deleteAttribute(Object elem)
elem - the attribute to be deletedvoid deleteBehavioralFeature(Object elem)
elem - the element to be deletedvoid deleteBinding(Object elem)
elem - the element to be deletedvoid deleteClass(Object elem)
elem - the element to be deletedvoid deleteClassifier(Object elem)
In the case of a classifier these are the following elements:
elem - UmlFactoryImpl.delete(Object)void deleteComment(Object elem)
elem - the element to be deletedvoid deleteComponent(Object elem)
elem - the element to be deletedvoid deleteConstraint(Object elem)
elem - the element to be deletedvoid deleteDataType(Object elem)
elem - the element to be deletedvoid deleteDependency(Object elem)
elem - the element to be deletedvoid deleteElement(Object elem)
elem - the element to be deletedvoid deleteElementResidence(Object elem)
elem - the element to be deletedvoid deleteFeature(Object elem)
elem - the element to be deletedvoid deleteFlow(Object elem)
elem - the element to be deletedvoid deleteGeneralizableElement(Object elem)
elem - the element to be deletedvoid deleteGeneralization(Object elem)
elem - the element to be deletedvoid deleteInterface(Object elem)
elem - the element to be deletedvoid deleteMethod(Object elem)
elem - the element to be deletedvoid deleteModelElement(Object elem)
In the case of a modelelement these are the following elements:
elem - UmlFactoryImpl.delete(Object)void deleteNamespace(Object elem)
elem - is the namespace.void deleteNode(Object elem)
elem - the element to be deletedvoid deleteOperation(Object elem)
elem - the element to be deletedvoid deleteParameter(Object elem)
elem - the element to be deletedvoid deletePermission(Object elem)
elem - the element to be deletedvoid deletePresentationElement(Object elem)
elem - the element to be deletedvoid deleteRelationship(Object elem)
elem - the element to be deletedvoid deleteStructuralFeature(Object elem)
elem - the element to be deletedvoid deleteTemplateParameter(Object elem)
elem - the element to be deletedvoid deleteUsage(Object elem)
elem - the element to be deleted
public Object copyClass(Object source,
Object ns)
copyClass in interface org.argouml.model.CoreFactorysource - is the class to copy.ns - is the namespace to put the copy in.
public Object copyDataType(Object source,
Object ns)
copyDataType in interface org.argouml.model.CoreFactorysource - is the datatype to copy.ns - is the namespace to put the copy in.
public Object copyInterface(Object source,
Object ns)
copyInterface in interface org.argouml.model.CoreFactorysource - is the interface to copy.ns - is the namespace to put the copy in.
private void doCopyElement(Object source,
Object target)
public void doCopyClass(Object source,
Object target)
doCopyClass in interface org.argouml.model.CoreFactorysource - the source classtarget - the target class
public void doCopyClassifier(Object source,
Object target)
doCopyClassifier in interface org.argouml.model.CoreFactorysource - the source classifiertarget - the target classifier
public void doCopyDataType(Object source,
Object target)
doCopyDataType in interface org.argouml.model.CoreFactorysource - the source datatypetarget - the target datatype
public void doCopyGeneralizableElement(Object source,
Object target)
doCopyGeneralizableElement in interface org.argouml.model.CoreFactorysource - the source generalizable elementtarget - the target generalizable element
public void doCopyInterface(Object source,
Object target)
doCopyInterface in interface org.argouml.model.CoreFactorysource - the source interfacetarget - the target interface
public void doCopyModelElement(Object source,
Object target)
doCopyModelElement in interface org.argouml.model.CoreFactorysource - the source metarget - the target me
public void doCopyNamespace(Object source,
Object target)
doCopyNamespace in interface org.argouml.model.CoreFactorysource - the source namespacetarget - the target namespace
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |