org.eclipse.ocl.uml.internal
Class OCLFactoryImpl

java.lang.Object
  extended by org.eclipse.ocl.uml.internal.OCLFactoryImpl
All Implemented Interfaces:
OCLFactory

public class OCLFactoryImpl
extends java.lang.Object
implements OCLFactory

Implementation of the OCLFactory API for the UML binding.

Author:
Christian W. Damus (cdamus)

Field Summary
static OCLFactory INSTANCE
           
 
Method Summary
<C,P> AssociationClassCallExp<C,P>
createAssociationClassCallExp()
          Returns a new object of class 'Association Class Call Exp'.
<C,O> BagType<C,O>
createBagType(C elementType)
          Returns a new object of class 'Bag Type'.
<C> BooleanLiteralExp<C>
createBooleanLiteralExp()
          Returns a new object of class 'Boolean Literal Exp'.
<C> CollectionItem<C>
createCollectionItem()
          Returns a new object of class 'Collection Item'.
<C> CollectionLiteralExp<C>
createCollectionLiteralExp()
          Returns a new object of class 'Collection Literal Exp'.
<C> CollectionRange<C>
createCollectionRange()
          Returns a new object of class 'Collection Range'.
<C,O> CollectionType<C,O>
createCollectionType(C elementType)
          Returns a new object of class 'Collection Type'.
<C,O> CollectionType<C,O>
createCollectionType(CollectionKind kind, C elementType)
          Returns a new object of class 'Collection Type'.
<C,EL> EnumLiteralExp<C,EL>
createEnumLiteralExp()
          Returns a new object of class 'Enum Literal Exp'.
<C> IfExp<C>
createIfExp()
          Returns a new object of class 'If Exp'.
<C> IntegerLiteralExp<C>
createIntegerLiteralExp()
          Returns a new object of class 'Integer Literal Exp'.
<C> InvalidLiteralExp<C>
createInvalidLiteralExp()
          Returns a new object of class 'Invalid Literal Exp'.
<C,PM> IterateExp<C,PM>
createIterateExp()
          Returns a new object of class 'Iterate Exp'.
<C,PM> IteratorExp<C,PM>
createIteratorExp()
          Returns a new object of class 'Iterator Exp'.
<C,PM> LetExp<C,PM>
createLetExp()
          Returns a new object of class 'Let Exp'.
<C,COA,SSA>
MessageExp<C,COA,SSA>
createMessageExp()
          Returns a new object of class 'Message Exp'.
<C> NullLiteralExp<C>
createNullLiteralExp()
          Returns a new object of class 'Null Literal Exp'.
<C,O> OperationCallExp<C,O>
createOperationCallExp()
          Returns a new object of class 'Operation Call Exp'.
<C,O,P> MessageType<C,O,P>
createOperationMessageType(O operation)
          Creates the type for the messages representing invocation of the specified operation.
<C,O> OrderedSetType<C,O>
createOrderedSetType(C elementType)
          Returns a new object of class 'Ordered Set Type'.
<C,P> PropertyCallExp<C,P>
createPropertyCallExp()
          Returns a new object of class 'Property Call Exp'.
<C> RealLiteralExp<C>
createRealLiteralExp()
          Returns a new object of class 'Real Literal Exp'.
<C,O> SequenceType<C,O>
createSequenceType(C elementType)
          Returns a new object of class 'Sequence Type'.
<C,O> SetType<C,O>
createSetType(C elementType)
          Returns a new object of class 'Set Type'.
<C,O,P> MessageType<C,O,P>
createSignalMessageType(C signal)
          Creates the type for the messages representing invocation of the specified signal.
<C,S> StateExp<C,S>
createStateExp()
          Returns a new object of class 'State Exp'.
<C> StringLiteralExp<C>
createStringLiteralExp()
          Returns a new object of class 'String Literal Exp'.
<C,P> TupleLiteralExp<C,P>
createTupleLiteralExp()
          Returns a new object of class 'Tuple Literal Exp'.
<C,P> TupleLiteralPart<C,P>
createTupleLiteralPart()
          Returns a new object of class 'Tuple Literal Part'.
<C,O,P> TupleType<O,P>
createTupleType(java.util.List<? extends TypedElement<C>> parts)
          Creates a tuple type based on tthe specified part descriptions.
<C> TypeExp<C>
createTypeExp()
          Returns a new object of class 'Type Exp'.
<C,O> TypeType<C,O>
createTypeType(C type)
          Returns a new object of class 'Type Type'.
<C> UnlimitedNaturalLiteralExp<C>
createUnlimitedNaturalLiteralExp()
          Returns a new object of class 'Unlimited Natural Literal Exp'.
<C> UnspecifiedValueExp<C>
createUnspecifiedValueExp()
          Returns a new object of class 'Unspecified Value Exp'.
