org.eclipse.ocl.ecore.impl
Class CollectionTypeImpl

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.emf.ecore.impl.FlatEObjectImpl
                  extended by org.eclipse.emf.ecore.impl.EModelElementImpl
                      extended by org.eclipse.emf.ecore.impl.ENamedElementImpl
                          extended by org.eclipse.emf.ecore.impl.EClassifierImpl
                              extended by org.eclipse.emf.ecore.impl.EDataTypeImpl
                                  extended by org.eclipse.ocl.ecore.impl.CollectionTypeImpl
All Implemented Interfaces:
Notifier, EClassifier, EDataType, EModelElement, ENamedElement, EObject, InternalEObject, BasicExtendedMetaData.EClassifierExtendedMetaData.Holder, CollectionType<EClassifier,EOperation>, ASTNode, PredefinedType<EOperation>, TypedASTNode
Direct Known Subclasses:
BagTypeImpl, OrderedSetTypeImpl, SequenceTypeImpl, SetTypeImpl

public class CollectionTypeImpl
extends EDataTypeImpl
implements CollectionType

An implementation of the model object 'Collection Type'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  EClassifier 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.EDataTypeImpl
defaultValue, defaultValueIsSet, SERIALIZABLE_EDEFAULT, SERIALIZABLE_EFLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
DEFAULT_VALUE_EDEFAULT, eClassifierExtendedMetaData, eTypeParameters, generatedInstanceClassName, INSTANCE_CLASS_EDEFAULT, INSTANCE_CLASS_NAME_EDEFAULT, instanceClass, instanceClassName, instanceTypeName, metaObjectID
 
Fields inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
name, NAME_EDEFAULT
 
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.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, CLOSURE, CLOSURE_NAME, COLLECT, COLLECT_NAME, COLLECT_NESTED, COLLECT_NESTED_NAME, CONCAT, CONCAT_NAME, COUNT, COUNT_NAME, DIV, DIV_NAME, DIVIDE, DIVIDE_NAME, EQUAL, EQUAL_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_NAME, LESS_THAN, LESS_THAN_EQUAL, LESS_THAN_EQUAL_NAME, LESS_THAN_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_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, RESULT, RESULT_NAME, ROUND, ROUND_NAME, SELECT, SELECT_NAME, SIZE, SIZE_NAME, SORTED_BY, SORTED_BY_NAME, SUB_ORDERED_SET, SUB_ORDERED_SET_NAME, SUB_SEQUENCE, SUB_SEQUENCE_NAME, SUBSTRING, SUBSTRING_NAME, SUM, SUM_NAME, SYMMETRIC_DIFFERENCE, SYMMETRIC_DIFFERENCE_NAME, TIMES, TIMES_NAME, TO_INTEGER, TO_INTEGER_NAME, TO_LOWER, TO_LOWER_NAME, TO_REAL, TO_REAL_NAME, TO_UPPER, TO_UPPER_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(EClassifier elementType)
           
 
Method Summary
 EClassifier basicGetElementType()
           
 int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
           
 int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 EClassifier getElementType()
           
 int getEndPosition()
           
 CollectionKind getKind()
           
 String getName()
           
 int getStartPosition()
           
 int getTypeEndPosition()
           
 int getTypeStartPosition()
           
 EList<EOperation> oclIterators()
           
 EList<EOperation> oclOperations()
           
 void setElementType(EClassifier newElementType)
           
 void setEndPosition(int newEndPosition)
           
 void setStartPosition(int newStartPosition)
           
 void setTypeEndPosition(int newTypeEndPosition)
           
 void setTypeStartPosition(int newTypeStartPosition)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EDataTypeImpl
getDefaultValue, isSerializable, setDataTypeGeneratedInstanceClass, setGeneratedInstanceClass, setInstanceClassGen, setSerializable
 
Methods inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
basicGetEPackage, basicSetInstanceClassName, basicSetInstanceTypeName, dynamicIsInstance, eBasicRemoveFromContainerFeature, eBasicSetContainer, eInverseAdd, eInverseRemove, getClassForName, getClassifierID, getEPackage, getEPackageGen, getETypeParameters, getExtendedMetaData, getInstanceClass, getInstanceClassGen, getInstanceClassName, getInstanceClassNameGen, getInstanceTypeName, getPrimitiveOrArrayClass, isInstance, isSetInstanceClassName, isSetInstanceTypeName, setClassifierID, setExtendedMetaData, setInstanceClass, setInstanceClassName, setInstanceClassNameGen, setInstanceTypeName, setName, unsetInstanceClassName, unsetInstanceTypeName
 
Methods inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
eContents, eCrossReferences, getNameGen
 
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
eIsProxy, eProperties, eProxyURI, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, 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
 
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.EDataType
isSerializable, setSerializable
 
Methods inherited from interface org.eclipse.emf.ecore.EClassifier
getClassifierID, getDefaultValue, getEPackage, getETypeParameters, getInstanceClass, getInstanceClassName, getInstanceTypeName, isInstance, setInstanceClass, setInstanceClassName, setInstanceTypeName
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
setName
 
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

START_POSITION_EDEFAULT

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

See Also:
getStartPosition(), Constant Field Values

startPosition

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

See Also:
getStartPosition()

END_POSITION_EDEFAULT

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

See Also:
getEndPosition(), Constant Field Values

endPosition

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

See Also:
getEndPosition()

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

typeStartPosition

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

See Also:
getTypeStartPosition()

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

typeEndPosition

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

See Also:
getTypeEndPosition()

elementType

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

See Also:
getElementType()

KIND_EDEFAULT

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

See Also:
getKind()
Constructor Detail

CollectionTypeImpl

protected CollectionTypeImpl()


CollectionTypeImpl

protected CollectionTypeImpl(EClassifier elementType)

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class EDataTypeImpl

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()

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()

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()

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()

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()

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()

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()

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()

getElementType

public EClassifier getElementType()

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

basicGetElementType

public EClassifier basicGetElementType()


setElementType

public void setElementType(EClassifier newElementType)

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

getKind

public CollectionKind getKind()

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

getName

public String getName()

Specified by:
getName in interface ENamedElement
Specified by:
getName in interface PredefinedType<EOperation>
Overrides:
getName in class ENamedElementImpl

oclOperations

public EList<EOperation> oclOperations()

Specified by:
oclOperations in interface PredefinedType<EOperation>

oclIterators

public EList<EOperation> oclIterators()

Specified by:
oclIterators in interface CollectionType<EClassifier,EOperation>

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class EDataTypeImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class EDataTypeImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class EDataTypeImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class EDataTypeImpl

eBaseStructuralFeatureID

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

Specified by:
eBaseStructuralFeatureID in interface InternalEObject
Overrides:
eBaseStructuralFeatureID in class BasicEObjectImpl

eDerivedStructuralFeatureID

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

Specified by:
eDerivedStructuralFeatureID in interface InternalEObject
Overrides:
eDerivedStructuralFeatureID in class BasicEObjectImpl

toString

public String toString()

Overrides:
toString in class EDataTypeImpl

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