org.argouml.model
Interface DataTypesFactory

All Superinterfaces:
Factory

public interface DataTypesFactory
extends Factory

The interface for the factory for DataTypes.


Method Summary
 java.lang.Object createActionExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML ActionExpression.
 java.lang.Object createArgListsExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML ArgListsExpression.
 java.lang.Object createBooleanExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML BooleanExpression.
 java.lang.Object createExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML Expression.
 java.lang.Object createIterationExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML IterationExpression.
 java.lang.Object createMappingExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML MappingExpression.
 java.lang.Object createMultiplicity(int lower, int upper)
          Create an initialized instance of a UML Multiplicity.
 java.lang.Object createMultiplicity(java.util.List range)
          Create an initialized instance of a UML Multiplicity.
 java.lang.Object createMultiplicity(java.lang.String str)
          Create an initialized instance of a UML Multiplicity.
 java.lang.Object createMultiplicityRange(int lower, int upper)
          Create a MultiplicityRange from a pair of integers.
 java.lang.Object createMultiplicityRange(java.lang.String str)
          Create a MultiplicityRange from a string.
 java.lang.Object createObjectSetExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML ObjectSetExpression.
 java.lang.Object createProcedureExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML ProcedureExpression.
 java.lang.Object createTimeExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML TimeExpression.
 java.lang.Object createTypeExpression(java.lang.String language, java.lang.String body)
          Create an initialized instance of a UML TypeExpression.
 

Method Detail

createActionExpression

java.lang.Object createActionExpression(java.lang.String language,
                                        java.lang.String body)
Create an initialized instance of a UML ActionExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML ActionExpression instance.

createArgListsExpression

java.lang.Object createArgListsExpression(java.lang.String language,
                                          java.lang.String body)
Create an initialized instance of a UML ArgListsExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML ArgListsExpression instance.

createBooleanExpression

java.lang.Object createBooleanExpression(java.lang.String language,
                                         java.lang.String body)
Create an initialized instance of a UML BooleanExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML BooleanExpression instance.

createExpression

java.lang.Object createExpression(java.lang.String language,
                                  java.lang.String body)
Create an initialized instance of a UML Expression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML Expression instance.

createIterationExpression

java.lang.Object createIterationExpression(java.lang.String language,
                                           java.lang.String body)
Create an initialized instance of a UML IterationExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML IterationExpression instance.

createMappingExpression

java.lang.Object createMappingExpression(java.lang.String language,
                                         java.lang.String body)
Create an initialized instance of a UML MappingExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML MappingExpression instance.

createObjectSetExpression

java.lang.Object createObjectSetExpression(java.lang.String language,
                                           java.lang.String body)
Create an initialized instance of a UML ObjectSetExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML ObjectSetExpression instance.

createProcedureExpression

java.lang.Object createProcedureExpression(java.lang.String language,
                                           java.lang.String body)
Create an initialized instance of a UML ProcedureExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML ProcedureExpression instance.

createTimeExpression

java.lang.Object createTimeExpression(java.lang.String language,
                                      java.lang.String body)
Create an initialized instance of a UML TimeExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML TimeExpression instance.

createTypeExpression

java.lang.Object createTypeExpression(java.lang.String language,
                                      java.lang.String body)
Create an initialized instance of a UML TypeExpression.

Parameters:
language - the language for the expression
body - the body for the expression
Returns:
an initialized UML TypeExpression instance.

createMultiplicity

java.lang.Object createMultiplicity(int lower,
                                    int upper)
Create an initialized instance of a UML Multiplicity. Quote from the standard: "In the metamodel a MultiplicityRange defines a range of integers. The upper bound of the range cannot be below the lower bound. The lower bound must be a nonnegative integer. The upper bound must be a nonnegative integer or the special value unlimited, which indicates there is no upper bound on the range."

Although the UML specification doesn't say so, the special value 'unlimited' is encoded as -1 by convention.

Parameters:
lower - the lower bound of the range
upper - the upper bound of the range. The integer value -1 represents the special UML value 'unlimited'
Returns:
an initialized UML Multiplicity instance.

createMultiplicity

java.lang.Object createMultiplicity(java.util.List range)
Create an initialized instance of a UML Multiplicity.

Parameters:
range - a List containing the range
Returns:
an initialized UML Multiplicity instance.

createMultiplicity

java.lang.Object createMultiplicity(java.lang.String str)
Create an initialized instance of a UML Multiplicity.

Parameters:
str - a String representing the multiplicity
Returns:
an initialized UML Multiplicity instance.

createMultiplicityRange

java.lang.Object createMultiplicityRange(java.lang.String str)
Create a MultiplicityRange from a string.

Parameters:
str - the string definition of the range. The string has the form lower..upper where lower and upper are non-negative integers are the asterisk character (*) representing "unlimited". The string "*" is equivalent to "0..*".
Returns:
MultiplicityRange A multiplicity range
Since:
UML 1.4

createMultiplicityRange

java.lang.Object createMultiplicityRange(int lower,
                                         int upper)
Create a MultiplicityRange from a pair of integers.

Parameters:
lower - the lower bound of the range
upper - the upper bound of the range
Returns:
MultiplictyRange A multiplicity range
Since:
UML 1.4


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook