Overview

 
Package  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

commonj.sdo
Interface Sequence

All Known Subinterfaces:
ESequence

All Known Implementing Classes:
BasicESequence


public interface Sequence

A sequence is a heterogeneous list of properties and corresponding values. It represents an ordered arbitrary mixture of data values from more than one property of a data 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 property, Object value)
          Adds a new entry with the specified property and value at the specified entry index.
 void add(int index, String propertyName, Object value)
          Adds a new entry with the specified property name and value at the specified entry index.
 boolean add(Property property, Object value)
          Adds a new entry with the specified property and value to the end of the entries.
 boolean add(String propertyName, Object value)
          Adds a new entry with the specified property name and value to the end of the entries.
 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.
 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.
 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.
 

Method Detail

 

 

size

public int size()

Returns the number of entries in the sequence.

Returns:
the number of entries.


 

 

getProperty

public Property getProperty(int index)

Returns the property for the given entry index. Returns null for mixed text entries.

Parameters:
index - the index of the entry.
Returns:
the property or null for the given entry index.


 

 

getValue

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public void remove(int index)

Removes the entry at the given entry index.

Parameters:
index - the index of the entry


 

 

move

public void move(int toIndex,
                 int fromIndex)

Moves the entry at fromIndex to toIndex.

Parameters:
toIndex - the index of the entry destination.
fromIndex - the index of the entry to move.


 

Overview

 
Package  Use  Tree  Deprecated  Index  Help 
Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD