-
- All Known Implementing Classes:
SDOSequence
public interface SequenceA sequence is a heterogeneous list ofpropertiesand corresponding values. It represents an ordered arbitrary mixture of data values from more than one property of adata object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidadd(int index, int propertyIndex, Object value)Adds a new entry with the specified property index and value at the specified entry index.voidadd(int index, Property property, Object value)Adds a new entry with the specified property and value at the specified entry index.booleanadd(int propertyIndex, Object value)Adds a new entry with the specified property index and value to the end of the entries.voidadd(int index, String text)Deprecated.replaced byaddText(int, String)in 2.1.0voidadd(int index, String propertyName, Object value)Adds a new entry with the specified property name and value at the specified entry index.booleanadd(Property property, Object value)Adds a new entry with the specified property and value to the end of the entries.voidadd(String text)Deprecated.replaced byaddText(String)in 2.1.0booleanadd(String propertyName, Object value)Adds a new entry with the specified property name and value to the end of the entries.voidaddText(int index, String text)Adds a new text entry at the given index.voidaddText(String text)Adds a new text entry to the end of the Sequence.PropertygetProperty(int index)Returns the property for the given entry index.ObjectgetValue(int index)Returns the property value for the given entry index.voidmove(int toIndex, int fromIndex)Moves the entry atfromIndextotoIndex.voidremove(int index)Removes the entry at the given entry index.ObjectsetValue(int index, Object value)Sets the entry at a specified index to the new value.intsize()Returns the number of entries in the sequence.
-
-
-
Method Detail
-
size
int size()
Returns the number of entries in the sequence.- Returns:
- the number of entries.
-
getProperty
Property getProperty(int index)
Returns the property for the given entry index. Returnsnullfor mixed text entries.- Parameters:
index- the index of the entry.- Returns:
- the property or
nullfor the given entry index.
-
getValue
Object getValue(int index)
Returns the property value for the given entry index.- Parameters:
index- the index of the entry.- Returns:
- the value for the given entry index.
-
setValue
Object setValue(int index, Object value)
Sets the entry at a specified index to the new value.- Parameters:
index- the index of the entry.value- the new value for the entry.
-
add
boolean add(String propertyName, Object value)
Adds a new entry with the specified property name and value to the end of the entries.- Parameters:
propertyName- the name of the entry's property.value- the value for the entry.
-
add
boolean add(int propertyIndex, Object value)Adds a new entry with the specified property index and value to the end of the entries.- Parameters:
propertyIndex- the index of the entry's property.value- the value for the entry.
-
add
boolean add(Property property, Object value)
Adds a new entry with the specified property and value to the end of the entries.- Parameters:
property- the property of the entry.value- the value for the entry.
-
add
void add(int index, String propertyName, Object value)Adds a new entry with the specified property name and value at the specified entry index.- Parameters:
index- the index at which to add the entry.propertyName- the name of the entry's property.value- the value for the entry.
-
add
void add(int index, int propertyIndex, Object value)Adds a new entry with the specified property index and value at the specified entry index.- Parameters:
index- the index at which to add the entry.propertyIndex- the index of the entry's property.value- the value for the entry.
-
add
void add(int index, Property property, Object value)Adds a new entry with the specified property and value at the specified entry index.- Parameters:
index- the index at which to add the entry.property- the property of the entry.value- the value for the entry.
-
remove
void remove(int index)
Removes the entry at the given entry index.- Parameters:
index- the index of the entry.
-
move
void move(int toIndex, int fromIndex)Moves the entry atfromIndextotoIndex.- Parameters:
toIndex- the index of the entry destination.fromIndex- the index of the entry to move.
-
add
void add(String text)
Deprecated.replaced byaddText(String)in 2.1.0
-
add
void add(int index, String text)Deprecated.replaced byaddText(int, String)in 2.1.0
-
addText
void addText(String text)
Adds a new text entry to the end of the Sequence.- Parameters:
text- value of the entry.
-
addText
void addText(int index, String text)Adds a new text entry at the given index.- Parameters:
index- the index at which to add the entry.text- value of the entry.
-
-