org.eclipse.emf.ocl.expressions.impl
Class ExpressionsFactoryImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.ecore.impl.FlatEObjectImpl
                  extended byorg.eclipse.emf.ecore.impl.EModelElementImpl
                      extended byorg.eclipse.emf.ecore.impl.EFactoryImpl
                          extended byorg.eclipse.emf.ocl.expressions.impl.ExpressionsFactoryImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.EFactory, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, ExpressionsFactory, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.common.notify.Notifier

public class ExpressionsFactoryImpl
extends org.eclipse.emf.ecore.impl.EFactoryImpl
implements ExpressionsFactory

An implementation of the model Factory .


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
static java.lang.String copyright
           
 
Fields inherited from class org.eclipse.emf.ecore.impl.EFactoryImpl
EDATE_FORMATS, ePackage
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eProxyURI
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ocl.expressions.ExpressionsFactory
eINSTANCE
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
ExpressionsFactoryImpl()
          Creates an instance of the factory
 
Method Summary
 java.lang.String convertCollectionKindToString(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object instanceValue)
           
 java.lang.String convertToString(org.eclipse.emf.ecore.EDataType eDataType, java.lang.Object instanceValue)
           
 org.eclipse.emf.ecore.EObject create(org.eclipse.emf.ecore.EClass eClass)
           
 AssociationClassCallExp createAssociationClassCallExp()
           
 BooleanLiteralExp createBooleanLiteralExp()
           
 CollectionItem createCollectionItem()
           
 CollectionKind createCollectionKindFromString(org.eclipse.emf.ecore.EDataType eDataType, java.lang.String initialValue)
           
 CollectionLiteralExp createCollectionLiteralExp()
           
 CollectionLiteralPart createCollectionLiteralPart()
           
 CollectionRange createCollectionRange()
           
 EnumLiteralExp createEnumLiteralExp()
           
 java.lang.Object createFromString(org.eclipse.emf.ecore.EDataType eDataType, java.lang.String initialValue)
           
 IfExp createIfExp()
           
 IntegerLiteralExp createIntegerLiteralExp()
           
 InvalidLiteralExp createInvalidLiteralExp()
           
 IterateExp createIterateExp()
           
 IteratorExp createIteratorExp()
           
 LetExp createLetExp()
           
 LoopExp createLoopExp()
           
 MessageExp createMessageExp()
           
 NullLiteralExp createNullLiteralExp()
           
 OCLExpression createOCLExpression(java.lang.String text)
          Parses the specified OCL expression text to create a new expression instance.
 OperationCallExp createOperationCallExp()
           
 PropertyCallExp createPropertyCallExp()
           
 RealLiteralExp createRealLiteralExp()
           
 StateExp createStateExp()
           
 StringLiteralExp createStringLiteralExp()
           
 StringLiteralExp createStringLiteralExp(java.lang.String s)
           
 TupleLiteralExp createTupleLiteralExp()
           
 TupleLiteralPart createTupleLiteralPart()
           
 TypeExp createTypeExp()
           
 UnspecifiedValueExp createUnspecifiedValueExp()
           
 Variable createVariable()
           
 VariableExp createVariableExp()
           
 ExpressionsPackage getExpressionsPackage()
           
static ExpressionsPackage getPackage()
          Deprecated.  
static ExpressionsFactory init()
          Creates the default factory implementation
 
Methods inherited from class org.eclipse.emf.ecore.impl.EFactoryImpl
basicCreate, basicSetEPackage, collapseWhiteSpace, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, getEPackage, replaceWhiteSpace, setEPackage
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eObjectForURIFragmentSegment, eURIFragmentSegment, freeze, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eIsProxy, eProperties, eProxyURI, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EFactory
getEPackage, setEPackage
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Constructor Detail

ExpressionsFactoryImpl

public ExpressionsFactoryImpl()
Creates an instance of the factory.

Method Detail

init

public static ExpressionsFactory init()
Creates the default factory implementation.


create

public org.eclipse.emf.ecore.EObject create(org.eclipse.emf.ecore.EClass eClass)

