|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.jasper.rrdtool.Data
public class Data
Class Data.
| Constructor Summary | |
|---|---|
Data()
|
|
| Method Summary | |
|---|---|
void |
addRow(int index,
Row vRow)
|
void |
addRow(Row vRow)
|
Enumeration<Row> |
enumerateRow()
Method enumerateRow. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
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. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
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 Data |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Data()
| Method Detail |
|---|
public void addRow(Row vRow)
throws IndexOutOfBoundsException
vRow -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public 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 boolean equals(Object obj)
equals in class Objectobj -
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 int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode in class Objectpublic 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.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 Data 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||