org.eclipse.ocl.types.impl
Class CollectionTypeImpl<C,O>

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.ocl.types.impl.CollectionTypeImpl<C,O>
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, CollectionType<C,O>, ASTNode, PredefinedType<O>, TypedASTNode
Direct Known Subclasses:
BagTypeImpl, OrderedSetTypeImpl, SequenceTypeImpl, SetTypeImpl

public class CollectionTypeImpl<C,O>
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements CollectionType<C,O>

An implementation of the model object 'Collection Type'.

The following features are implemented:

Generated

Nested Class Summary
 
Nested classes/interfaces 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/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  C elementType
          The cached value of the 'Element Type' reference.
protected static int END_POSITION_EDEFAULT
          The default value of the 'End Position' attribute.
protected  int endPosition
          The cached value of the 'End Position' attribute.
protected static CollectionKind KIND_EDEFAULT
          The default value of the 'Kind' attribute.
protected static int START_POSITION_EDEFAULT
          The default value of the 'Start Position' attribute.
protected  int startPosition
          The cached value of the 'Start Position' attribute.
protected static int TYPE_END_POSITION_EDEFAULT
          The default value of the 'Type End Position' attribute.
protected static int TYPE_START_POSITION_EDEFAULT
          The default value of the 'Type Start Position' attribute.
protected  int typeEndPosition
          The cached value of the 'Type End Position' attribute.
protected  int typeStartPosition
          The cached value of the 'Type Start Position' attribute.
 
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.ocl.types.CollectionType
SINGLETON_NAME
 
Fields inherited from interface org.eclipse.ocl.utilities.PredefinedType
ABS, ABS_NAME, ALL_INSTANCES, ALL_INSTANCES_NAME, AND, AND_NAME, ANY, ANY_NAME, APPEND, APPEND_NAME, AS_BAG, AS_BAG_NAME, AS_ORDERED_SET, AS_ORDERED_SET_NAME, AS_SEQUENCE, AS_SEQUENCE_NAME, AS_SET, AS_SET_NAME, AT, AT_NAME, CHARACTERS, CHARACTERS_NAME, CLOSURE, CLOSURE_NAME, COLLECT, COLLECT_NAME, COLLECT_NESTED, COLLECT_NESTED_NAME, CONCAT, CONCAT_NAME, COUNT, COUNT_NAME, DIV, DIV_NAME, DIVIDE, DIVIDE_NAME, ENDS_WITH, ENDS_WITH_NAME, EQUAL, EQUAL_NAME, EQUALS_IGNORE_CASE, EQUALS_IGNORE_CASE_NAME, EXCLUDES, EXCLUDES_ALL, EXCLUDES_ALL_NAME, EXCLUDES_NAME, EXCLUDING, EXCLUDING_NAME, EXISTS, EXISTS_NAME, FIRST, FIRST_NAME, FLATTEN, FLATTEN_NAME, FLOOR, FLOOR_NAME, FOR_ALL, FOR_ALL_NAME, GREATER_THAN, GREATER_THAN_EQUAL, GREATER_THAN_EQUAL_NAME, GREATER_THAN_NAME, HAS_RETURNED, HAS_RETURNED_NAME, IMPLIES, IMPLIES_NAME, INCLUDES, INCLUDES_ALL, INCLUDES_ALL_NAME, INCLUDES_NAME, INCLUDING, INCLUDING_NAME, INDEX_OF, INDEX_OF_NAME, INSERT_AT, INSERT_AT_NAME, INTERSECTION, INTERSECTION_NAME, IS_EMPTY, IS_EMPTY_NAME, IS_OPERATION_CALL, IS_OPERATION_CALL_NAME, IS_SIGNAL_SENT, IS_SIGNAL_SENT_NAME, IS_UNIQUE, IS_UNIQUE_NAME, LAST, LAST_INDEX_OF, LAST_INDEX_OF_NAME, LAST_NAME, LESS_THAN, LESS_THAN_EQUAL, LESS_THAN_EQUAL_NAME, LESS_THAN_NAME, MATCHES, MATCHES_NAME, MAX, MAX_NAME, MIN, MIN_NAME, MINUS, MINUS_NAME, MOD, MOD_NAME, NOT, NOT_EMPTY, NOT_EMPTY_NAME, NOT_EQUAL, NOT_EQUAL_NAME, NOT_NAME, OCL_AS_SET, OCL_AS_SET_NAME, OCL_AS_TYPE, OCL_AS_TYPE_NAME, OCL_IS_IN_STATE, OCL_IS_IN_STATE_NAME, OCL_IS_INVALID, OCL_IS_INVALID_NAME, OCL_IS_KIND_OF, OCL_IS_KIND_OF_NAME, OCL_IS_NEW, OCL_IS_NEW_NAME, OCL_IS_TYPE_OF, OCL_IS_TYPE_OF_NAME, OCL_IS_UNDEFINED, OCL_IS_UNDEFINED_NAME, ONE, ONE_NAME, OR, OR_NAME, PLUS, PLUS_NAME, PREPEND, PREPEND_NAME, PRODUCT, PRODUCT_NAME, REJECT, REJECT_NAME, REPLACE_ALL, REPLACE_ALL_NAME, REPLACE_FIRST, REPLACE_FIRST_NAME, RESULT, RESULT_NAME, ROUND, ROUND_NAME, SELECT, SELECT_BY_KIND, SELECT_BY_KIND_NAME, SELECT_BY_TYPE, SELECT_BY_TYPE_NAME, SELECT_NAME, SIZE, SIZE_NAME, SORTED_BY, SORTED_BY_NAME, STARTS_WITH, STARTS_WITH_NAME, SUB_ORDERED_SET, SUB_ORDERED_SET_NAME, SUB_SEQUENCE, SUB_SEQUENCE_NAME, SUBSTITUTE_ALL, SUBSTITUTE_ALL_NAME, SUBSTITUTE_FIRST, SUBSTITUTE_FIRST_NAME, SUBSTRING, SUBSTRING_NAME, SUM, SUM_NAME, SYMMETRIC_DIFFERENCE, SYMMETRIC_DIFFERENCE_NAME, TIMES, TIMES_NAME, TO_BOOLEAN, TO_BOOLEAN_NAME, TO_INTEGER, TO_INTEGER_NAME, TO_LOWER, TO_LOWER_CASE, TO_LOWER_CASE_NAME, TO_LOWER_NAME, TO_REAL, TO_REAL_NAME, TO_STRING, TO_STRING_NAME, TO_UPPER, TO_UPPER_CASE, TO_UPPER_CASE_NAME, TO_UPPER_NAME, TOKENIZE, TOKENIZE_NAME, TRIM, TRIM_NAME, UNION, UNION_NAME, XOR, XOR_NAME
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected CollectionTypeImpl()
           
