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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.ids.impl.AbstractElementId
      extended by org.eclipse.ocl.examples.domain.ids.impl.PackageIdImpl
All Implemented Interfaces:
ElementId, PackageId
Direct Known Subclasses:
NestedPackageIdImpl, NsURIPackageIdImpl, RootPackageIdImpl

public abstract class PackageIdImpl
extends AbstractElementId
implements PackageId


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
           
 
Constructor Summary
protected PackageIdImpl(java.lang.Integer hashCode)
           
 
Method Summary
 ClassId getClassId(java.lang.String name, int templateParameters)
          Return the classId for the named child of this packageId.
 DataTypeId getDataTypeId(java.lang.String name, int templateParameters)
          Return the dataTypeId for the named child of this packageId.
 EnumerationId getEnumerationId(java.lang.String name)
          Return the enumerationId for the named child of this packageId.
 java.lang.String getMetaTypeName()
           
 NestedPackageId getNestedPackageId(java.lang.String name)
           
 int hashCode()
           
 
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.ElementId
accept, getDisplayName
 

Field Detail

hashCode

@NonNull
protected final java.lang.Integer hashCode
Constructor Detail

PackageIdImpl

protected PackageIdImpl(@NonNull
                        java.lang.Integer hashCode)
Method Detail

getClassId

@NonNull
public ClassId getClassId(@NonNull
                                  java.lang.String name,
                                  int templateParameters)
Description copied from interface: PackageId
Return the classId for the named child of this packageId.

Throws UnsupportedException for typeIds such as Primitive Types that may not have nested types.

Specified by:
getClassId in interface PackageId

getDataTypeId

@NonNull
public DataTypeId getDataTypeId(@NonNull
                                        java.lang.String name,
                                        int templateParameters)
Description copied from interface: PackageId
Return the dataTypeId for the named child of this packageId.

Throws UnsupportedException for typeIds such as Primitive Types that may not have nested types.

Specified by:
getDataTypeId in interface PackageId

getEnumerationId

@NonNull
public EnumerationId getEnumerationId(@NonNull
                                              java.lang.String name)
Description copied from interface: PackageId
Return the enumerationId for the named child of this packageId.

Throws UnsupportedException for typeIds such as Primitive Types that may not have nested types.

Specified by:
getEnumerationId in interface PackageId

getMetaTypeName

@NonNull
public java.lang.String getMetaTypeName()

getNestedPackageId

@NonNull
public NestedPackageId getNestedPackageId(@NonNull
                                                  java.lang.String name)
Specified by:
getNestedPackageId in interface PackageId

hashCode

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