org.eclipse.emf.cdo.common.id
Class CDOIDReference
java.lang.Object
org.eclipse.emf.cdo.common.id.CDOIDReference
- All Implemented Interfaces:
- CDOReference<CDOID>
- public class CDOIDReference
- extends Object
- implements CDOReference<CDOID>
Represents a CDOID
typed reference from one object to another object.
- Since:
- 4.0
- No Extend
- This interface is not intended to be extended by clients.
- No Instantiate
- This class is not intended to be instantiated by clients.
CDOIDReference
public CDOIDReference(CDOID targetID,
CDOID sourceID,
EStructuralFeature sourceFeature,
int sourceIndex)
CDOIDReference
public CDOIDReference(CDODataInput in)
throws IOException
- Throws:
IOException
write
public void write(CDODataOutput out)
throws IOException
- Throws:
IOException
getTargetObject
public CDOID getTargetObject()
- Specified by:
getTargetObject
in interface CDOReference<CDOID>
getSourceObject
public CDOID getSourceObject()
- Specified by:
getSourceObject
in interface CDOReference<CDOID>
getSourceFeature
public EStructuralFeature getSourceFeature()
- Description copied from interface:
CDOReference
- Returns the source
EReference
or the source EAttribute
if the source feature is a
FeatureMap
.
- Specified by:
getSourceFeature
in interface CDOReference<CDOID>
getSourceIndex
public int getSourceIndex()
- Specified by:
getSourceIndex
in interface CDOReference<CDOID>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.