public class Rows extends Object implements Serializable
Constructor and Description |
---|
Rows() |
Modifier and Type | Method and Description |
---|---|
void |
addRow(int index,
Row vRow) |
void |
addRow(Row vRow) |
Enumeration<Row> |
enumerateRow()
Method enumerateRow.
|
Row[] |
getRow()
Method getRow.Returns the contents of the collection in an
Array.
|
Row |
getRow(int index)
Method getRow.
|
List<Row> |
getRowCollection()
Method getRowCollection.Returns a reference to '_rowList'.
|
int |
getRowCount()
Method getRowCount.
|
boolean |
isValid()
Method isValid.
|
Iterator<Row> |
iterateRow()
Method iterateRow.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllRow() |
boolean |
removeRow(Row vRow)
Method removeRow.
|
Row |
removeRowAt(int index)
Method removeRowAt.
|
void |
setRow(int index,
Row vRow) |
void |
setRow(List<Row> vRowList)
Sets the value of '_rowList' by copying the given Vector.
|
void |
setRow(Row[] vRowArray) |
void |
setRowCollection(List<Row> rowList)
Deprecated.
|
static Rows |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addRow(Row vRow) throws IndexOutOfBoundsException
vRow
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addRow(int index, Row vRow) throws IndexOutOfBoundsException
index
- vRow
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Row> enumerateRow()
public Row getRow(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Row[] getRow()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Row> getRowCollection()
public int getRowCount()
public boolean isValid()
public Iterator<Row> iterateRow()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllRow()
public boolean removeRow(Row vRow)
vRow
- public Row removeRowAt(int index)
index
- public void setRow(int index, Row vRow) throws IndexOutOfBoundsException
index
- vRow
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setRow(Row[] vRowArray)
vRowArray
- public void setRow(List<Row> vRowList)
vRowList
- the Vector to copy.public void setRowCollection(List<Row> rowList)
rowList
- the Vector to set.public static Rows unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.