org.eclipse.ocl.uml.impl
Class CollectionTypeImpl

java.lang.Object
  extended by DataTypeImpl
      extended by org.eclipse.ocl.uml.impl.CollectionTypeImpl
All Implemented Interfaces:
CollectionType<Classifier,Operation>, ASTNode, PredefinedType<Operation>, TypedASTNode
Direct Known Subclasses:
BagTypeImpl, OrderedSetTypeImpl, SequenceTypeImpl, SetTypeImpl

public class CollectionTypeImpl
extends DataTypeImpl
implements CollectionType

An implementation of the model object 'Collection Type'.

The following features are implemented:


Field Summary
protected  Classifier 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 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
 
Constructor Summary
protected CollectionTypeImpl()
           
protected CollectionTypeImpl(Classifier elementType)
           
 
Method Summary
 Classifier basicGetElementType()
           
 boolean checkCollectionTypeName(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkNoInvalidValues(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  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 Classifier getElementType()
           
 int getEndPosition()
           
 CollectionKind getKind()
          Returns the value of the 'Kind' attribute.
 java.lang.String getName()
           If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
 int getStartPosition()
           
 int getTypeEndPosition()
           
 int getTypeStartPosition()
           
  oclIterators()
           If the meaning of the 'Iterators' reference list isn't clear, there really should be more of a description here...
  oclOperations()
           If the meaning of the 'Operations' reference list isn't clear, there really should be more of a description here...
 void setElementType(Classifier 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.types.CollectionType
checkCollectionTypeName, checkNoInvalidValues
 

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

Method Detail

eStaticClass

protected EClass eStaticClass()


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

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

basicGetElementType

public Classifier basicGetElementType()


setElementType

public void setElementType(Classifier newElementType)

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

getKind

public CollectionKind getKind()
Description copied from interface: CollectionType
Returns the value of the 'Kind' attribute. The literals are from the enumeration CollectionKind.

If the meaning of the 'Collection Kind' attribute isn't clear, there really should be more of a description here...

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

getName

public java.lang.String getName()
Description copied from interface: PredefinedType

If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...

Specified by:
getName in interface PredefinedType<Operation>

oclIterators

public  oclIterators()
Description copied from interface: CollectionType

If the meaning of the 'Iterators' reference list isn't clear, there really should be more of a description here...

Specified by:
oclIterators in interface CollectionType<Classifier,Operation>

oclOperations

public  oclOperations()
Description copied from interface: PredefinedType

If the meaning of the 'Operations' reference list isn't clear, there really should be more of a description here...

Specified by:
oclOperations in interface PredefinedType<Operation>

checkCollectionTypeName

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


checkNoInvalidValues

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


eGet

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


eSet

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


eUnset

public void eUnset(int featureID)


eIsSet

public boolean eIsSet(int featureID)


eBaseStructuralFeatureID

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


eDerivedStructuralFeatureID

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


toString

public java.lang.String toString()


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