|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.Delegatables.DelegatableWrapper | +--gumbo.util.relation.Relations.RelationWrapper
A serializable wrapper for a target Relation. All accessors, including identity, forward to the target.
Constructor Summary | |
Relations.RelationWrapper(Relation target)
|
Method Summary | |
boolean |
canFindRelation(java.lang.Object delegator)
Convenience method that returns true if a relation corresponding to a delegator can be found in this relation's relationship. |
void |
dispose()
Disposes this object and its dependencies, making this object inactive and unusable. |
Relation |
findRelation(java.lang.Object delegator)
Convenience method for getting the relation corresponding to a delegator in this relation's relationship. |
ConnectionField.EventOut |
getAddedConnectionOut()
Sends a connection involving this relation after the connection is created. |
Relationship |
getRelationship()
Gets the relationship that this relation belongs to. |
ConnectionField.EventOut |
getRemovingConnectionOut()
Sends a connection involving this relation before the connection is destroyed. |
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. |
boolean |
isDisposed()
Returns whether or not this object has been disposed (dispose() has been previously called). |
void |
setRelationship(Relationship relationship)
Sets the relationship that this relation belongs to. |
Methods inherited from class gumbo.util.Delegatables.DelegatableWrapper |
getDelegator, initDelegator, isDelegatorInited |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gumbo.util.Delegatable |
getDelegator, initDelegator, isDelegatorInited |
Constructor Detail |
public Relations.RelationWrapper(Relation target)
target
- Wrapped target. Never null.Method Detail |
public void setRelationship(Relationship relationship)
Relation
setRelationship
in interface Relation
relationship
- The relationship. Null if none (dead).public Relationship getRelationship()
Relation
getRelationship
in interface Relation
public boolean canFindRelation(java.lang.Object delegator)
Relation
canFindRelation
in interface Relation
delegator
- The delegator. Returns false if null.
public Relation findRelation(java.lang.Object delegator)
Relation
findRelation
in interface Relation
delegator
- The delegator. Never null.
public ConnectionField.EventOut getAddedConnectionOut()
Relation
getAddedConnectionOut
in interface Relation
public ConnectionField.EventOut getRemovingConnectionOut()
Relation
getRemovingConnectionOut
in interface Relation
public void implWriteConnections(java.io.ObjectOutputStream s) throws java.io.IOException, java.lang.ClassNotFoundException
Relation
implWriteConnections
in interface Relation
s
- Output stream. Never null.
java.io.IOException
java.lang.ClassNotFoundException
public void implReadConnections(java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundException
Relation
implReadConnections
in interface Relation
s
- Output stream. Never null.
java.io.IOException
java.lang.ClassNotFoundException
public void dispose()
Disposable
dispose
in interface Disposable
public boolean isDisposed()
Disposable
isDisposed
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |