com.xmatters.ibm.tivoli.datasync
Enum SupportedDeviceTypes

java.lang.Object
  extended by java.lang.Enum<SupportedDeviceTypes>
      extended by com.xmatters.ibm.tivoli.datasync.SupportedDeviceTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SupportedDeviceTypes>

public enum SupportedDeviceTypes
extends java.lang.Enum<SupportedDeviceTypes>

Contains all of the constant values for the supported device types

Author:
bneate, amagi

Enum Constant Summary
EMAIL
           
PHONE
           
SMS
           
 
Method Summary
 java.lang.String getDeleteXPath()
          Get the XPath expression used to determine if this device exists in Tivoli SRM or not
 java.lang.String getDeviceIdXPath()
          Get the XPath expression used to extract the device id out of the FindDevices AlarmPoint web service call
 java.lang.String getDeviceNameXPath()
          Get the XPath expression used to extract the device name out of the transformed device xml document
 java.lang.String getOwnerXPath()
          Get the XPath expression used to extract the owner out of the transformed device xml document
 java.lang.String toString()
          Get the string representation of this device type
static SupportedDeviceTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SupportedDeviceTypes[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EMAIL

public static final SupportedDeviceTypes EMAIL

PHONE

public static final SupportedDeviceTypes PHONE

SMS

public static final SupportedDeviceTypes SMS
Method Detail

values

public static SupportedDeviceTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SupportedDeviceTypes c : SupportedDeviceTypes.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SupportedDeviceTypes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Get the string representation of this device type

Overrides:
toString in class java.lang.Enum<SupportedDeviceTypes>

getDeleteXPath

public java.lang.String getDeleteXPath()
Get the XPath expression used to determine if this device exists in Tivoli SRM or not

Returns:
A XPath expression defining if this device should be deleted or not.

getOwnerXPath

public java.lang.String getOwnerXPath()
Get the XPath expression used to extract the owner out of the transformed device xml document

Returns:
The XPath expression to extract the device owner

getDeviceNameXPath

public java.lang.String getDeviceNameXPath()
Get the XPath expression used to extract the device name out of the transformed device xml document

Returns:
The XPath expression to extract the device name

getDeviceIdXPath

public java.lang.String getDeviceIdXPath()
Get the XPath expression used to extract the device id out of the FindDevices AlarmPoint web service call

Returns:
The XPath expression to extract the device id