public class Row extends Object implements Serializable
Constructor and Description |
---|
Row() |
Modifier and Type | Method and Description |
---|---|
void |
addV(int index,
V vV) |
void |
addV(V vV) |
Enumeration<V> |
enumerateV()
Method enumerateV.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
T |
getT()
Returns the value of field 't'.
|
V[] |
getV()
Method getV.Returns the contents of the collection in an
Array.
|
V |
getV(int index)
Method getV.
|
List<V> |
getVCollection()
Method getVCollection.Returns a reference to '_vList'.
|
int |
getVCount()
Method getVCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<V> |
iterateV()
Method iterateV.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllV() |
boolean |
removeV(V vV)
Method removeV.
|
V |
removeVAt(int index)
Method removeVAt.
|
void |
setT(T t)
Sets the value of field 't'.
|
void |
setV(int index,
V vV) |
void |
setV(List<V> vVList)
Sets the value of '_vList' by copying the given Vector.
|
void |
setV(V[] vVArray) |
void |
setVCollection(List<V> vList)
Deprecated.
|
static Row |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addV(V vV) throws IndexOutOfBoundsException
vV
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addV(int index, V vV) throws IndexOutOfBoundsException
index
- vV
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<V> enumerateV()
public boolean equals(Object obj)
public T getT()
public V getV(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic V[] getV()
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<V> getVCollection()
public int getVCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<V> iterateV()
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 removeAllV()
public boolean removeV(V vV)
vV
- public V removeVAt(int index)
index
- public void setT(T t)
t
- the value of field 't'.public void setV(int index, V vV) throws IndexOutOfBoundsException
index
- vV
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setV(V[] vVArray)
vVArray
- public void setV(List<V> vVList)
vVList
- the Vector to copy.public void setVCollection(List<V> vList)
vList
- 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 © 2015. All rights reserved.