|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.xml.eventconf.Events
Field Summary | |
private java.util.ArrayList |
_eventFileList
|
private java.util.ArrayList |
_eventList
|
private Global |
_global
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
Events()
|
Method Summary | |
void |
addEvent(Event vEvent)
|
void |
addEvent(int index,
Event vEvent)
|
void |
addEventFile(int index,
java.lang.String vEventFile)
|
void |
addEventFile(java.lang.String vEventFile)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
clearEvent()
|
void |
clearEventFile()
|
java.util.Enumeration |
enumerateEvent()
|
java.util.Enumeration |
enumerateEventFile()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
Event[] |
getEvent()
|
Event |
getEvent(int index)
|
java.util.Collection |
getEventCollection()
|
int |
getEventCount()
|
java.lang.String[] |
getEventFile()
|
java.lang.String |
getEventFile(int index)
|
java.util.Collection |
getEventFileCollection()
|
int |
getEventFileCount()
|
Global |
getGlobal()
Returns the value of field 'global'. |
boolean |
isValid()
|
void |
marshal(org.xml.sax.DocumentHandler handler)
|
void |
marshal(java.io.Writer out)
|
protected void |
notifyPropertyChangeListeners(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies all registered PropertyChangeListeners when a bound property's value changes. |
boolean |
removeEvent(Event vEvent)
|
boolean |
removeEventFile(java.lang.String vEventFile)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
void |
setEvent(Event[] eventArray)
|
void |
setEvent(int index,
Event vEvent)
|
void |
setEventCollection(java.util.Collection vEvent)
|
void |
setEventFile(int index,
java.lang.String vEventFile)
|
void |
setEventFile(java.lang.String[] eventFileArray)
|
void |
setEventFileCollection(java.util.Collection vEventFile)
|
void |
setGlobal(Global global)
Sets the value of field 'global'. |
static Events |
unmarshal(java.io.Reader reader)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Global _global
private java.util.ArrayList _eventList
private java.util.ArrayList _eventFileList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public Events()
Method Detail |
public void addEvent(Event vEvent) throws java.lang.IndexOutOfBoundsException
vEvent
-
java.lang.IndexOutOfBoundsException
public void addEvent(int index, Event vEvent) throws java.lang.IndexOutOfBoundsException
index
- vEvent
-
java.lang.IndexOutOfBoundsException
public void addEventFile(java.lang.String vEventFile) throws java.lang.IndexOutOfBoundsException
vEventFile
-
java.lang.IndexOutOfBoundsException
public void addEventFile(int index, java.lang.String vEventFile) throws java.lang.IndexOutOfBoundsException
index
- vEventFile
-
java.lang.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void clearEvent()
public void clearEventFile()
public java.util.Enumeration enumerateEvent()
public java.util.Enumeration enumerateEventFile()
public boolean equals(java.lang.Object obj)
obj
- public Event getEvent(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Event[] getEvent()
public java.util.Collection getEventCollection()
public int getEventCount()
public java.lang.String getEventFile(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public java.lang.String[] getEventFile()
public java.util.Collection getEventFileCollection()
public int getEventFileCount()
public Global getGlobal()
public boolean isValid()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.DocumentHandler handler) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void notifyPropertyChangeListeners(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)
fieldName
- the name of the property that has changed.newValue
- the new value of the property.oldValue
- the old value of the property.public boolean removeEvent(Event vEvent)
vEvent
- public boolean removeEventFile(java.lang.String vEventFile)
vEventFile
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public void setEvent(int index, Event vEvent) throws java.lang.IndexOutOfBoundsException
index
- vEvent
-
java.lang.IndexOutOfBoundsException
public void setEvent(Event[] eventArray)
eventArray
- public void setEventCollection(java.util.Collection vEvent)
vEvent
- public void setEventFile(int index, java.lang.String vEventFile) throws java.lang.IndexOutOfBoundsException
index
- vEventFile
-
java.lang.IndexOutOfBoundsException
public void setEventFile(java.lang.String[] eventFileArray)
eventFileArray
- public void setEventFileCollection(java.util.Collection vEventFile)
vEventFile
- public void setGlobal(Global global)
global
- the value of field 'global'.public static Events unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |