org.opennms.netmgt.xml.event
Class Events

java.lang.Object
  extended by org.opennms.netmgt.xml.event.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 clearEvent()
          Method clearEvent
 java.util.Enumeration enumerateEvent()
          Method enumerateEvent
 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
 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
 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.
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

clearEvent

public void clearEvent()
Method clearEvent


enumerateEvent

public java.util.Enumeration enumerateEvent()
Method enumerateEvent

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

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

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.

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.