org.opennms.netmgt.xml.eventconf
Class Events

java.lang.Object
  extended by org.opennms.netmgt.xml.eventconf.Events
All Implemented Interfaces:
java.io.Serializable

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

Class Events.

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

Constructor Summary
Events()
           
 
Method Summary
 void addEvent(Event vEvent)
          Method addEvent
 void addEvent(int index, Event vEvent)
          Method addEvent
 void addEventFile(int index, java.lang.String vEventFile)
          Method addEventFile
 void addEventFile(java.lang.String vEventFile)
          Method addEventFile
 void clearEvent()
          Method clearEvent
 void clearEventFile()
          Method clearEventFile
 java.util.Enumeration enumerateEvent()
          Method enumerateEvent
 java.util.Enumeration enumerateEventFile()
          Method enumerateEventFile
 Event[] getEvent()
          Method getEvent
 Event getEvent(int index)
          Method getEvent
 java.util.ArrayList getEventCollection()
          Method getEventCollection Returns a reference to 'event'.
 int getEventCount()
          Method getEventCount
 java.lang.String[] getEventFile()
          Method getEventFile
 java.lang.String getEventFile(int index)
          Method getEventFile
 java.util.ArrayList getEventFileCollection()
          Method getEventFileCollection Returns a reference to 'eventFile'.
 int getEventFileCount()
          Method getEventFileCount
 Global getGlobal()
          Returns the value of field 'global'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeEvent(Event vEvent)
          Method removeEvent
 boolean removeEventFile(java.lang.String vEventFile)
          Method removeEventFile
 void setEvent(java.util.ArrayList eventCollection)
          Method setEvent Sets the value of 'event' by copying the given ArrayList.
 void setEvent(Event[] eventArray)
          Method setEvent
 void setEvent(int index, Event vEvent)
          Method setEvent
 void setEventCollection(java.util.ArrayList eventCollection)
          Method setEventCollection Sets the value of 'event' by setting it to the given ArrayList.
 void setEventFile(java.util.ArrayList eventFileCollection)
          Method setEventFile Sets the value of 'eventFile' by copying the given ArrayList.
 void setEventFile(int index, java.lang.String vEventFile)
          Method setEventFile
 void setEventFile(java.lang.String[] eventFileArray)
          Method setEventFile
 void setEventFileCollection(java.util.ArrayList eventFileCollection)
          Method setEventFileCollection Sets the value of 'eventFile' by setting it to the given ArrayList.
 void setGlobal(Global global)
          Sets the value of field 'global'.
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

Events

public Events()
Method Detail

addEvent

public void addEvent(Event vEvent)
              throws java.lang.IndexOutOfBoundsException
Method addEvent

Parameters:
vEvent -
Throws:
java.lang.IndexOutOfBoundsException

addEvent

public void addEvent(int index,
                     Event vEvent)
              throws java.lang.IndexOutOfBoundsException
Method addEvent

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

addEventFile

public void addEventFile(java.lang.String vEventFile)
                  throws java.lang.IndexOutOfBoundsException
Method addEventFile

Parameters:
vEventFile -
Throws:
java.lang.IndexOutOfBoundsException

addEventFile

public void addEventFile(int index,
                         java.lang.String vEventFile)
                  throws java.lang.IndexOutOfBoundsException
Method addEventFile

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

clearEvent

public void clearEvent()
Method clearEvent


clearEventFile

public void clearEventFile()
Method clearEventFile


enumerateEvent

public java.util.Enumeration enumerateEvent()
Method enumerateEvent

Returns:
Enumeration

enumerateEventFile

public java.util.Enumeration enumerateEventFile()
Method enumerateEventFile

Returns:
Enumeration

getEvent

public Event getEvent(int index)
               throws java.lang.IndexOutOfBoundsException
Method getEvent

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

getEvent

public Event[] getEvent()
Method getEvent

Returns:
Event

getEventCollection

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

Returns:
ArrayList

getEventCount

public int getEventCount()
Method getEventCount

Returns:
int

getEventFile

public java.lang.String getEventFile(int index)
                              throws java.lang.IndexOutOfBoundsException
Method getEventFile

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

getEventFile

public java.lang.String[] getEventFile()
Method getEventFile

Returns:
String

getEventFileCollection

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

Returns:
ArrayList

getEventFileCount

public int getEventFileCount()
Method getEventFileCount

Returns:
int

getGlobal

public Global getGlobal()
Returns the value of field 'global'. The field 'global' has the following description: Global settings for this configuration

Returns:
Global

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

removeEvent

public boolean removeEvent(Event vEvent)
Method removeEvent

Parameters:
vEvent -
Returns:
boolean

removeEventFile

public boolean removeEventFile(java.lang.String vEventFile)
Method removeEventFile

Parameters:
vEventFile -
Returns:
boolean

setEvent

public void setEvent(int index,
                     Event vEvent)
              throws java.lang.IndexOutOfBoundsException
Method setEvent

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

setEvent

public void setEvent(Event[] eventArray)
Method setEvent

Parameters:
eventArray -

setEvent

public void setEvent(java.util.ArrayList eventCollection)
Method setEvent Sets the value of 'event' by copying the given ArrayList.

Parameters:
eventCollection - the Vector to copy.

setEventCollection

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

Parameters:
eventCollection - the ArrayList to copy.

setEventFile

public void setEventFile(int index,
                         java.lang.String vEventFile)
                  throws java.lang.IndexOutOfBoundsException
Method setEventFile

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

setEventFile

public void setEventFile(java.lang.String[] eventFileArray)
Method setEventFile

Parameters:
eventFileArray -

setEventFile

public void setEventFile(java.util.ArrayList eventFileCollection)
Method setEventFile Sets the value of 'eventFile' by copying the given ArrayList.

Parameters:
eventFileCollection - the Vector to copy.

setEventFileCollection

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

Parameters:
eventFileCollection - the ArrayList to copy.

setGlobal

public void setGlobal(Global global)
Sets the value of field 'global'. The field 'global' has the following description: Global settings for this configuration

Parameters:
global - the value of field 'global'.

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.