<C,PM> Variable<C,PM>
createVariable()
          Returns a new object of class 'Variable'.
<C,PM> VariableExp<C,PM>
createVariableExp()
          Returns a new object of class 'Variable Exp'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static OCLFactory INSTANCE
Method Detail

createBagType

public <C,O> BagType<C,O> createBagType(C elementType)
Description copied from interface: OCLFactory
Returns a new object of class 'Bag Type'.

Specified by:
createBagType in interface OCLFactory
Returns:
a new object of class 'Bag Type'.

createOrderedSetType

public <C,O> OrderedSetType<C,O> createOrderedSetType(C elementType)
Description copied from interface: OCLFactory
Returns a new object of class 'Ordered Set Type'.

Specified by:
createOrderedSetType in interface OCLFactory
Returns:
a new object of class 'Ordered Set Type'.

createSequenceType

public <C,O> SequenceType<C,O> createSequenceType(C elementType)
Description copied from interface: OCLFactory
Returns a new object of class 'Sequence Type'.

Specified by:
createSequenceType in interface OCLFactory
Returns:
a new object of class 'Sequence Type'.

createSetType

public <C,O> SetType<C,O> createSetType(C elementType)
Description copied from interface: OCLFactory
Returns a new object of class 'Set Type'.

Specified by:
createSetType in interface OCLFactory
Returns:
a new object of class 'Set Type'.

createCollectionType

public <C,O> CollectionType<C,O> createCollectionType(C elementType)
Description copied from interface: OCLFactory
Returns a new object of class 'Collection Type'.

Specified by:
createCollectionType in interface OCLFactory
Returns:
a new object of class 'Collection Type'.

createCollectionType

public <C,O> CollectionType<C,O> createCollectionType(CollectionKind kind,
                                                      C elementType)
Description copied from interface: OCLFactory
Returns a new object of class 'Collection Type'.

Specified by:
createCollectionType in interface OCLFactory
Returns:
a new object of class 'Collection Type'.

createOperationMessageType

public <C,O,P> MessageType<C,O,P> createOperationMessageType(O operation)
Description copied from interface: OCLFactory
Creates the type for the messages representing invocation of the specified operation.

Specified by:
createOperationMessageType in interface OCLFactory
Parameters:
operation - a called operation
Returns:
the message type

createSignalMessageType

public <C,O,P> MessageType<C,O,P> createSignalMessageType(C signal)
Description copied from interface: OCLFactory
Creates the type for the messages representing invocation of the specified signal.

Specified by:
createSignalMessageType in interface OCLFactory
Parameters:
signal - either a sent signal
Returns:
the message type

createTupleType

public <C,O,P> TupleType<O,P> createTupleType(java.util.List<? extends TypedElement<C>> parts)
Description copied from interface: OCLFactory
Creates a tuple type based on tthe specified part descriptions.

Specified by:
createTupleType in interface OCLFactory
Parameters:
parts - a list of TypedElements describing the tuple parts
Returns:
the new tuple type

createTypeType

public <C,O> TypeType<C,O> createTypeType(C type)
Description copied from interface: OCLFactory
Returns a new object of class 'Type Type'.

Specified by:
createTypeType in interface OCLFactory
Returns:
a new object of class 'Type Type'.

createAssociationClassCallExp

public <C,P> AssociationClassCallExp<C,P> createAssociationClassCallExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Association Class Call Exp'.

Specified by:
createAssociationClassCallExp in interface OCLFactory
Returns:
a new object of class 'Association Class Call Exp'.

createBooleanLiteralExp

public <C> BooleanLiteralExp<C> createBooleanLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Boolean Literal Exp'.

Specified by:
createBooleanLiteralExp in interface OCLFactory
Returns:
a new object of class 'Boolean Literal Exp'.

createCollectionItem

public <C> CollectionItem<C> createCollectionItem()
Description copied from interface: OCLFactory
Returns a new object of class 'Collection Item'.

Specified by:
createCollectionItem in interface OCLFactory
Returns:
a new object of class 'Collection Item'.

createCollectionLiteralExp

public <C> CollectionLiteralExp<C> createCollectionLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Collection Literal Exp'.

Specified by:
createCollectionLiteralExp in interface OCLFactory
Returns:
a new object of class 'Collection Literal Exp'.

createCollectionRange

public <C> CollectionRange<C> createCollectionRange()
Description copied from interface: OCLFactory
Returns a new object of class 'Collection Range'.

Specified by:
createCollectionRange in interface OCLFactory
Returns:
a new object of class 'Collection Range'.

createEnumLiteralExp

public <C,EL> EnumLiteralExp<C,EL> createEnumLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Enum Literal Exp'.

Specified by:
createEnumLiteralExp in interface OCLFactory
Returns:
a new object of class 'Enum Literal Exp'.

createIfExp

public <C> IfExp<C> createIfExp()
Description copied from interface: OCLFactory
Returns a new object of class 'If Exp'.