Specified by:
create in interface org.eclipse.emf.ecore.EFactory

createFromString

public java.lang.Object createFromString(org.eclipse.emf.ecore.EDataType eDataType,
                                         java.lang.String initialValue)

Specified by:
createFromString in interface org.eclipse.emf.ecore.EFactory

convertToString

public java.lang.String convertToString(org.eclipse.emf.ecore.EDataType eDataType,
                                        java.lang.Object instanceValue)

Specified by:
convertToString in interface org.eclipse.emf.ecore.EFactory

createOCLExpression

public OCLExpression createOCLExpression(java.lang.String text)
                                  throws ParserException
Description copied from interface: ExpressionsFactory
Parses the specified OCL expression text to create a new expression instance.

The text must be of the form "context a::b::c inv: oclexpression" or, optionally, "package a::b context c inv: oclexpression endpackage".

Specified by:
createOCLExpression in interface ExpressionsFactory
Parameters:
text - the OCL expression text to parse
Returns:
the parsed expression, if the OCL expression is valid
Throws:
ParserException - in case of an error in parsing the expression

createPropertyCallExp

public PropertyCallExp createPropertyCallExp()

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

createTupleLiteralPart

public TupleLiteralPart createTupleLiteralPart()

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

createBooleanLiteralExp

public BooleanLiteralExp createBooleanLiteralExp()

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

createCollectionItem

public CollectionItem createCollectionItem()

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

createCollectionLiteralExp

public CollectionLiteralExp createCollectionLiteralExp()

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

createCollectionLiteralPart

public CollectionLiteralPart createCollectionLiteralPart()

Specified by:
createCollectionLiteralPart in interface ExpressionsFactory
Returns:
a new object of class 'Collection Literal Part'.

createCollectionRange

public CollectionRange createCollectionRange()

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

createEnumLiteralExp

public EnumLiteralExp createEnumLiteralExp()

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

createIfExp

public IfExp createIfExp()

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

createIntegerLiteralExp

public IntegerLiteralExp createIntegerLiteralExp()

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

createIterateExp

public IterateExp createIterateExp()

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

createIteratorExp

public IteratorExp createIteratorExp()

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

createLetExp

public LetExp createLetExp()

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

createLoopExp

public LoopExp createLoopExp()

Specified by:
createLoopExp in interface ExpressionsFactory
Returns:
a new object of class 'Loop Exp'.

createMessageExp

public MessageExp createMessageExp()

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

createOperationCallExp

public OperationCallExp createOperationCallExp()

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

createRealLiteralExp

public RealLiteralExp createRealLiteralExp()

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

createStringLiteralExp

public StringLiteralExp createStringLiteralExp()

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

createTupleLiteralExp

public TupleLiteralExp createTupleLiteralExp()

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

createStringLiteralExp

public StringLiteralExp createStringLiteralExp(java.lang.String s)
Specified by:
createStringLiteralExp in interface ExpressionsFactory

createUnspecifiedValueExp

public UnspecifiedValueExp createUnspecifiedValueExp()

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

createVariable

public Variable createVariable()

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

createVariableExp

public VariableExp createVariableExp()

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

createAssociationClassCallExp

public AssociationClassCallExp createAssociationClassCallExp()

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

createNullLiteralExp

public NullLiteralExp createNullLiteralExp()

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

createInvalidLiteralExp

public InvalidLiteralExp createInvalidLiteralExp()

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

createTypeExp

public TypeExp createTypeExp()

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

createStateExp

public StateExp createStateExp()

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

createCollectionKindFromString

public CollectionKind createCollectionKindFromString(org.eclipse.emf.ecore.EDataType eDataType,
                                                     java.lang.String initialValue)


convertCollectionKindToString

public java.lang.String convertCollectionKindToString(org.eclipse.emf.ecore.EDataType eDataType,
                                                      java.lang.Object instanceValue)


getExpressionsPackage

public ExpressionsPackage getExpressionsPackage()

Specified by:
getExpressionsPackage in interface ExpressionsFactory
Returns:
the package supported by this factory.

getPackage

public static ExpressionsPackage getPackage()
Deprecated.  


Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.