org.eclipse.ocl.examples.pivot.utilities
Class OCLFactoryImpl

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.utilities.OCLFactoryImpl
All Implemented Interfaces:
OCLFactory

public class OCLFactoryImpl
extends java.lang.Object
implements OCLFactory

Implementation of the OCLFactory API for the Ecore binding.

Author:
Christian W. Damus (cdamus)

Field Summary
static OCLFactory INSTANCE
           
 
Method Summary
 AssociationClassCallExp createAssociationClassCallExp()
          Returns a new object of class 'Association Class Call Exp'.
 BagType createBagType(Type elementType)
          Returns a new object of class 'Bag Type'.
 BooleanLiteralExp createBooleanLiteralExp()
          Returns a new object of class 'Boolean Literal Exp'.
 CollectionItem createCollectionItem()
          Returns a new object of class 'Collection Item'.
 CollectionLiteralExp createCollectionLiteralExp()
          Returns a new object of class 'Collection Literal Exp'.
 CollectionRange createCollectionRange()
          Returns a new object of class 'Collection Range'.
 CollectionType createCollectionType(CollectionKind kind, Type elementType)
          Returns a new object of class 'Collection Type'.
 CollectionType createCollectionType(Type elementType)
          Returns a new object of class 'Collection Type'.
 EnumLiteralExp createEnumLiteralExp()
          Returns a new object of class 'Enum Literal Exp'.
 IfExp createIfExp()
          Returns a new object of class 'If Exp'.
 IntegerLiteralExp createIntegerLiteralExp()
          Returns a new object of class 'Integer Literal Exp'.
 InvalidLiteralExp createInvalidLiteralExp()
          Returns a new object of class 'Invalid Literal Exp'.
 LetExp createLetExp()
          Returns a new object of class 'Let Exp'.
 MessageExp createMessageExp()
          Returns a new object of class 'Message Exp'.
 NullLiteralExp createNullLiteralExp()
          Returns a new object of class 'Null Literal Exp'.
 OperationCallExp createOperationCallExp()
          Returns a new object of class 'Operation Call Exp'.
 MessageType createOperationMessageType(Operation operation)
          Creates the type for the messages representing invocation of the specified operation.
 OrderedSetType createOrderedSetType(Type elementType)
          Returns a new object of class 'Ordered Set Type'.
 PropertyCallExp createPropertyCallExp()
          Returns a new object of class 'Property Call Exp'.
 RealLiteralExp createRealLiteralExp()
          Returns a new object of class 'Real Literal Exp'.
 SequenceType createSequenceType(Type elementType)
          Returns a new object of class 'Sequence Type'.
 SetType createSetType(Type elementType)
          Returns a new object of class 'Set Type'.
 MessageType createSignalMessageType(Signal signal)
          Creates the type for the messages representing invocation of the specified signal.
 StateExp createStateExp()
          Returns a new object of class 'State Exp'.
 StringLiteralExp createStringLiteralExp()
          Returns a new object of class 'String Literal Exp'.
 TupleLiteralExp createTupleLiteralExp()
          Returns a new object of class 'Tuple Literal Exp'.
 TupleLiteralPart createTupleLiteralPart()
          Returns a new object of class 'Tuple Literal Part'.
 TypeExp createTypeExp()
          Returns a new object of class 'Type Exp'.
 UnlimitedNaturalLiteralExp createUnlimitedNaturalLiteralExp()
          Returns a new object of class 'Unlimited Natural Literal Exp'.
 UnspecifiedValueExp createUnspecifiedValueExp()
          Returns a new object of class 'Unspecified Value Exp'.
 Variable createVariable()
          Returns a new object of class 'Variable'.
 VariableExp 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 BagType createBagType(Type 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 OrderedSetType createOrderedSetType(Type 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 SequenceType createSequenceType(Type 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 SetType createSetType(Type 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 CollectionType createCollectionType(Type 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 CollectionType createCollectionType(CollectionKind kind,
                                           Type 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 MessageType createOperationMessageType(Operation 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 MessageType createSignalMessageType(Signal 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

createAssociationClassCallExp

public AssociationClassCallExp 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 BooleanLiteralExp 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 CollectionItem 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 CollectionLiteralExp 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 CollectionRange 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 EnumLiteralExp 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 IfExp 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 IntegerLiteralExp 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 InvalidLiteralExp 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'.

createLetExp

public LetExp 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 MessageExp 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 NullLiteralExp 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 OperationCallExp 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 PropertyCallExp 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 RealLiteralExp 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 StateExp 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 StringLiteralExp 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 TupleLiteralExp 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 TupleLiteralPart 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 TypeExp 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 UnlimitedNaturalLiteralExp 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 UnspecifiedValueExp 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 Variable 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 VariableExp 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'.