|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sdo.util.VirtualSequence
public class VirtualSequence
SDO Sequance implementation which delegates to a Collection of DataObject properties.
Field Summary | |
---|---|
protected List |
delegateProperties
|
Constructor Summary | |
---|---|
VirtualSequence(DataObject object)
|
Method Summary | |
---|---|
void |
add(int index,
int propertyIndex,
Object value)
Adds a new entry with the specified property index and value at the specified entry index. |
boolean |
add(int propertyIndex,
Object value)
Adds a new entry with the specified property index and value to the end of the entries. |
void |
add(int index,
Property p,
Object value)
Adds a new entry with the specified property and value at the specified entry index. |
void |
add(int index,
String text)
Deprecated. |
void |
add(int index,
String propertyName,
Object value)
Adds a new entry with the specified property name and value at the specified entry index. |
protected static void |
add(Object value,
List list,
int index,
int size)
|
boolean |
add(Property p,
Object value)
Adds a new entry with the specified property and value to the end of the entries. |
protected static void |
add(Property property,
Object value,
Sequence toSequence,
int toIndex,
int size)
|
void |
add(String text)
Deprecated. |
boolean |
add(String propertyName,
Object value)
Adds a new entry with the specified property name and value to the end of the entries. |
void |
addText(int index,
String text)
Adds a new text entry at the given index. |
void |
addText(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. |
Object |
getValue(int index)
Returns the property value for the given entry index. |
protected int |
insert(Iterator iterator,
Property p,
Object value)
|
protected static boolean |
isSequenceProperty(Object property)
|
void |
move(int toIndex,
int fromIndex)
Moves the entry at fromIndex to toIndex . |
protected static void |
move(Sequence fromSequence,
int fromIndex,
Sequence toSequence,
int toIndex)
|
protected Property |
property(int index)
|
protected Property |
property(String name)
|
void |
remove(int index)
Removes the entry at the given entry index. |
Object |
setValue(int index,
Object value)
Sets the entry at a specified index to the new value. |
int |
size()
Returns the number of entries in the sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final List delegateProperties
Constructor Detail |
---|
public VirtualSequence(DataObject object)
Method Detail |
---|
protected static boolean isSequenceProperty(Object property)
public int size()
Sequence
size
in interface Sequence
public Property getProperty(int index)
Sequence
null
for mixed text entries.
getProperty
in interface Sequence
index
- the index of the entry.
null
for the given entry index.public Object getValue(int index)
Sequence
getValue
in interface Sequence
index
- the index of the entry.
public Object setValue(int index, Object value)
Sequence
setValue
in interface Sequence
index
- the index of the entry.value
- the new value for the entry.public final boolean add(Property p, Object value)
Sequence
add
in interface Sequence
p
- the property of the entry.value
- the value for the entry.protected final Property property(String name)
public boolean add(String propertyName, Object value)
Sequence
add
in interface Sequence
propertyName
- the name of the entry's property.value
- the value for the entry.protected final Property property(int index)
public boolean add(int propertyIndex, Object value)
Sequence
add
in interface Sequence
propertyIndex
- the index of the entry's property.value
- the value for the entry.protected final int insert(Iterator iterator, Property p, Object value)
public final void add(int index, Property p, Object value)
Sequence
add
in interface Sequence
index
- the index at which to add the entry.p
- the property of the entry.value
- the value for the entry.public void add(int index, String propertyName, Object value)
Sequence
add
in interface Sequence
index
- the index at which to add the entry.propertyName
- the name of the entry's property.value
- the value for the entry.public void add(int index, int propertyIndex, Object value)
Sequence
add
in interface Sequence
index
- the index at which to add the entry.propertyIndex
- the index of the entry's property.value
- the value for the entry.public final void addText(String text)
Sequence
addText
in interface Sequence
text
- value of the entry.public void add(String text)
add
in interface Sequence
public final void addText(int index, String text)
Sequence
addText
in interface Sequence
index
- the index at which to add the entry.text
- value of the entry.public void add(int index, String text)
add
in interface Sequence
public void remove(int index)
Sequence
remove
in interface Sequence
index
- the index of the entry.protected static void move(Sequence fromSequence, int fromIndex, Sequence toSequence, int toIndex)
protected static void add(Object value, List list, int index, int size)
protected static void add(Property property, Object value, Sequence toSequence, int toIndex, int size)
public void move(int toIndex, int fromIndex)
Sequence
fromIndex
to toIndex
.
move
in interface Sequence
toIndex
- the index of the entry destination.fromIndex
- the index of the entry to move.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |