|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.poller.Outages
public class Outages
Top-level element for the poll-outages.xml configuration file.
| Constructor Summary | |
|---|---|
Outages()
|
|
| Method Summary | |
|---|---|
void |
addOutage(int index,
Outage vOutage)
|
void |
addOutage(Outage vOutage)
|
Enumeration<Outage> |
enumerateOutage()
Method enumerateOutage. |
Outage[] |
getOutage()
Method getOutage.Returns the contents of the collection in an Array. |
Outage |
getOutage(int index)
Method getOutage. |
List<Outage> |
getOutageCollection()
Method getOutageCollection.Returns a reference to '_outageList'. |
int |
getOutageCount()
Method getOutageCount. |
boolean |
isValid()
Method isValid. |
Iterator<Outage> |
iterateOutage()
Method iterateOutage. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllOutage()
|
boolean |
removeOutage(Outage vOutage)
Method removeOutage. |
Outage |
removeOutageAt(int index)
Method removeOutageAt. |
void |
setOutage(int index,
Outage vOutage)
|
void |
setOutage(List<Outage> vOutageList)
Sets the value of '_outageList' by copying the given Vector. |
void |
setOutage(Outage[] vOutageArray)
|
void |
setOutageCollection(List<Outage> outageList)
Deprecated. |
static Outages |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Outages()
| Method Detail |
|---|
public void addOutage(Outage vOutage)
throws IndexOutOfBoundsException
vOutage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addOutage(int index,
Outage vOutage)
throws IndexOutOfBoundsException
index - vOutage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Outage> enumerateOutage()
public Outage getOutage(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Outage[] getOutage()
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<Outage> getOutageCollection()
public int getOutageCount()
public boolean isValid()
public Iterator<Outage> iterateOutage()
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 removeAllOutage()
public boolean removeOutage(Outage vOutage)
vOutage -
public Outage removeOutageAt(int index)
index -
public void setOutage(int index,
Outage vOutage)
throws IndexOutOfBoundsException
index - vOutage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setOutage(Outage[] vOutageArray)
vOutageArray - public void setOutage(List<Outage> vOutageList)
vOutageList - the Vector to copy.public void setOutageCollection(List<Outage> outageList)
outageList - the Vector to set.
public static Outages 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 | ||||||||