Specified by:
createIfExp in interface OCLFactory
Returns:
a new object of class 'If Exp'.

createIntegerLiteralExp

public <C> IntegerLiteralExp<C> createIntegerLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Integer Literal Exp'.

Specified by:
createIntegerLiteralExp in interface OCLFactory
Returns:
a new object of class 'Integer Literal Exp'.

createInvalidLiteralExp

public <C> InvalidLiteralExp<C> createInvalidLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Invalid Literal Exp'.

Specified by:
createInvalidLiteralExp in interface OCLFactory
Returns:
a new object of class 'Invalid Literal Exp'.

createIterateExp

public <C,PM> IterateExp<C,PM> createIterateExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Iterate Exp'.

Specified by:
createIterateExp in interface OCLFactory
Returns:
a new object of class 'Iterate Exp'.

createIteratorExp

public <C,PM> IteratorExp<C,PM> createIteratorExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Iterator Exp'.

Specified by:
createIteratorExp in interface OCLFactory
Returns:
a new object of class 'Iterator Exp'.

createLetExp

public <C,PM> LetExp<C,PM> createLetExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Let Exp'.

Specified by:
createLetExp in interface OCLFactory
Returns:
a new object of class 'Let Exp'.

createMessageExp

public <C,COA,SSA> MessageExp<C,COA,SSA> createMessageExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Message Exp'.

Specified by:
createMessageExp in interface OCLFactory
Returns:
a new object of class 'Message Exp'.

createNullLiteralExp

public <C> NullLiteralExp<C> createNullLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Null Literal Exp'.

Specified by:
createNullLiteralExp in interface OCLFactory
Returns:
a new object of class 'Null Literal Exp'.

createOperationCallExp

public <C,O> OperationCallExp<C,O> createOperationCallExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Operation Call Exp'.

Specified by:
createOperationCallExp in interface OCLFactory
Returns:
a new object of class 'Operation Call Exp'.

createPropertyCallExp

public <C,P> PropertyCallExp<C,P> createPropertyCallExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Property Call Exp'.

Specified by:
createPropertyCallExp in interface OCLFactory
Returns:
a new object of class 'Property Call Exp'.

createRealLiteralExp

public <C> RealLiteralExp<C> createRealLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Real Literal Exp'.

Specified by:
createRealLiteralExp in interface OCLFactory
Returns:
a new object of class 'Real Literal Exp'.

createStateExp

public <C,S> StateExp<C,S> createStateExp()
Description copied from interface: OCLFactory
Returns a new object of class 'State Exp'.

Specified by:
createStateExp in interface OCLFactory
Returns:
a new object of class 'State Exp'.

createStringLiteralExp

public <C> StringLiteralExp<C> createStringLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'String Literal Exp'.

Specified by:
createStringLiteralExp in interface OCLFactory
Returns:
a new object of class 'String Literal Exp'.

createTupleLiteralExp

public <C,P> TupleLiteralExp<C,P> createTupleLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Tuple Literal Exp'.

Specified by:
createTupleLiteralExp in interface OCLFactory
Returns:
a new object of class 'Tuple Literal Exp'.

createTupleLiteralPart

public <C,P> TupleLiteralPart<C,P> createTupleLiteralPart()
Description copied from interface: OCLFactory
Returns a new object of class 'Tuple Literal Part'.

Specified by:
createTupleLiteralPart in interface OCLFactory
Returns:
a new object of class 'Tuple Literal Part'.

createTypeExp

public <C> TypeExp<C> createTypeExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Type Exp'.

Specified by:
createTypeExp in interface OCLFactory
Returns:
a new object of class 'Type Exp'.

createUnlimitedNaturalLiteralExp

public <C> UnlimitedNaturalLiteralExp<C> createUnlimitedNaturalLiteralExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Unlimited Natural Literal Exp'.

Specified by:
createUnlimitedNaturalLiteralExp in interface OCLFactory
Returns:
a new object of class 'Unlimited Natural Literal Exp'.

createUnspecifiedValueExp

public <C> UnspecifiedValueExp<C> createUnspecifiedValueExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Unspecified Value Exp'.

Specified by:
createUnspecifiedValueExp in interface OCLFactory
Returns:
a new object of class 'Unspecified Value Exp'.

createVariable

public <C,PM> Variable<C,PM> createVariable()
Description copied from interface: OCLFactory
Returns a new object of class 'Variable'.

Specified by:
createVariable in interface OCLFactory
Returns:
a new object of class 'Variable'.

createVariableExp

public <C,PM> VariableExp<C,PM> createVariableExp()
Description copied from interface: OCLFactory
Returns a new object of class 'Variable Exp'.

Specified by:
createVariableExp in interface OCLFactory
Returns:
a new object of class 'Variable Exp'.