messif.objects
Class NoDataObject

java.lang.Object
  extended by messif.objects.UniqueID
      extended by messif.objects.AbstractObject
          extended by messif.objects.NoDataObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<UniqueID>, Clearable

public final class NoDataObject
extends AbstractObject

Object of this class represents an AbstractObject only by its URI locator. It does not contain any data.

See Also:
AbstractObject, LocalAbstractObject, Serialized Form

Constructor Summary
NoDataObject(AbstractObject object)
          Creates a new instance of NoDataObject from the specified LocalAbstractObject.
NoDataObject(java.lang.String locatorURI)
          Creates a new instance of NoDataObject using the specified locator.
 
Method Summary
 NoDataObject getNoDataObject()
          Returns this object as no-data object.
 
Methods inherited from class messif.objects.AbstractObject
binarySerialize, clearSurplusData, clone, clone, getBinarySize, getLocatorURI, getObjectID, getObjectKey, setObjectKey, toString
 
Methods inherited from class messif.objects.UniqueID
compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoDataObject

public NoDataObject(java.lang.String locatorURI)
Creates a new instance of NoDataObject using the specified locator. A new unique object ID is generated and a new AbstractObjectKey is generated for the specified locatorURI.

Parameters:
locatorURI - the locator URI for the new object

NoDataObject

public NoDataObject(AbstractObject object)
Creates a new instance of NoDataObject from the specified LocalAbstractObject.

Parameters:
object - the local object from which to create the new one
Method Detail

getNoDataObject

public NoDataObject getNoDataObject()
Description copied from class: AbstractObject
Returns this object as no-data object. Only the object key and ID is preserved, any internal or supplemental data are not copied.

Overrides:
getNoDataObject in class AbstractObject
Returns:
this object as NoDataObject