|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.enspire.collections.decorator.CollectionDecorator
com.enspire.collections.decorator.SetDecorator
com.enspire.gemini.bidirectional.BidirectionalSet
public class BidirectionalSet
This
Set
updates the corresponding opposite property of
its elements, both simple and container properties. It is intended
to represent one end of a bidirectional association. It must be supplied
with RelationshipUpdater
to know which property of the
containing objects represents the opposite end. It decorates another
Set
.
Constructor Summary | |
---|---|
BidirectionalSet()
|
Method Summary | |
---|---|
boolean |
add(java.lang.Object object)
Adds the object to the set and updates the opposite property of the added object. |
boolean |
addAll(java.util.Collection coll)
|
void |
clear()
Unsupported operation. |
protected java.util.Set |
getDecoratedSet()
|
java.lang.String |
getOppositeName()
Gets the name of the opposite property. |
java.lang.Object |
getOwner()
Gets the owner of this object. |
java.lang.Object |
getPropertyValue()
Gets the value (e.g. |
RelationshipUpdater |
getRelationshipUpdater()
Gets the updater of the another end of the represented relationship. |
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object object)
Removes the object from the set and updates the opposite property of the removed object. |
boolean |
removeAll(java.util.Collection coll)
|
boolean |
retainAll(java.util.Collection coll)
Unsupported operation. |
void |
setOppositeName(java.lang.String oppositeName)
Sets the name of the opposite property. |
void |
setOwner(java.lang.Object owner)
Sets the owner of this object. |
void |
setPropertyValue(java.lang.Object propertyValue)
Sets the value (e.g. |
void |
setRelationshipUpdater(RelationshipUpdater relationshipUpdater)
Sets the updater of the another end of the represented relationship. |
Methods inherited from class com.enspire.collections.decorator.SetDecorator |
---|
getDecoratedCollection |
Methods inherited from class com.enspire.collections.decorator.CollectionDecorator |
---|
contains, containsAll, isEmpty, size, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray |
Constructor Detail |
---|
public BidirectionalSet()
Method Detail |
---|
public RelationshipUpdater getRelationshipUpdater()
BidirectionalProperty
getRelationshipUpdater
in interface BidirectionalProperty
BidirectionalProperty.getRelationshipUpdater()
public void setRelationshipUpdater(RelationshipUpdater relationshipUpdater)
BidirectionalProperty
setRelationshipUpdater
in interface BidirectionalProperty
relationshipUpdater
- the updater of the another end of the represented relationshipBidirectionalProperty.setRelationshipUpdater(com.enspire.gemini.RelationshipUpdater)
public java.lang.String getOppositeName()
BidirectionalProperty
getOppositeName
in interface BidirectionalProperty
BidirectionalProperty.getOppositeName()
public void setOppositeName(java.lang.String oppositeName)
BidirectionalProperty
setOppositeName
in interface BidirectionalProperty
BidirectionalProperty.setOppositeName(java.lang.String)
public java.lang.Object getOwner()
BidirectionalProperty
getOwner
in interface BidirectionalProperty
BidirectionalProperty.getOwner()
public void setOwner(java.lang.Object owner)
BidirectionalProperty
setOwner
in interface BidirectionalProperty
owner
- new valueBidirectionalProperty.setOwner(java.lang.Object)
public java.lang.Object getPropertyValue()
BidirectionalProperty
getPropertyValue
in interface BidirectionalProperty
BidirectionalProperty.getPropertyValue()
public void setPropertyValue(java.lang.Object propertyValue)
BidirectionalProperty
setPropertyValue
in interface BidirectionalProperty
com.enspire.gemini.BidirectionalProperty#setPropertyValue(java.lang.String)
protected java.util.Set getDecoratedSet()
getDecoratedSet
in class com.enspire.collections.decorator.SetDecorator
SetDecorator.getDecoratedSet()
public boolean add(java.lang.Object object)
add
in interface java.util.Collection
add
in interface java.util.Set
add
in class com.enspire.collections.decorator.CollectionDecorator
Set.add(java.lang.Object)
public boolean remove(java.lang.Object object)
remove
in interface java.util.Collection
remove
in interface java.util.Set
remove
in class com.enspire.collections.decorator.CollectionDecorator
Set.remove(java.lang.Object)
public boolean addAll(java.util.Collection coll)
addAll
in interface java.util.Collection
addAll
in interface java.util.Set
addAll
in class com.enspire.collections.decorator.CollectionDecorator
Set.addAll(java.util.Collection)
public boolean removeAll(java.util.Collection coll)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.Set
removeAll
in class com.enspire.collections.decorator.CollectionDecorator
Set.removeAll(java.util.Collection)
public boolean retainAll(java.util.Collection coll)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.Set
retainAll
in class com.enspire.collections.decorator.CollectionDecorator
Set.retainAll(java.util.Collection)
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.Set
clear
in class com.enspire.collections.decorator.CollectionDecorator
Set.clear()
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Set
iterator
in class com.enspire.collections.decorator.CollectionDecorator
CollectionDecorator.iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |