org.eclipse.ocl.examples.domain.ids.impl
Class GeneralizedTupleTypeIdImpl

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.ids.impl.AbstractElementId
      extended by org.eclipse.ocl.examples.domain.ids.impl.AbstractTypeId
          extended by org.eclipse.ocl.examples.domain.ids.impl.GeneralizedTupleTypeIdImpl
All Implemented Interfaces:
ElementId, WeakHashMapOfListOfWeakReference3.MatchableId<java.lang.String,TuplePartId[]>, TupleTypeId, TypeId

public class GeneralizedTupleTypeIdImpl
extends AbstractTypeId
implements TupleTypeId, WeakHashMapOfListOfWeakReference3.MatchableId<java.lang.String,TuplePartId[]>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ocl.examples.domain.ids.impl.AbstractElementId
AbstractElementId.OperationIdsMap, AbstractElementId.PropertyIdsMap
 
Field Summary
protected  java.lang.Integer hashCode
           
protected  java.lang.String name
           
protected  TuplePartId[] partIds
           
 
Fields inherited from interface org.eclipse.ocl.examples.domain.ids.TypeId
BAG, BAG_NAME, BOOLEAN, BOOLEAN_NAME, CLASS_NAME, COLLECTION, COLLECTION_NAME, COLLECTION_TYPE_NAME, DATA_TYPE_NAME, ENUMERATION_NAME, INTEGER, INTEGER_NAME, INTEGER_RANGE, INTEGER_RANGE_NAME, LAMBDA_TYPE_NAME, METACLASS, METACLASS_NAME, NULL_STRING_ARRAY, NULL_TUPLE_PART_ID_ARRAY, NULL_TYPE_ID_ARRAY, OCL_ANY, OCL_ANY_NAME, OCL_COMPARABLE, OCL_COMPARABLE_NAME, OCL_INVALID, OCL_INVALID_NAME, OCL_SELF, OCL_SELF_NAME, OCL_SUMMABLE, OCL_SUMMABLE_NAME, OCL_VOID, OCL_VOID_NAME, OPERATION_NAME, ORDERED_COLLECTION, ORDERED_COLLECTION_NAME, ORDERED_SET, ORDERED_SET_NAME, PRIMITIVE_TYPE_NAME, PROPERTY_NAME, REAL, REAL_NAME, SEQUENCE, SEQUENCE_NAME, SET, SET_NAME, STRING, STRING_NAME, T_1, T_2, T_3, TUPLE_NAME, TUPLE_TYPE_NAME, UNIQUE_COLLECTION, UNIQUE_COLLECTION_NAME, UNLIMITED_NATURAL, UNLIMITED_NATURAL_NAME
 
Constructor Summary
GeneralizedTupleTypeIdImpl(IdManager idManager, java.lang.Integer hashCode, java.lang.String name, TuplePartId[] orderedPartIds)
           
 
Method Summary
<R> R
accept(IdVisitor<R> visitor)
           
 java.lang.String getDisplayName()
          Return a simple name for diagnostics.
 TupleTypeId getGeneralizedId()
           
 java.lang.String getMetaTypeName()
           
 java.lang.String getName()
           
 TuplePartId getPartId(java.lang.String name)
           
 TuplePartId[] getPartIds()
           
 int hashCode()
           
 boolean matches(java.lang.String thatName, TuplePartId[] thoseOrderedParts)
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.ids.impl.AbstractTypeId
getEnumerationLiteralId, getOperationId, getPropertyId, getTemplateParameterId, getTemplateParameters, specialize
 
Methods inherited from class org.eclipse.ocl.examples.domain.ids.impl.AbstractElementId
equals, getLiteralName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.domain.ids.TypeId
getLiteralName, getOperationId, getPropertyId, getTemplateParameterId, getTemplateParameters, specialize
 

Field Detail

hashCode

@NonNull
protected final java.lang.Integer hashCode

name

@NonNull
protected final java.lang.String name

partIds

@NonNull
protected final TuplePartId[] partIds
Constructor Detail

GeneralizedTupleTypeIdImpl

public GeneralizedTupleTypeIdImpl(@NonNull
                                  IdManager idManager,
                                  @NonNull
                                  java.lang.Integer hashCode,
                                  @NonNull
                                  java.lang.String name,
                                  @NonNull
                                  TuplePartId[] orderedPartIds)
Method Detail

accept

@Nullable
public <R> R accept(@NonNull
                             IdVisitor<R> visitor)
Specified by:
accept in interface ElementId

getDisplayName

@NonNull
public java.lang.String getDisplayName()
Description copied from interface: ElementId
Return a simple name for diagnostics.

Specified by:
getDisplayName in interface ElementId

getGeneralizedId

@NonNull
public TupleTypeId getGeneralizedId()

getMetaTypeName

@NonNull
public java.lang.String getMetaTypeName()
Specified by:
getMetaTypeName in interface TypeId
Overrides:
getMetaTypeName in class AbstractTypeId

getName

@NonNull
public java.lang.String getName()
Specified by:
getName in interface TupleTypeId

getPartId

@Nullable
public TuplePartId getPartId(@NonNull
                                      java.lang.String name)
Specified by:
getPartId in interface TupleTypeId

getPartIds

@NonNull
public TuplePartId[] getPartIds()
Specified by:
getPartIds in interface TupleTypeId

hashCode

public final int hashCode()
Specified by:
hashCode in class AbstractElementId

matches

public boolean matches(@NonNull
                       java.lang.String thatName,
                       @NonNull
                       TuplePartId[] thoseOrderedParts)
Specified by:
matches in interface WeakHashMapOfListOfWeakReference3.MatchableId<java.lang.String,TuplePartId[]>