public class Row extends Object implements Serializable
Constructor and Description |
---|
Row() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(int index,
Value vValue) |
void |
addValue(Value vValue) |
Enumeration<Value> |
enumerateValue()
Method enumerateValue.
|
Value[] |
getValue()
Method getValue.Returns the contents of the collection in an
Array.
|
Value |
getValue(int index)
Method getValue.
|
List<Value> |
getValueCollection()
Method getValueCollection.Returns a reference to
'_valueList'.
|
int |
getValueCount()
Method getValueCount.
|
boolean |
isValid()
Method isValid.
|
Iterator<Value> |
iterateValue()
Method iterateValue.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllValue() |
boolean |
removeValue(Value vValue)
Method removeValue.
|
Value |
removeValueAt(int index)
Method removeValueAt.
|
void |
setValue(int index,
Value vValue) |
void |
setValue(List<Value> vValueList)
Sets the value of '_valueList' by copying the given Vector.
|
void |
setValue(Value[] vValueArray) |
void |
setValueCollection(List<Value> valueList)
Deprecated.
|
static Row |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addValue(Value vValue) throws IndexOutOfBoundsException
vValue
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addValue(int index, Value vValue) throws IndexOutOfBoundsException
index
- vValue
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Value> enumerateValue()
public Value getValue(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Value[] getValue()
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<Value> getValueCollection()
public int getValueCount()
public boolean isValid()
public Iterator<Value> iterateValue()
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 removeAllValue()
public boolean removeValue(Value vValue)
vValue
- public Value removeValueAt(int index)
index
- public void setValue(int index, Value vValue) throws IndexOutOfBoundsException
index
- vValue
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setValue(Value[] vValueArray)
vValueArray
- public void setValue(List<Value> vValueList)
vValueList
- the Vector to copy.public void setValueCollection(List<Value> valueList)
valueList
- the Vector to set.public static Row 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.