public interface Sequence
properties
and corresponding values.
It represents an ordered arbitrary mixture of data values from more than one property of a data object
.Modifier and Type | Method and Description |
---|---|
void |
add(int index,
int propertyIndex,
java.lang.Object value)
Adds a new entry with the specified property index and value
at the specified entry index.
|
boolean |
add(int propertyIndex,
java.lang.Object value)
Adds a new entry with the specified property index and value
to the end of the entries.
|
void |
add(int index,
Property property,
java.lang.Object value)
Adds a new entry with the specified property and value
at the specified entry index.
|
void |
add(int index,
java.lang.String text)
Deprecated.
replaced by
addText(int, String) in 2.1.0 |
void |
add(int index,
java.lang.String propertyName,
java.lang.Object value)
Adds a new entry with the specified property name and value
at the specified entry index.
|
boolean |
add(Property property,
java.lang.Object value)
Adds a new entry with the specified property and value
to the end of the entries.
|
void |
add(java.lang.String text)
Deprecated.
replaced by
addText(String) in 2.1.0 |
boolean |
add(java.lang.String propertyName,
java.lang.Object value)
Adds a new entry with the specified property name and value
to the end of the entries.
|
void |
addText(int index,
java.lang.String text)
Adds a new text entry at the given index.
|
void |
addText(java.lang.String text)
Adds a new text entry to the end of the Sequence.
|
Property |
getProperty(int index)
Returns the property for the given entry index.
|
java.lang.Object |
getValue(int index)
Returns the property value for the given entry index.
|
void |
move(int toIndex,
int fromIndex)
Moves the entry at
fromIndex to toIndex . |
void |
remove(int index)
Removes the entry at the given entry index.
|
java.lang.Object |
setValue(int index,
java.lang.Object value)
Sets the entry at a specified index to the new value.
|
int |
size()
Returns the number of entries in the sequence.
|
int size()
Property getProperty(int index)
null
for mixed text entries.index
- the index of the entry.null
for the given entry index.java.lang.Object getValue(int index)
index
- the index of the entry.java.lang.Object setValue(int index, java.lang.Object value)
index
- the index of the entry.value
- the new value for the entry.boolean add(java.lang.String propertyName, java.lang.Object value)
propertyName
- the name of the entry's property.value
- the value for the entry.boolean add(int propertyIndex, java.lang.Object value)
propertyIndex
- the index of the entry's property.value
- the value for the entry.boolean add(Property property, java.lang.Object value)
property
- the property of the entry.value
- the value for the entry.void add(int index, java.lang.String propertyName, java.lang.Object value)
index
- the index at which to add the entry.propertyName
- the name of the entry's property.value
- the value for the entry.void add(int index, int propertyIndex, java.lang.Object value)
index
- the index at which to add the entry.propertyIndex
- the index of the entry's property.value
- the value for the entry.void add(int index, Property property, java.lang.Object value)
index
- the index at which to add the entry.property
- the property of the entry.value
- the value for the entry.void remove(int index)
index
- the index of the entry.void move(int toIndex, int fromIndex)
fromIndex
to toIndex
.toIndex
- the index of the entry destination.fromIndex
- the index of the entry to move.void add(java.lang.String text)
addText(String)
in 2.1.0void add(int index, java.lang.String text)
addText(int, String)
in 2.1.0void addText(java.lang.String text)
text
- value of the entry.void addText(int index, java.lang.String text)
index
- the index at which to add the entry.text
- value of the entry.