|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.DrbAbstractSequence
public abstract class DrbAbstractSequence
This class provides a skeletal implementation of the DrbSequence interface, to minimize the effort required to implement this interface.
| Constructor Summary | |
|---|---|
DrbAbstractSequence()
|
|
| Method Summary | |
|---|---|
DrbSequence |
addItem(DrbItem item)
Appends an item at the end of the item list. |
DrbSequence |
addItem(int index,
DrbItem item)
Inserts a item at a given position. |
ValueArray |
atomize()
The atomic values of this sequence. |
DrbSequence |
removeItem(int index)
Removes an existing item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.gael.drb.DrbSequence |
|---|
getItem, getLength |
| Constructor Detail |
|---|
public DrbAbstractSequence()
| Method Detail |
|---|
public ValueArray atomize()
atomize in interface DrbSequence
public DrbSequence addItem(int index,
DrbItem item)
throws NullPointerException,
UnsupportedOperationException,
IndexOutOfBoundsException
addItem in interface DrbSequenceindex - The expected index of the item after the insertion.item - A reference to the item to be inserted.
NullPointerException - This exception is raised when the passed item
a null reference. This exception may be overriden by an
UnsupportedOperationException.
IndexOutOfBoundsException - This exception is raised when the passe
index is less than zero or if it is greater or equal to the
number of item in the sequence prior the call
UnsupportedOperationException - This exception is raised when the
implementation does not support the requested insertion for any
reason (e.g. impossible in this current specific case or in
general).
public DrbSequence addItem(DrbItem item)
throws NullPointerException,
UnsupportedOperationException
Important note: The implementation of the node is not supposed to accept any kind of node For instance it may not be possible to append a node wrapping a file in an XML document. The documentation of the implementation shall describe its specific strategy.
Case of unordered or specifically ordered implementations: If the implementation does not support ordered children or has specific ordering rules, the node may not be appended but only inserted according to these rules. For instance it may not be possible to impose the file order in a directory:it generally depends on the lexicographical order of the node names or their creation date.
item - A reference to the item to be appended.
NullPointerException - This exception is raised when the passed node
a null reference.This exception may be overriden by an
UnsupportedOperationException.
UnsupportedOperationException - This exception is raised when the
implementation does not support the requested append for any
reason (e.g. impossible in this current specific case or in
general).
public DrbSequence removeItem(int index)
throws IndexOutOfBoundsException,
UnsupportedOperationException
removeItem in interface DrbSequenceindex - Index of the item to be removed.
IndexOutOfBoundsException - This exception is raised when the passed
index is less than zero or greater or equal to the current
number of children.
UnsupportedOperationException - This exception is raised when the
implementation does not support the requested removal for any
reason.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||