public class Legend extends Object implements Serializable
| Constructor and Description | 
|---|
| Legend() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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() | 
public void addEntry(Entry vEntry) throws IndexOutOfBoundsException
vEntry - IndexOutOfBoundsException - if the index
 given is outside the bounds of the collectionpublic 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)
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
public 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 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 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 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.