org.eclipse.ocl.examples.domain.ids.impl
Class AbstractTemplateableIdImpl<T extends TemplateableId>
java.lang.Object
org.eclipse.ocl.examples.domain.ids.impl.AbstractElementId
org.eclipse.ocl.examples.domain.ids.impl.AbstractTemplateableIdImpl<T>
- All Implemented Interfaces:
- ElementId, TemplateableId
- Direct Known Subclasses:
- AbstractGeneralizedIdImpl, AbstractSpecializedIdImpl
public abstract class AbstractTemplateableIdImpl<T extends TemplateableId>
- extends AbstractElementId
- implements TemplateableId
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
hashCode
@NonNull
protected final java.lang.Integer hashCode
templateParameters
protected final int templateParameters
AbstractTemplateableIdImpl
protected AbstractTemplateableIdImpl(@NonNull
java.lang.Integer hashCode,
int templateParameters)
createSpecializedId
@NonNull
protected abstract T createSpecializedId(@NonNull
BindingsId templateBindings)
getEnumerationLiteralId
@NonNull
public EnumerationLiteralId getEnumerationLiteralId(@NonNull
java.lang.String name)
getOperationId
@NonNull
public OperationId getOperationId(int templateParameters,
@NonNull
java.lang.String name,
@NonNull
ParametersId parametersId)
getPropertyId
@NonNull
public PropertyId getPropertyId(@NonNull
java.lang.String name)
getSpecializedId
@NonNull
public T 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 TemplateableId
getSpecializedId
@NonNull
public T getSpecializedId(@NonNull
ElementId... templateBindings)
getTemplateParameterId
@NonNull
public TemplateParameterId getTemplateParameterId(int index)
getTemplateParameters
public int getTemplateParameters()
- Specified by:
getTemplateParameters
in interface TemplateableId
hashCode
public final int hashCode()
- Specified by:
hashCode
in class AbstractElementId