|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.ackd.Readers
public class Readers
Location for user to define readers and they're schedules.
| Constructor Summary | |
|---|---|
Readers()
|
|
| Method Summary | |
|---|---|
void |
addReader(int index,
Reader vReader)
|
void |
addReader(Reader vReader)
|
Enumeration<Reader> |
enumerateReader()
Method enumerateReader. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
Reader[] |
getReader()
Method getReader.Returns the contents of the collection in an Array. |
Reader |
getReader(int index)
Method getReader. |
List<Reader> |
getReaderCollection()
Method getReaderCollection.Returns a reference to '_readerList'. |
int |
getReaderCount()
Method getReaderCount. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
Iterator<Reader> |
iterateReader()
Method iterateReader. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllReader()
|
boolean |
removeReader(Reader vReader)
Method removeReader. |
Reader |
removeReaderAt(int index)
Method removeReaderAt. |
void |
setReader(int index,
Reader vReader)
|
void |
setReader(List<Reader> vReaderList)
Sets the value of '_readerList' by copying the given Vector. |
void |
setReader(Reader[] vReaderArray)
|
void |
setReaderCollection(List<Reader> readerList)
Deprecated. |
static Readers |
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 Readers()
| Method Detail |
|---|
public void addReader(Reader vReader)
throws IndexOutOfBoundsException
vReader -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addReader(int index,
Reader vReader)
throws IndexOutOfBoundsException
index - vReader -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Reader> enumerateReader()
public boolean equals(Object obj)
equals in class Objectobj -
public Reader getReader(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Reader[] getReader()
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<Reader> getReaderCollection()
public int getReaderCount()
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<Reader> iterateReader()
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 removeAllReader()
public boolean removeReader(Reader vReader)
vReader -
public Reader removeReaderAt(int index)
index -
public void setReader(int index,
Reader vReader)
throws IndexOutOfBoundsException
index - vReader -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setReader(Reader[] vReaderArray)
vReaderArray - public void setReader(List<Reader> vReaderList)
vReaderList - the Vector to copy.public void setReaderCollection(List<Reader> readerList)
readerList - the Vector to set.
public static Readers 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 | |||||||||