messif.objects
Class NoDataObject
java.lang.Object
messif.objects.UniqueID
messif.objects.AbstractObject
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. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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
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