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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.ids.impl.AbstractElementId
      extended by org.eclipse.ocl.examples.domain.ids.impl.PropertyIdImpl
All Implemented Interfaces:
ElementId, PropertyId

public class PropertyIdImpl
extends AbstractElementId
implements PropertyId


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  TypeId parentId
           
 
Constructor Summary
PropertyIdImpl(TypeId parentId, java.lang.String name)
           
 
Method Summary
<R> R
accept(IdVisitor<R> visitor)
           
 java.lang.String getDisplayName()
          Return a simple name for diagnostics.
 java.lang.String getMetaTypeName()
           
 java.lang.String getName()
           
 TypeId getParent()
           
 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
 

Field Detail

parentId

@NonNull
protected final TypeId parentId

name

@NonNull
protected final java.lang.String name

hashCode

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

PropertyIdImpl

public PropertyIdImpl(@NonNull
                      TypeId parentId,
                      @NonNull
                      java.lang.String name)
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

getMetaTypeName

@NonNull
public java.lang.String getMetaTypeName()

getName

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

getParent

@NonNull
public TypeId getParent()
Specified by:
getParent in interface PropertyId

hashCode

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