gumbo.util.relation
Class TestRelation
java.lang.Object
|
+--gumbo.util.AbstractDisposable
|
+--gumbo.util.AbstractDelegatable
|
+--gumbo.util.AbstractDelegatable.Serial
|
+--gumbo.util.relation.AbstractRelation
|
+--gumbo.util.relation.TestRelation
- All Implemented Interfaces:
- Delegatable, Disposable, Relation, java.io.Serializable
- public class TestRelation
- extends AbstractRelation
Serializable object intended as a relation. Identity is
that of an ID string so that relation equivalence can be determined even
after serialization.
- Version:
- $Revision: 1.1 $
- Author:
- Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getId()
|
int |
hashCode()
|
void |
implReadConnections(java.io.ObjectInputStream s)
Called by the system during deserialization when this relation
should read its connection references from the serial input stream. |
void |
implWriteConnections(java.io.ObjectOutputStream s)
Called by the system during serialization when this relation
should write its connection references to the serial output stream. |
void |
setFriend(java.lang.Object friend)
Sets the friend relation connected to this relation. |
java.lang.String |
toString()
|
Methods inherited from class gumbo.util.relation.AbstractRelation |
canFindRelation, checkClearedRelationship, checkRelation, checkSettingRelationship, findRelation, getAddedConnectionOut, getRelationship, getRemovingConnectionOut, implDispose, initedDelegator, setRelationship |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TestRelation
public TestRelation(java.lang.String id,
Relationship relationship)
setFriend
public void setFriend(java.lang.Object friend)
- Sets the friend relation connected to this relation.
getId
public java.lang.String getId()
implWriteConnections
public void implWriteConnections(java.io.ObjectOutputStream s)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Description copied from interface:
Relation
- Called by the system during serialization when this relation
should write its connection references to the serial output stream.
Connection references must be declared as transient so that they
are written only by this method, which is called after all
relationship objects (delegators and relations) have been written
during normal serialization.
- Parameters:
s
- Output stream. Never null.
java.io.IOException
java.lang.ClassNotFoundException
implReadConnections
public void implReadConnections(java.io.ObjectInputStream s)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Description copied from interface:
Relation
- Called by the system during deserialization when this relation
should read its connection references from the serial input stream.
Connection references must be declared as transient so that they
are read only by this method, which is called after all
relationship objects (delegators and relations) have been read
during normal serialization.
- Parameters:
s
- Output stream. Never null.
java.io.IOException
java.lang.ClassNotFoundException
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractRelation
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object