|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.xml.event.Events
public class Events
Class Events.
| Constructor Summary | |
|---|---|
Events()
|
|
| Method Summary | |
|---|---|
void |
addEvent(Event vEvent)
|
void |
addEvent(int index,
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(Event[] vEventArray)
|
void |
setEvent(int index,
Event vEvent)
|
void |
setEvent(List<Event> vEventList)
Sets the value of '_eventList' by copying the given Vector. |
void |
setEventCollection(List<Event> eventList)
Deprecated. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Events()
| Method Detail |
|---|
public void addEvent(Event vEvent)
throws IndexOutOfBoundsException
vEvent -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEvent(int index,
Event vEvent)
throws IndexOutOfBoundsException
index - vEvent -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Event> enumerateEvent()
public Event getEvent(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Event[] getEvent()
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<Event> getEventCollection()
public int getEventCount()
public Iterator<Event> iterateEvent()
public void removeAllEvent()
public boolean removeEvent(Event vEvent)
vEvent -
public Event removeEventAt(int index)
index -
public void setEvent(int index,
Event vEvent)
throws IndexOutOfBoundsException
index - vEvent -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setEvent(Event[] vEventArray)
vEventArray - public void setEvent(List<Event> vEventList)
vEventList - the Vector to copy.public void setEventCollection(List<Event> eventList)
eventList - the Vector to set.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||