org.argouml.model
Interface CoreFactory

All Superinterfaces:
Factory

public interface CoreFactory
extends Factory

The interface to the factory for the Core.


Method Summary
 Object buildAbstraction(String name, Object supplier, Object client)
          Build an empty but initialized instance of a UML Abstraction with a given name.
 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.
 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 type)
          Builds a default attribute.
 Object buildAttribute(Object handle, Object model, Object type)
          Builds an attribute owned by some classifier cls.
 Object buildAttribute(Object handle, Object model, Object type, Collection propertyChangeListeners)
          Deprecated. for 0.21.2 by tfmorris - use non-listener version
 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 buildEnumeration(String name, Object owner)
           
 Object buildEnumerationLiteral(String name, Object enumeration)
           
 Object buildGeneralization(Object child, Object parent)
          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 returnType)
          Builds an operation for a classifier.
 Object buildOperation(Object classifier, Object model, Object returnType, Collection propertyChangeListeners)
          Deprecated. for 0.21.2 by tfmorris - use non-listener version
 Object buildOperation(Object cls, Object model, Object returnType, String name)
          Builds an operation with a given name for classifier.
 Object buildOperation(Object cls, Object model, Object returnType, String name, Collection propertyChangeListeners)
          Deprecated. for 0.21.2 by tfmorris - use non-listener version
 Object buildParameter(Object o, Object model, Object type)
          Adds a parameter initialized to default values to a given event or behavioral feature.
 Object buildParameter(Object o, Object model, Object type, Collection propertyChangeListeners)
          Deprecated. for 0.21.2 by tfmorris - use non-listener version
 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.
 Object createAbstraction()
          Create an empty but initialized instance of a UML Abstraction.
 Object createArtifact()
          Create an empty but initialized instance of an Artifact
 Object createAssociation()
          Create an empty but initialized instance of a UML Association.
 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 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.
 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 createEnumeration()
          Create an Enumeration.
 Object createEnumerationLiteral()
          Create an EnumerationLiteral.
 Object createFlow()
          Create an empty but initialized instance of a UML Flow.
 Object createGeneralization()
          Additional support for 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 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 createPrimitive()
          Create a UML Primitive.
 Object createProgrammingLanguageDataType()
          Create a UML ProgrammingLanguageDataType.
 Object createTemplateArgument()
          Create a UML TemplateArgument.
 Object createTemplateParameter()
          Create an empty but initialized instance of a UML TemplateParameter.
 Object createUsage()
          Create an empty but initialized instance of a UML Usage.
 

Method Detail

createAbstraction

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

Returns:
an initialized UML Abstraction instance.

buildAbstraction

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

Parameters:
name - The name.
supplier - the supplier of the abstraction
client - the client of the abstraction
Returns:
an initialized UML Abstraction instance.

createArtifact

public Object createArtifact()
Create an empty but initialized instance of an Artifact

Returns:
an initialized Artifact instance.
Since:
UML 1.4

createAssociation

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

Returns:
an initialized UML Association instance.

createAssociationClass

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

Returns:
an initialized UML AssociationClass instance.

createAssociationEnd

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

Returns:
an initialized UML AssociationEnd instance.

createAttribute

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

Returns:
an initialized UML Attribute instance.

createBinding

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

Returns:
an initialized UML Binding instance.

createClass

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

Returns:
an initialized UML Class instance.

createComment

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

Returns:
an initialized UML Comment instance.

createComponent

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

Returns:
an initialized UML Component instance.

createConstraint

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

Returns:
an initialized UML Constraint instance.

createDataType

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

Returns:
an initialized UML DataType instance.

createDependency

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

Returns:
an initialized UML Dependency instance.

createElementResidence

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

Returns:
an initialized UML ElementResidence instance.

createEnumeration

public Object createEnumeration()
Create an Enumeration.

Returns:
Object new Enumeration
Since:
UML 1.4

createEnumerationLiteral

public Object createEnumerationLiteral()
Create an EnumerationLiteral.

Returns:
Object new Enumeration
Since:
UML 1.4

createFlow

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

