org.opennms.netmgt.config.poller
Class Outages

java.lang.Object
  extended by org.opennms.netmgt.config.poller.Outages
All Implemented Interfaces:
java.io.Serializable

public class Outages
extends java.lang.Object
implements java.io.Serializable

Top-level element for the poll-outages.xml configuration file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Outages()
           
 
Method Summary
 void addOutage(int index, Outage vOutage)
          Method addOutage
 void addOutage(Outage vOutage)
          Method addOutage
 void clearOutage()
          Method clearOutage
 java.util.Enumeration enumerateOutage()
          Method enumerateOutage
 Outage[] getOutage()
          Method getOutage
 Outage getOutage(int index)
          Method getOutage
 java.util.ArrayList getOutageCollection()
          Method getOutageCollection Returns a reference to 'outage'.
 int getOutageCount()
          Method getOutageCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeOutage(Outage vOutage)
          Method removeOutage
 void setOutage(java.util.ArrayList outageCollection)
          Method setOutage Sets the value of 'outage' by copying the given ArrayList.
 void setOutage(int index, Outage vOutage)
          Method setOutage
 void setOutage(Outage[] outageArray)
          Method setOutage
 void setOutageCollection(java.util.ArrayList outageCollection)
          Method setOutageCollection Sets the value of 'outage' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Outages

public Outages()
Method Detail

addOutage

public void addOutage(Outage vOutage)
               throws java.lang.IndexOutOfBoundsException
Method addOutage

Parameters:
vOutage -
Throws:
java.lang.IndexOutOfBoundsException

addOutage

public void addOutage(int index,
                      Outage vOutage)
               throws java.lang.IndexOutOfBoundsException
Method addOutage

Parameters:
index -
vOutage -
Throws:
java.lang.IndexOutOfBoundsException

clearOutage

public void clearOutage()
Method clearOutage


enumerateOutage

public java.util.Enumeration enumerateOutage()
Method enumerateOutage

Returns:
Enumeration

getOutage

public Outage getOutage(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getOutage

Parameters:
index -
Returns:
Outage
Throws:
java.lang.IndexOutOfBoundsException

getOutage

public Outage[] getOutage()
Method getOutage

Returns:
Outage

getOutageCollection

public java.util.ArrayList getOutageCollection()
Method getOutageCollection Returns a reference to 'outage'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getOutageCount

public int getOutageCount()
Method getOutageCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeOutage

public boolean removeOutage(Outage vOutage)
Method removeOutage

Parameters:
vOutage -
Returns:
boolean

setOutage

public void setOutage(int index,
                      Outage vOutage)
               throws java.lang.IndexOutOfBoundsException
Method setOutage

Parameters:
index -
vOutage -
Throws:
java.lang.IndexOutOfBoundsException

setOutage

public void setOutage(Outage[] outageArray)
Method setOutage

Parameters:
outageArray -

setOutage

public void setOutage(java.util.ArrayList outageCollection)
Method setOutage Sets the value of 'outage' by copying the given ArrayList.

Parameters:
outageCollection - the Vector to copy.

setOutageCollection

public void setOutageCollection(java.util.ArrayList outageCollection)
Method setOutageCollection Sets the value of 'outage' by setting it to the given ArrayList. No type checking is performed.

Parameters:
outageCollection - the ArrayList to copy.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.