public interface DynObjectSet extends Disposable, IndexedVisitable, Observable
Modifier and Type | Interface and Description |
---|---|
static interface |
DynObjectSet.Notification |
Modifier and Type | Method and Description |
---|---|
void |
delete(DynObject dynObject)
Deletes a DynObject from this set.
|
long |
getSize()
Returns the number of
DynObject (s) contained in this
DynObjectSet. |
boolean |
isDeleteEnabled()
Tells if DynObject deletion is enabled into this set.
|
boolean |
isEmpty()
Indicates whether this DynObjectSet contains zero DynObjects.
|
boolean |
isUpdateEnabled()
Tells if DynObject updates are enabled into this set.
|
DisposableIterator |
iterator()
Returns an iterator over the elements in this collection, in the order
(if any) defined when the collection was obtained.
|
DisposableIterator |
iterator(long index)
Returns an iterator over the elements in this collection, in the order
(if any) defined when the collection was obtained.
|
void |
update(DynObject dynObject)
Updates a DynObject from this set.
|
dispose
accept
addObserver, deleteObserver, deleteObservers
long getSize() throws BaseException
DynObject
(s) contained in this
DynObjectSet.DynObject
(s) contained in this DynObjectSet.BaseException
DisposableIterator iterator(long index) throws BaseException
NOTE: if you use this method to get the iterator, you
must get sure the iterator is disposed (@see
Disposable.dispose()
) in any case, even if an error occurs
while getting the data. It is recommended to use the accept
methods instead, which handle everything for you.
Take into account the accept methods may use a fast iterator to
get the DynObjects.
index
- index of first element to be returned from the iterator (by a
call to the next method).BaseException
- if the index is out of range (index < 0 || index >
size()).Visitable.accept(org.gvsig.tools.visitor.Visitor)
,
IndexedVisitable.accept(org.gvsig.tools.visitor.Visitor, long)
DisposableIterator iterator() throws BaseException
NOTE: if you use this method to get the iterator, you
must get sure the iterator is disposed (@see
Disposable.dispose()
) in any case, even if an error occurs
while getting the data. It is recommended to use the accept
methods instead, which handle everything for you.
Take into account the accept methods may use a fast iterator to
get the DynObjects.
BaseException
Visitable.accept(org.gvsig.tools.visitor.Visitor)
,
IndexedVisitable.accept(org.gvsig.tools.visitor.Visitor, long)
boolean isEmpty() throws BaseException
BaseException
boolean isDeleteEnabled()
void delete(DynObject dynObject) throws BaseException
dynObject
- to removeBaseException
- if there is an error removing the DynObjectboolean isUpdateEnabled()
void update(DynObject dynObject) throws BaseException
dynObject
- to updateBaseException
- if there is an error updating the DynObject