|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--gumbo.util.Delegatables.DelegatableImm
|
+--gumbo.util.relation.Relations.RelationImm
A serializable immutable view wrapper for a target Relation. All accessors, including identity, forward to the target. All mutators throw an UnsupportedOperationException.
| Constructor Summary | |
Relations.RelationImm(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.DelegatableImm |
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.RelationImm(Relation target)
target - Wrapped target. Never null.| Method Detail |
public void setRelationship(Relationship relationship)
Relation
setRelationship in interface Relationrelationship - The relationship. Null if none (dead).public Relationship getRelationship()
Relation
getRelationship in interface Relationpublic boolean canFindRelation(java.lang.Object delegator)
Relation
canFindRelation in interface Relationdelegator - The delegator. Returns false if null.
public Relation findRelation(java.lang.Object delegator)
Relation
findRelation in interface Relationdelegator - The delegator. Never null.
public ConnectionField.EventOut getAddedConnectionOut()
Relation
getAddedConnectionOut in interface Relationpublic 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 Relations - 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 Relations - Output stream. Never null.
java.io.IOException
java.lang.ClassNotFoundExceptionpublic void dispose()
Disposable
dispose in interface Disposablepublic boolean isDisposed()
Disposable
isDisposed in interface Disposable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||