|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.objects.UniqueID
messif.objects.AbstractObject
public abstract class AbstractObject
The abstract piece of data that the MESSI Framework works with. This is the top-most class of the object hierarchy.
LocalAbstractObject
,
NoDataObject
,
Serialized FormConstructor Summary | |
---|---|
protected |
AbstractObject()
Creates a new instance of AbstractObject. |
protected |
AbstractObject(AbstractObject source)
Creates a new instance of AbstractObject. |
protected |
AbstractObject(AbstractObjectKey objectKey)
Creates a new instance of AbstractObject. |
protected |
AbstractObject(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of AbstractObject loaded from binary input. |
protected |
AbstractObject(java.lang.String locatorURI)
Creates a new instance of AbstractObject. |
Method Summary | |
---|---|
protected int |
binarySerialize(BinaryOutput output,
BinarySerializator serializator)
Binary-serialize this object into the output . |
void |
clearSurplusData()
Clear non-messif data stored in this object. |
AbstractObject |
clone()
Creates and returns a shallow copy of this object. |
AbstractObject |
clone(AbstractObjectKey objectKey)
Creates and returns a copy of this object with changed locatorURI. |
protected int |
getBinarySize(BinarySerializator serializator)
Returns the exact size of the binary-serialized version of this object in bytes. |
java.lang.String |
getLocatorURI()
Returns the locator URI of this object. |
NoDataObject |
getNoDataObject()
Returns this object as no-data object. |
UniqueID |
getObjectID()
Returns the ID of this object |
AbstractObjectKey |
getObjectKey()
Returns the object key. |
void |
setObjectKey(AbstractObjectKey objectKey)
Set the object key |
java.lang.String |
toString()
Returns a string representation of this abstract object. |
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 |
---|
protected AbstractObject()
protected AbstractObject(AbstractObjectKey objectKey)
objectKey
- the key to be associated with this objectprotected AbstractObject(java.lang.String locatorURI)
AbstractObjectKey
is generated for
the specified locatorURI
.
locatorURI
- the locator URI for the new objectprotected AbstractObject(AbstractObject source)
AbstractObjectKey
, the key is
replaced with an instance of AbstractObjectKey
that
copies the locator URI.
source
- the object from which to copy the IDprotected AbstractObject(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the input to read the AbstractObject fromserializator
- the serializator used to write objects
java.io.IOException
- if there was an I/O error reading from the inputMethod Detail |
---|
public UniqueID getObjectID()
public AbstractObjectKey getObjectKey()
public void setObjectKey(AbstractObjectKey objectKey)
objectKey
- the new object keypublic java.lang.String getLocatorURI()
public void clearSurplusData()
AbstractObjectKey
if
not null. The transformation only preserves the locator URI, all
additional information is lost.
clearSurplusData
in interface Clearable
public NoDataObject getNoDataObject()
NoDataObject
public AbstractObject clone() throws java.lang.CloneNotSupportedException
clone
in class UniqueID
java.lang.CloneNotSupportedException
- if the object's class does not support clonning or there was an errorpublic final AbstractObject clone(AbstractObjectKey objectKey) throws java.lang.CloneNotSupportedException
objectKey
- new object key
java.lang.CloneNotSupportedException
- if the object's class does not support clonning or there was an errorpublic java.lang.String toString()
toString
in class UniqueID
protected int binarySerialize(BinaryOutput output, BinarySerializator serializator) throws java.io.IOException
output
.
binarySerialize
in class UniqueID
output
- the output that this object is binary-serialized intoserializator
- the serializator used to write objects
java.io.IOException
- if there was an I/O error during serializationprotected int getBinarySize(BinarySerializator serializator)
getBinarySize
in class UniqueID
serializator
- the serializator used to write objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |