Package org.opennms.netmgt.xml.event
Class Events
- java.lang.Object
-
- org.opennms.netmgt.xml.event.Events
-
- All Implemented Interfaces:
Serializable
public class Events extends Object implements Serializable
Class Events.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Events()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addAllEvents(Events events)
void
addEvent(int index, Event vEvent)
void
addEvent(Event vEvent)
Enumeration<Event>
enumerateEvent()
Method enumerateEvent.Event[]
getEvent()
Method getEvent.Returns the contents of the collection in an Array.Event
getEvent(int index)
Method getEvent.List<Event>
getEventCollection()
Method getEventCollection.Returns a reference to '_eventList'.int
getEventCount()
Method getEventCount.Iterator<Event>
iterateEvent()
Method iterateEvent.void
removeAllEvent()
boolean
removeEvent(Event vEvent)
Method removeEvent.Event
removeEventAt(int index)
Method removeEventAt.void
setEvent(int index, Event vEvent)
void
setEvent(List<Event> vEventList)
Sets the value of '_eventList' by copying the given Vector.void
setEvent(Event[] vEventArray)
void
setEventCollection(List<Event> eventList)
Deprecated.String
toString()
-
-
-
Method Detail
-
addEvent
public void addEvent(Event vEvent) throws IndexOutOfBoundsException
- Parameters:
vEvent
-- Throws:
IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addEvent
public void addEvent(int index, Event vEvent) throws IndexOutOfBoundsException
- Parameters:
index
-vEvent
-- Throws:
IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
enumerateEvent
public Enumeration<Event> enumerateEvent()
Method enumerateEvent.- Returns:
- an Enumeration over all possible elements of this collection
-
getEvent
public Event getEvent(int index) throws IndexOutOfBoundsException
Method getEvent.- Parameters:
index
-- Returns:
- the value of the org.opennms.netmgt.xml.event.Event at the given index
- Throws:
IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
getEvent
public Event[] getEvent()
Method getEvent.Returns the contents of the collection in an Array.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.
- Returns:
- this collection as an Array
-
getEventCollection
public List<Event> getEventCollection()
Method getEventCollection.Returns a reference to '_eventList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getEventCount
public int getEventCount()
Method getEventCount.- Returns:
- the size of this collection
-
iterateEvent
public Iterator<Event> iterateEvent()
Method iterateEvent.- Returns:
- an Iterator over all possible elements in this collection
-
removeAllEvent
public void removeAllEvent()
-
removeEvent
public boolean removeEvent(Event vEvent)
Method removeEvent.- Parameters:
vEvent
-- Returns:
- true if the object was removed from the collection.
-
removeEventAt
public Event removeEventAt(int index)
Method removeEventAt.- Parameters:
index
-- Returns:
- the element removed from the collection
-
setEvent
public void setEvent(int index, Event vEvent) throws IndexOutOfBoundsException
- Parameters:
index
-vEvent
-- Throws:
IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setEvent
public void setEvent(Event[] vEventArray)
- Parameters:
vEventArray
-
-
setEvent
public void setEvent(List<Event> vEventList)
Sets the value of '_eventList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vEventList
- the Vector to copy.
-
setEventCollection
public void setEventCollection(List<Event> eventList)
Deprecated.Sets the value of '_eventList' by setting it to the given Vector. No type checking is performed.- Parameters:
eventList
- the Vector to set.
-
addAllEvents
public void addAllEvents(Events events)
-
-