|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.AbstractDisposable | +--gumbo.util.AbstractDelegatable | +--gumbo.util.AbstractDelegatable.Serial | +--gumbo.util.relation.AbstractRelation | +--gumbo.util.relation.AbstractAssociate
A full implementation of the Associate interface, intended for use as a public or private delegate.
TODO: Finish implementation, especially update of relationship.
Nested Class Summary |
Nested classes inherited from class gumbo.util.AbstractDelegatable |
AbstractDelegatable.Serial |
Constructor Summary | |
AbstractAssociate(Relationship relationship)
Deprecated. Creates an instance with an uninitialized delegator. |
Method Summary | |
void |
addAssociate(Associate assoc)
Deprecated. Creates an association between this associate and another, and fires a change event. |
java.util.Set |
getAssociates()
Deprecated. Returns an immutable view of the immediate associates (Associate) of this associate. |
protected void |
implDispose()
Deprecated. Disconnects this associate from its associates. |
void |
implReadConnections(java.io.ObjectInputStream s)
Deprecated. 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)
Deprecated. Called by the system during serialization when this relation should write its connection references to the serial output stream. |
void |
removeAssociate(Associate assoc)
Deprecated. Destroys an association between this associate and another, and fires a change event. |
Methods inherited from class gumbo.util.relation.AbstractRelation |
canFindRelation, checkClearedRelationship, checkRelation, checkSettingRelationship, findRelation, getAddedConnectionOut, getRelationship, getRemovingConnectionOut, initedDelegator, setRelationship, toString |
Methods inherited from class gumbo.util.AbstractDelegatable |
getDelegator, initDelegator, initingDelegator, isDelegatorInited |
Methods inherited from class gumbo.util.AbstractDisposable |
dispose, isDisposed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gumbo.util.relation.Relation |
canFindRelation, findRelation, getAddedConnectionOut, getRelationship, getRemovingConnectionOut, setRelationship |
Methods inherited from interface gumbo.util.Disposable |
dispose, isDisposed |
Methods inherited from interface gumbo.util.Delegatable |
getDelegator, initDelegator, isDelegatorInited |
Constructor Detail |
public AbstractAssociate(Relationship relationship)
new AbstractAssociate(r).initDelegator(d)
.
relationship
- This relation's relationship. Null if none
(a dead relation).Method Detail |
public java.util.Set getAssociates()
Associate
getAssociates
in interface Associate
public void addAssociate(Associate assoc)
Associate
addAssociate
in interface Associate
assoc
- Associate to be added. Silently ignores null, self, and
duplicate associates.public void removeAssociate(Associate assoc)
Associate
removeAssociate
in interface Associate
assoc
- Associate to be removed. Silently ignores null and missing
associates.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
protected void implDispose()
implDispose
in class AbstractRelation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |