|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.xml.eventconf.Events
public class Events
Class Events.
| Constructor Summary | |
|---|---|
Events()
|
|
| Method Summary | |
|---|---|
void |
addEvent(Event vEvent)
|
void |
addEvent(int index,
Event vEvent)
|
void |
addEventFile(int index,
String vEventFile)
|
void |
addEventFile(String vEventFile)
|
Enumeration<Event> |
enumerateEvent()
Method enumerateEvent. |
Enumeration<String> |
enumerateEventFile()
Method enumerateEventFile. |
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. |
String[] |
getEventFile()
Method getEventFile.Returns the contents of the collection in an Array. |
String |
getEventFile(int index)
Method getEventFile. |
List<String> |
getEventFileCollection()
Method getEventFileCollection.Returns a reference to '_eventFileList'. |
int |
getEventFileCount()
Method getEventFileCount. |
Global |
getGlobal()
Returns the value of field 'global'. |
boolean |
isValid()
Method isValid. |
Iterator<Event> |
iterateEvent()
Method iterateEvent. |
Iterator<String> |
iterateEventFile()
Method iterateEventFile. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllEvent()
|
void |
removeAllEventFile()
|
boolean |
removeEvent(Event vEvent)
Method removeEvent. |
Event |
removeEventAt(int index)
Method removeEventAt. |
boolean |
removeEventFile(String vEventFile)
Method removeEventFile. |
String |
removeEventFileAt(int index)
Method removeEventFileAt. |
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. |
void |
setEventFile(int index,
String vEventFile)
|
void |
setEventFile(List<String> vEventFileList)
Sets the value of '_eventFileList' by copying the given Vector. |
void |
setEventFile(String[] vEventFileArray)
|
void |
setEventFileCollection(List<String> eventFileList)
Deprecated. |
void |
setGlobal(Global global)
Sets the value of field 'global'. |
static Events |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 collection
public void addEventFile(String vEventFile)
throws IndexOutOfBoundsException
vEventFile -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEventFile(int index,
String vEventFile)
throws IndexOutOfBoundsException
index - vEventFile -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Event> enumerateEvent()
public Enumeration<String> enumerateEventFile()
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 String getEventFile(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getEventFile()
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<String> getEventFileCollection()
public int getEventFileCount()
public Global getGlobal()
public boolean isValid()
public Iterator<Event> iterateEvent()
public Iterator<String> iterateEventFile()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllEvent()
public void removeAllEventFile()
public boolean removeEvent(Event vEvent)
vEvent -
public Event removeEventAt(int index)
index -
public boolean removeEventFile(String vEventFile)
vEventFile -
public String removeEventFileAt(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 void setEventFile(int index,
String vEventFile)
throws IndexOutOfBoundsException
index - vEventFile -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setEventFile(String[] vEventFileArray)
vEventFileArray - public void setEventFile(List<String> vEventFileList)
vEventFileList - the Vector to copy.public void setEventFileCollection(List<String> eventFileList)
eventFileList - the Vector to set.public void setGlobal(Global global)
global - the value of field 'global'.
public static Events unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||