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

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.UnscopedId
              extended by org.eclipse.ocl.examples.domain.ids.impl.OclVoidTypeIdImpl
All Implemented Interfaces:
Nameable, BuiltInTypeId, CollectionTypeId, ElementId, MetaclassId, OclVoidTypeId, PrimitiveTypeId, TemplateableId, TemplateParameterId, TupleTypeId, TypeId
Direct Known Subclasses:
OclInvalidTypeIdImpl

public class OclVoidTypeIdImpl
extends UnscopedId
implements OclVoidTypeId


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ocl.examples.domain.ids.impl.AbstractElementId
AbstractElementId.OperationIdsMap, AbstractElementId.PropertyIdsMap
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.domain.ids.impl.UnscopedId
hashCode, name
 
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_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
 
Fields inherited from interface org.eclipse.ocl.examples.domain.ids.TemplateableId
NULL_TEMPLATEABLE_ID_ARRAY
 
Constructor Summary
OclVoidTypeIdImpl(java.lang.String name)
           
 
Method Summary
<R> R
accept(IdVisitor<R> visitor)
           
 CollectionTypeId getCollectedTypeId()
           
 TypeId getElementId()
           
 TypeId getElementTypeId()
           
 OclVoidTypeIdImpl getGeneralizedId()
           
 int getIndex()
           
 java.lang.String getLiteralName()
           
 java.lang.String getMetaTypeName()
           
 DomainElement getOrigin()
           
 TypeId getParent()
           
 TuplePartId getPartId(java.lang.String name)
           
 TuplePartId[] getPartIds()
           
 OclVoidTypeIdImpl getSpecializedId(BindingsId templateBindings)
          Return the typeId for this typeId specialized by typeParameters.
 CollectionTypeId getSpecializedId(ElementId... templateBindings)
           
 MetaclassId getSpecializedId(ElementId elementId)
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.ids.impl.UnscopedId
getDisplayName, getName, hashCode
 
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, 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.BuiltInTypeId
getName
 
Methods inherited from interface org.eclipse.ocl.examples.domain.ids.TypeId
getOperationId, getPropertyId, getTemplateParameterId, getTemplateParameters, specialize
 
Methods inherited from interface org.eclipse.ocl.examples.domain.ids.TupleTypeId
getName
 
Methods inherited from interface org.eclipse.ocl.examples.domain.ids.TemplateParameterId
getName
 
Methods inherited from interface org.eclipse.ocl.examples.domain.ids.MetaclassId
getName
 
Methods inherited from interface org.eclipse.ocl.examples.domain.ids.TemplateableId
getTemplateParameters
 

Constructor Detail

OclVoidTypeIdImpl

public OclVoidTypeIdImpl(@NonNull
                         java.lang.String name)
Method Detail

accept

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

getCollectedTypeId

@NonNull
public CollectionTypeId getCollectedTypeId()

getElementId

@NonNull
public TypeId getElementId()
Specified by:
getElementId in interface MetaclassId

getElementTypeId

@NonNull
public TypeId getElementTypeId()
Specified by:
getElementTypeId in interface CollectionTypeId

getGeneralizedId

@NonNull
public OclVoidTypeIdImpl getGeneralizedId()
Specified by:
getGeneralizedId in interface CollectionTypeId
Specified by:
getGeneralizedId in interface TemplateableId

getIndex

public int getIndex()
Specified by:
getIndex in interface TemplateParameterId

getLiteralName

@Nullable
public java.lang.String getLiteralName()
Specified by:
getLiteralName in interface TemplateableId
Specified by:
getLiteralName in interface TypeId
Overrides:
getLiteralName in class AbstractElementId

getMetaTypeName

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

getOrigin

@Nullable
public DomainElement getOrigin()

getParent

@NonNull
public TypeId getParent()

getPartId

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

getSpecializedId

@NonNull
public OclVoidTypeIdImpl getSpecializedId(@NonNull
                                                  BindingsId templateBindings)
Description copied from interface: TemplateableId
Return the typeId for this typeId specialized by typeParameters.

Throws UnsupportedException for typeIds such as Primitive Types that may not be specialized.

Specified by:
getSpecializedId in interface CollectionTypeId
Specified by:
getSpecializedId in interface TemplateableId

getSpecializedId

@NonNull
public MetaclassId getSpecializedId(@NonNull
                                            ElementId elementId)
Specified by:
getSpecializedId in interface MetaclassId

getSpecializedId

@NonNull
public CollectionTypeId getSpecializedId(@NonNull
                                                 ElementId... templateBindings)
Specified by:
getSpecializedId in interface CollectionTypeId