|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.jasper.rrdtool.Legend
public class Legend
Class Legend.
| Constructor Summary | |
|---|---|
Legend()
|
|
| Method Summary | |
|---|---|
void |
addEntry(Entry vEntry)
|
void |
addEntry(int index,
Entry vEntry)
|
Enumeration<Entry> |
enumerateEntry()
Method enumerateEntry. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
Entry[] |
getEntry()
Method getEntry.Returns the contents of the collection in an Array. |
Entry |
getEntry(int index)
Method getEntry. |
List<Entry> |
getEntryCollection()
Method getEntryCollection.Returns a reference to '_entryList'. |
int |
getEntryCount()
Method getEntryCount. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
Iterator<Entry> |
iterateEntry()
Method iterateEntry. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllEntry()
|
boolean |
removeEntry(Entry vEntry)
Method removeEntry. |
Entry |
removeEntryAt(int index)
Method removeEntryAt. |
void |
setEntry(Entry[] vEntryArray)
|
void |
setEntry(int index,
Entry vEntry)
|
void |
setEntry(List<Entry> vEntryList)
Sets the value of '_entryList' by copying the given Vector. |
void |
setEntryCollection(List<Entry> entryList)
Deprecated. |
static Legend |
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 Legend()
| Method Detail |
|---|
public void addEntry(Entry vEntry)
throws IndexOutOfBoundsException
vEntry -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEntry(int index,
Entry vEntry)
throws IndexOutOfBoundsException
index - vEntry -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Entry> enumerateEntry()
public boolean equals(Object obj)
equals in class Objectobj -
public Entry getEntry(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Entry[] getEntry()
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<Entry> getEntryCollection()
public int getEntryCount()
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<Entry> iterateEntry()
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 removeAllEntry()
public boolean removeEntry(Entry vEntry)
vEntry -
public Entry removeEntryAt(int index)
index -
public void setEntry(int index,
Entry vEntry)
throws IndexOutOfBoundsException
index - vEntry -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setEntry(Entry[] vEntryArray)
vEntryArray - public void setEntry(List<Entry> vEntryList)
vEntryList - the Vector to copy.public void setEntryCollection(List<Entry> entryList)
entryList - the Vector to set.
public static Legend 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 | |||||||||