org.opennms.web.notification.parsers
Class NotificationsWriter
java.lang.Object
org.opennms.web.parsers.XMLWriter
org.opennms.web.notification.parsers.NotificationsWriter
public class NotificationsWriter
- extends XMLWriter
This class loads and saves information from the notifications.xml file
- Version:
- 1.1.1.1
- Author:
- Jason Johns , OpenNMS
|
Method Summary |
protected void |
saveDocument(Collection notifications)
This method creates a new DOM tree document that represents the data in
the collection. |
void |
setStatus(String aStatus)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationsWriter
public NotificationsWriter(String fileName)
throws XMLWriteException
- Default constructor, intializes the member variables
- Throws:
XMLWriteException
setStatus
public void setStatus(String aStatus)
saveDocument
protected void saveDocument(Collection notifications)
throws XMLWriteException
- This method creates a new DOM tree document that represents the data in
the collection. This document will be serialized to a file to save the
configuration.
- Specified by:
saveDocument in class XMLWriter
- Parameters:
notifications - the information to save.
- Throws:
XMLWriteException
Copyright ? 2007. All Rights Reserved.