|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Encapsulates the ability to modify SequenceContent objects. Created on Jul 22, 2003
Method Summary | |
Setter |
insertAfter(int index)
Return a Setter that inserts values after the index start. |
Setter |
insertBefore(int index)
Return a Setter that inserts values before teh index start. |
boolean |
removeRange(int start,
int end)
Remove the range [start,end]. |
Setter |
replaceRange(int start,
int end)
Return a Setter that replaces the range [start,end] |
Seq |
setAll(java.lang.Object val)
Set the entire contents of this collection from the given val. |
Setter |
setItem(int i)
Return a Setter that sets the item at index i. |
Methods inherited from interface org.nodal.model.Content.Editor |
modify, setValue |
Method Detail |
public Setter setItem(int i) throws IndexBoundsException
IndexBoundsException
public Seq setAll(java.lang.Object val) throws ConstraintFailure
val
- the value to set this object's contents to
ConstraintFailure
public Setter replaceRange(int start, int end) throws IndexBoundsException
IndexBoundsException
public boolean removeRange(int start, int end) throws IndexBoundsException
An equivalent operation can be performed by setting the Setter returned by replaceValue(start,end) to null.
IndexBoundsException
public Setter insertBefore(int index) throws IndexBoundsException
The IndexBoundsException is raised if start is an invalid index, unless start is 0 which will prepend values to this Sequence even if it is empty.
IndexBoundsException
public Setter insertAfter(int index) throws IndexBoundsException
The IndexBoundsException is raised if start is an invalid index, unless start is -1 which will append values to this Sequence even if it is empty.
IndexBoundsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |