project35.soa.alerts
Class AlertsBundle
java.lang.Object
project35.soa.alerts.AlertsBundle
public class AlertsBundle
- extends java.lang.Object
a collection of Alerts. This class can tell what alerts match
a given record model and can also return a collection of alerts
that relate to a particular record type
Copyright (c) 2008 Kevin Garwood for Project35. The original code was
developed by Kevin Garwood for the University of Manchester. Revisions
have been made for Project35, a project that is independent of that
institution. This code is licensed under the Academic Free License
version 3.0. The code attribution for the original code is included here:
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Method Summary |
java.util.ArrayList |
getAlerts()
|
java.util.ArrayList |
getAlerts(java.lang.String recordClassName)
gets the list of alerts from an alert bundle which are appropriate
for a record class name. |
java.lang.String |
getName()
|
java.net.URL |
getURL()
|
java.util.ArrayList |
matches(RecordModel recordModel)
|
void |
setFile(java.net.URL url)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlertsBundle
public AlertsBundle()
getURL
public java.net.URL getURL()
- Returns:
- the URL for the alert bundle
getName
public java.lang.String getName()
setFile
public void setFile(java.net.URL url)
throws Project35Exception,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
Project35Exception
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
matches
public java.util.ArrayList matches(RecordModel recordModel)
getAlerts
public java.util.ArrayList getAlerts(java.lang.String recordClassName)
- gets the list of alerts from an alert bundle which are appropriate
for a record class name.
- Parameters:
recordClassName
- type defined in the data model
- Returns:
- the alerts that are appropriate for a given
record type
getAlerts
public java.util.ArrayList getAlerts()
- Returns:
- a collection of all the alerts maintained in this bundle