org.eclipse.emf.cdo.spi.common.id
Class AbstractCDOID

java.lang.Object
  extended by org.eclipse.emf.cdo.spi.common.id.AbstractCDOID
All Implemented Interfaces:
Serializable, Comparable<CDOID>, CDOID
Direct Known Subclasses:
AbstractCDOIDByteArray, AbstractCDOIDInteger, AbstractCDOIDLong, AbstractCDOIDString

public abstract class AbstractCDOID
extends Object
implements CDOID

Since:
2.0
See Also:
Serialized Form
No Extend
This interface is not intended to be extended by clients.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.common.id.CDOID
CDOID.ObjectType, CDOID.Type
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.cdo.common.id.CDOID
NULL
 
Constructor Summary
AbstractCDOID()
           
 
Method Summary
 int compareTo(CDOID o)
           
protected abstract  int doCompareTo(CDOID o)
           
abstract  void read(ExtendedDataInput in)
          TODO: Change the parameter to CDODataInput to prevent casting in IDs with classifier.
abstract  void read(String fragmentPart)
          Note: CDOID.toURIFragment() and read(String) need to match.
 String toString()
           
abstract  void write(ExtendedDataOutput out)
          TODO: Change the parameter to CDODataInput to prevent casting in IDs with classifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.cdo.common.id.CDOID
getType, isDangling, isExternal, isNull, isObject, isTemporary, toURIFragment
 

Constructor Detail

AbstractCDOID

public AbstractCDOID()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

compareTo

public final int compareTo(CDOID o)
Specified by:
compareTo in interface Comparable<CDOID>

doCompareTo

protected abstract int doCompareTo(CDOID o)
                            throws ClassCastException
Throws:
ClassCastException

read

public abstract void read(String fragmentPart)
Note: CDOID.toURIFragment() and read(String) need to match.


read

public abstract void read(ExtendedDataInput in)
                   throws IOException
TODO: Change the parameter to CDODataInput to prevent casting in IDs with classifier.

Throws:
IOException

write

public abstract void write(ExtendedDataOutput out)
                    throws IOException
TODO: Change the parameter to CDODataInput to prevent casting in IDs with classifier.

Throws:
IOException


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.