public final class ReferenceID extends java.lang.Object implements ISerializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ABBREVIATION
The abbreviation used for this class during serialization.
|
| Constructor and Description |
|---|
ReferenceID()
Creates a new empty reference.
|
ReferenceID(SystemID system)
Creates a new reference that points to the specified system.
|
ReferenceID(SystemID system,
ObjectID object)
Creates a new reference to the specified object at
the specified location.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Determines whether two reference identifiers are equal.
|
ObjectID |
getObject()
Returns the identity of the referenced object.
|
SystemID |
getSystem()
Returns the location of the referenced object.
|
int |
hashCode()
Returns a hash code for the reference id that is based on its
system id and object id.
|
boolean |
isEmpty()
Determines whether the reference points to anything else
than null.
|
void |
readObject(IObjectInput input)
Reads the reference identifier from the stream.
|
void |
setObject(ObjectID object)
Sets the identity of the referenced object.
|
void |
setSystem(SystemID system)
Sets the location of the referenced object.
|
java.lang.String |
toString()
Returns a string representation.
|
void |
writeObject(IObjectOutput output)
Writes the reference identifier to the given stream.
|
public static final java.lang.String ABBREVIATION
public ReferenceID()
public ReferenceID(SystemID system)
system - The location of the registry.public boolean isEmpty()
public SystemID getSystem()
public void setSystem(SystemID system)
system - The location of the object.public ObjectID getObject()
public void setObject(ObjectID object)
object - The identity of the object.public void readObject(IObjectInput input) throws java.io.IOException
readObject in interface ISerializableinput - The stream to read from.java.io.IOException - Thrown if reading caused this exception.public void writeObject(IObjectOutput output) throws java.io.IOException
writeObject in interface ISerializableoutput - The stream to write to.java.io.IOException - If writing to the stream caused an exception.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare to.