Returns:
an initialized UML Flow instance.

createInterface

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

Returns:
an initialized UML Interface instance.

createMethod

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

Returns:
an initialized UML Method instance.

createNode

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

Returns:
an initialized UML Node instance.

createOperation

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

Returns:
an initialized UML Operation instance.

createParameter

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

Returns:
an initialized UML Parameter instance.

createPermission

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

Returns:
an initialized UML Permission instance.

createPrimitive

public Object createPrimitive()
Create a UML Primitive.

Returns:
an initialized UML Primitive instance.
Since:
UML 1.4

createProgrammingLanguageDataType

public Object createProgrammingLanguageDataType()
Create a UML ProgrammingLanguageDataType.

Returns:
an initialized ProgrammingLanguageDataType
Since:
UML 1.4

createTemplateArgument

public Object createTemplateArgument()
Create a UML TemplateArgument.

Returns:
an initialized TemplateArgument instance.
Since:
UML 1.4

createTemplateParameter

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

Returns:
an initialized UML TemplateParameter instance.

createUsage

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

Returns:
an initialized UML Usage instance.

buildAssociation

public Object buildAssociation(Object fromClassifier,
                               Object aggregationKind1,
                               Object toClassifier,
                               Object aggregationKind2,
                               Boolean unidirectional)
Builds a binary associationrole on basis of two classifierroles, navigation and aggregation.

Parameters:
fromClassifier - the first given classifier
aggregationKind1 - the first aggregationkind
toClassifier - the second given classifier
aggregationKind2 - the second aggregationkind
unidirectional - true if unidirectional
Returns:
the newly build binary associationrole

buildAssociation

public Object buildAssociation(Object classifier1,
                               Object classifier2)
Builds a binary associations between two classifiers with default values for the association ends and the association itself.

Parameters:
classifier1 - The first classifier to connect
classifier2 - The second classifier to connect
Returns:
MAssociation

buildAssociation

public Object buildAssociation(Object c1,
                               boolean nav1,
                               Object c2,
                               boolean nav2,
                               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 - the given name
Returns:
association

buildAssociationClass

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

Parameters:
end1 - the first given classifier
end2 - the second given classifier
Returns:
MAssociationClass

buildAssociationEnd

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)
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 - the aggregationkind
scope - the scope kind
changeable - the changeablekind
visibility - the visibilitykind
Returns:
MAssociationEnd

buildAssociationEnd

public Object buildAssociationEnd(Object type,
                                  Object assoc)
Builds a simply configured association end.

Parameters:
type - the given classifier
assoc - the given association
Returns:
the newly build associationend

buildAttribute

public Object buildAttribute(Object model,
                             Object type)
Builds a default attribute.

Parameters:
model - The model the attribute belongs to.
type - The type of the attribute.
Returns:
The newly built attribute.

buildAttribute

public Object buildAttribute(Object handle,
                             Object model,
                             Object type)
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.

Parameters:
handle - the given classifier
model - the enclosing model
type - the type
Returns:
the newly build attribute

buildAttribute

public Object buildAttribute(Object handle,
                             Object model,
                             Object type,
                             Collection propertyChangeListeners)
Deprecated. for 0.21.2 by tfmorris - use non-listener version

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.

Parameters:
handle - the given classifier
model - the enclosing model
type - the type
propertyChangeListeners - the listeners
Returns:
the newly build attribute

buildClass

public Object 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 Object buildClass(Object owner)
Builds a class with a given namespace.

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

buildClass

public Object buildClass(String name)
Builds a class with a given name.

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

buildClass

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

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

buildInterface

public 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 Object buildInterface(Object owner)
Builds an interface with a given namespace.

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

buildInterface

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

Parameters:
name - is the given name.
Returns:
MInterface
See Also:
buildInterface()

buildInterface

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

Parameters:
name - is the given name
owner - is the namespace
Returns:
MInterface
See Also:
buildInterface()

buildDataType

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

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

buildEnumeration

public Object buildEnumeration(String name,
                               Object owner)
Parameters:
name - is the name
owner - is the namespace
Returns:
an initialized UML Enumeration instance
Since:
UML 1.4

buildEnumerationLiteral

public Object buildEnumerationLiteral(String name,
                                      Object enumeration)
Parameters:
name - is the name
enumeration - is the enumeration of the literal
Returns:
an initialized UML EnumerationLiteral instance
Since:
UML 1.4

buildDependency

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

Parameters:
clientObj - is the client
supplierObj - is the supplier
Returns:
MDependency

buildPermission

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

Parameters:
clientObj - is the client
supplierObj - is the supplier
Returns:
MPermission

buildGeneralization

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

Parameters:
child - is the child
parent - is the parent
name - is the given name
Returns:
generalization

buildGeneralization

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

Parameters:
child - is the child
parent - is the parent
Returns:
MGeneralization

buildMethod

public Object buildMethod(String name)
Builds a method with a given name.

Parameters:
name - is the given name
Returns:
method

buildOperation

public Object buildOperation(Object classifier,
                             Object model,
                             Object returnType,
                             Collection propertyChangeListeners)
Deprecated. for 0.21.2 by tfmorris - use non-listener version

Builds an operation for a classifier.

Parameters:
classifier - is the given classifier
model - is the model to which the class belongs
returnType - the type of the return parameter
propertyChangeListeners - the listeners
Returns:
the operation

buildOperation

public Object buildOperation(Object classifier,
                             Object model,
                             Object returnType)
Builds an operation for a classifier.

Parameters:
classifier - is the given classifier
model - is the model to which the class belongs
returnType - the type of the return parameter
Returns:
the operation

buildOperation

public Object buildOperation(Object cls,
                             Object model,
                             Object returnType,
                             String name,
                             Collection propertyChangeListeners)
Deprecated. for 0.21.2 by tfmorris - use non-listener version

Builds an operation with a given name for classifier.

Parameters:
cls - is the classifier that shall own the operation
model - is the model that contains the class
returnType - the type of the return parameter
name - the given name for the operation
propertyChangeListeners - the listeners
Returns:
the operation

buildOperation

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

Parameters:
cls - is the classifier that shall own the operation
model - is the model that contains the class
returnType - the type of the return parameter
name - the given name for the operation
Returns:
the operation

buildParameter

public Object buildParameter(Object o,
                             Object model,
                             Object type,
                             Collection propertyChangeListeners)
Deprecated. for 0.21.2 by tfmorris - use non-listener version

Adds a parameter initialized to default values to a given event or behavioral feature.

Parameters:
o - an event or behavioral feature
model - the model to which the event or behavioral feature belongs
type - the type of the parameter
propertyChangeListeners - the listeners
Returns:
the parameter

buildParameter

public Object buildParameter(Object o,
                             Object model,
                             Object type)
Adds a parameter initialized to default values to a given event or behavioral feature.

Parameters:
o - an event or behavioral feature
model - the model to which the event or behavioral feature belongs
type - the type of the parameter
Returns:
the parameter

buildRealization

public 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.

Parameters:
clnt - is the client
spplr - is the supplier
model - the namespace to use if client and supplier are of different namespace
Returns:
Object the created abstraction

buildUsage

public Object buildUsage(Object client,
                         Object 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 - is the client
supplier - is the supplier
Returns:
MUsage

buildComment

public Object buildComment(Object element,
                           Object model)
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:
element - is the model element
model - the namespace for the comment
Returns:
MComment

buildConstraint

public Object buildConstraint(Object constrElement)
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:
constrElement - The constrained element.
Returns:
MConstraint

buildConstraint

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

Parameters:
name - is the given name
bexpr - boolean expression
Returns:
constraint

copyClass

public Object copyClass(Object source,
                        Object 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.
Returns:
a newly created class.

copyDataType

public Object copyDataType(Object source,
                           Object 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.
Returns:
a newly created data type.

copyInterface

public Object copyInterface(Object source,
                            Object 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.
Returns:
a newly created interface.

createGeneralization

public Object createGeneralization()
Additional support for generalization.

Returns:
A generalization.


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook