org.backsource.alert
Class PropertyUtil

java.lang.Object
  extended byorg.backsource.alert.PropertyUtil

public class PropertyUtil
extends java.lang.Object

A singleton wich loads the xml definitions file, with some utility methods to use when parsing the xml.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Method Summary
static java.util.List getAgents()
          Get an Element list of al the agents in the alert xml file.
 org.w3c.dom.Document getAlertDocument()
          Loads the alert xml file from tne file given in PropertyConstants.DOCUMENT, defaults to alert.xml.
static java.util.Properties getProperties()
          Legacy method, should NOT be used.
static java.util.Properties getProperties(org.w3c.dom.Element element)
          Get all properties that where found under the given element.
static java.util.List getSenders()
          Get an Element list of al the senders in the alert xml file.
static java.util.List getValues(java.lang.String property)
          Get a list of values from a property with space separated values.
static PropertyUtil instance()
          Get the singleton instance wich owns the Document.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAlertDocument

public org.w3c.dom.Document getAlertDocument()
                                      throws java.lang.Exception
Loads the alert xml file from tne file given in PropertyConstants.DOCUMENT, defaults to alert.xml.

Throws:
java.lang.Exception

instance

public static PropertyUtil instance()
Get the singleton instance wich owns the Document.


getAgents

public static java.util.List getAgents()
                                throws java.lang.Exception
Get an Element list of al the agents in the alert xml file.

Throws:
java.lang.Exception

getSenders

public static java.util.List getSenders()
                                 throws java.lang.Exception
Get an Element list of al the senders in the alert xml file.

Throws:
java.lang.Exception

getProperties

public static java.util.Properties getProperties(org.w3c.dom.Element element)
                                          throws java.lang.Exception
Get all properties that where found under the given element.

Throws:
java.lang.Exception

getProperties

public static java.util.Properties getProperties()
                                          throws java.lang.Exception
Legacy method, should NOT be used.

Throws:
java.lang.Exception

getValues

public static java.util.List getValues(java.lang.String property)
Get a list of values from a property with space separated values.


main

public static void main(java.lang.String[] args)


Copyright © 2002-2004 Backsource. All Rights Reserved.