protected CollectionTypeImpl(C elementType)
           
 
Method Summary
 C basicGetElementType()
           
 boolean checkCollectionTypeName(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkNoInvalidValues(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
           
 int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 C getElementType()
           
 int getEndPosition()
           
 CollectionKind getKind()
           
 java.lang.String getName()
           
 int getStartPosition()
           
 int getTypeEndPosition()
           
 int getTypeStartPosition()
           
 org.eclipse.emf.common.util.EList<O> oclIterators()
           
 org.eclipse.emf.common.util.EList<O> oclOperations()
           
 void setElementType(C newElementType)
           
 void setEndPosition(int newEndPosition)
           
 void setStartPosition(int newStartPosition)
           
 void setTypeEndPosition(int newTypeEndPosition)
           
 void setTypeStartPosition(int newTypeStartPosition)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, 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.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, 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

START_POSITION_EDEFAULT

protected static final int START_POSITION_EDEFAULT
The default value of the 'Start Position' attribute.

See Also:
getStartPosition(), Constant Field Values
Generated
Ordered

startPosition

protected int startPosition
The cached value of the 'Start Position' attribute.

See Also:
getStartPosition()
Generated
Ordered

END_POSITION_EDEFAULT

protected static final int END_POSITION_EDEFAULT
The default value of the 'End Position' attribute.

See Also:
getEndPosition(), Constant Field Values
Generated
Ordered

endPosition

protected int endPosition
The cached value of the 'End Position' attribute.

See Also:
getEndPosition()
Generated
Ordered

TYPE_START_POSITION_EDEFAULT

protected static final int TYPE_START_POSITION_EDEFAULT
The default value of the 'Type Start Position' attribute.

See Also:
getTypeStartPosition(), Constant Field Values
Generated
Ordered

typeStartPosition

protected int typeStartPosition
The cached value of the 'Type Start Position' attribute.

See Also:
getTypeStartPosition()
Generated
Ordered

TYPE_END_POSITION_EDEFAULT

protected static final int TYPE_END_POSITION_EDEFAULT
The default value of the 'Type End Position' attribute.

See Also:
getTypeEndPosition(), Constant Field Values
Generated
Ordered

typeEndPosition

protected int typeEndPosition
The cached value of the 'Type End Position' attribute.

See Also:
getTypeEndPosition()
Generated
Ordered

elementType

protected C elementType
The cached value of the 'Element Type' reference.

See Also:
getElementType()
Generated
Ordered

KIND_EDEFAULT

protected static final CollectionKind KIND_EDEFAULT
The default value of the 'Kind' attribute.

See Also:
getKind()
Generated
Ordered
Constructor Detail

CollectionTypeImpl

protected CollectionTypeImpl()

Generated

CollectionTypeImpl

protected CollectionTypeImpl(C elementType)
Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class org.eclipse.emf.ecore.impl.EObjectImpl
Generated

getName

public java.lang.String getName()

Specified by:
getName in interface PredefinedType<O>
Generated
NOT

oclOperations

public org.eclipse.emf.common.util.EList<O> oclOperations()

Specified by:
oclOperations in interface PredefinedType<O>
Generated
NOT

checkCollectionTypeName

public boolean checkCollectionTypeName(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,java.lang.Object> context)

Specified by:
checkCollectionTypeName in interface CollectionType<C,O>
Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.
Generated

checkNoInvalidValues

public boolean checkNoInvalidValues(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                    java.util.Map<java.lang.Object,java.lang.Object> context)

Specified by:
checkNoInvalidValues in interface CollectionType<C,O>
Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.
Generated

getStartPosition

public int getStartPosition()

Specified by:
getStartPosition in interface ASTNode
Returns:
the value of the 'Start Position' attribute.
See Also:
ASTNode.setStartPosition(int), UtilitiesPackage.getASTNode_StartPosition()
Generated

setStartPosition

public void setStartPosition(int newStartPosition)

Specified by:
setStartPosition in interface ASTNode
Parameters:
newStartPosition - the new value of the 'Start Position' attribute.
See Also:
ASTNode.getStartPosition()
Generated

getEndPosition

public int getEndPosition()

Specified by:
getEndPosition in interface ASTNode
Returns:
the value of the 'End Position' attribute.
See Also:
ASTNode.setEndPosition(int), UtilitiesPackage.getASTNode_EndPosition()
Generated

setEndPosition

public void setEndPosition(int newEndPosition)

Specified by:
setEndPosition in interface ASTNode
Parameters:
newEndPosition - the new value of the 'End Position' attribute.
See Also:
ASTNode.getEndPosition()
Generated

getTypeStartPosition

public int getTypeStartPosition()

Specified by:
getTypeStartPosition in interface TypedASTNode
Returns:
the value of the 'Type Start Position' attribute.
See Also:
TypedASTNode.setTypeStartPosition(int), UtilitiesPackage.getTypedASTNode_TypeStartPosition()
Generated

setTypeStartPosition

public void setTypeStartPosition(int newTypeStartPosition)

Specified by:
setTypeStartPosition in interface TypedASTNode
Parameters:
newTypeStartPosition - the new value of the 'Type Start Position' attribute.
See Also:
TypedASTNode.getTypeStartPosition()
Generated

getTypeEndPosition

public int getTypeEndPosition()

Specified by:
getTypeEndPosition in interface TypedASTNode
Returns:
the value of the 'Type End Position' attribute.
See Also:
TypedASTNode.setTypeEndPosition(int), UtilitiesPackage.getTypedASTNode_TypeEndPosition()
Generated

setTypeEndPosition

public void setTypeEndPosition(int newTypeEndPosition)

Specified by:
setTypeEndPosition in interface TypedASTNode
Parameters:
newTypeEndPosition - the new value of the 'Type End Position' attribute.
See Also:
TypedASTNode.getTypeEndPosition()
Generated

getElementType

public C getElementType()

Specified by:
getElementType in interface CollectionType<C,O>
Returns:
the value of the 'Element Type' reference.
See Also:
CollectionType.setElementType(Object), TypesPackage.getCollectionType_ElementType()
Generated

basicGetElementType

public C basicGetElementType()

Generated

setElementType

public void setElementType(C newElementType)

Specified by:
setElementType in interface CollectionType<C,O>
Parameters:
newElementType - the new value of the 'Element Type' reference.
See Also:
CollectionType.getElementType()
Generated

getKind

public CollectionKind getKind()

Specified by:
getKind in interface CollectionType<C,O>
Returns:
the value of the 'Kind' attribute.
See Also:
CollectionKind, TypesPackage.getCollectionType_Kind()
Generated
NOT

oclIterators

public org.eclipse.emf.common.util.EList<O> oclIterators()

Specified by:
oclIterators in interface CollectionType<C,O>
Generated
NOT

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eBaseStructuralFeatureID

public int eBaseStructuralFeatureID(int derivedFeatureID,
                                    java.lang.Class<?> baseClass)

Specified by:
eBaseStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eBaseStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eDerivedStructuralFeatureID

public int eDerivedStructuralFeatureID(int baseFeatureID,
                                       java.lang.Class<?> baseClass)

Specified by:
eDerivedStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eDerivedStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

toString

public java.lang.String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated