|
||||||||||
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.ListDecorator
com.enspire.gemini.bidirectional.BidirectionalList
public class BidirectionalList
This
List
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
List
.
Constructor Summary | |
---|---|
BidirectionalList()
|
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object object)
|
boolean |
add(java.lang.Object object)
Adds the object to the list and updates the opposite property of the added object. |
boolean |
addAll(java.util.Collection coll)
|
boolean |
addAll(int index,
java.util.Collection coll)
|
void |
clear()
Unsupported operation. |
protected java.util.List |
getDecoratedList()
|
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()
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object object)
Removes the object from the list and updates the opposite property of the removed object. |
boolean |
removeAll(java.util.Collection coll)
|
boolean |
retainAll(java.util.Collection coll)
Unsupported operation. |
java.lang.Object |
set(int index,
java.lang.Object object)
|
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. |
java.util.List |
subList(int fromIndex,
int toIndex)
|
Methods inherited from class com.enspire.collections.decorator.ListDecorator |
---|
get, getDecoratedCollection, indexOf, lastIndexOf |
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.List |
---|
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray |
Constructor Detail |
---|
public BidirectionalList()
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.List getDecoratedList()
getDecoratedList
in class com.enspire.collections.decorator.ListDecorator
ListDecorator.getDecoratedList()
public boolean add(java.lang.Object object)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class com.enspire.collections.decorator.CollectionDecorator
Collection.add(java.lang.Object)
public void add(int index, java.lang.Object object)
add
in interface java.util.List
add
in class com.enspire.collections.decorator.ListDecorator
ListDecorator.add(int, java.lang.Object)
public boolean remove(java.lang.Object object)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in class com.enspire.collections.decorator.CollectionDecorator
Collection.remove(java.lang.Object)
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class com.enspire.collections.decorator.ListDecorator
List.remove(int)
public boolean addAll(java.util.Collection coll)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class com.enspire.collections.decorator.CollectionDecorator
CollectionDecorator.addAll(java.util.Collection)
public boolean addAll(int index, java.util.Collection coll)
addAll
in interface java.util.List
addAll
in class com.enspire.collections.decorator.ListDecorator
Collection.addAll(java.util.Collection)
public boolean removeAll(java.util.Collection coll)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
removeAll
in class com.enspire.collections.decorator.CollectionDecorator
Collection.removeAll(java.util.Collection)
public java.lang.Object set(int index, java.lang.Object object)
set
in interface java.util.List
set
in class com.enspire.collections.decorator.ListDecorator
List.set(int, java.lang.Object)
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
subList
in class com.enspire.collections.decorator.ListDecorator
List.subList(int, int)
public boolean retainAll(java.util.Collection coll)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
retainAll
in class com.enspire.collections.decorator.CollectionDecorator
Collection.retainAll(java.util.Collection)
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class com.enspire.collections.decorator.CollectionDecorator
Collection.clear()
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
listIterator
in class com.enspire.collections.decorator.ListDecorator
ListDecorator.listIterator()
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
listIterator
in class com.enspire.collections.decorator.ListDecorator
ListDecorator.listIterator(int)
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
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 |