Enum JmsDestination.DestinationType
- java.lang.Object
-
- java.lang.Enum<JmsDestination.DestinationType>
-
- org.opennms.netmgt.alarmd.northbounder.jms.JmsDestination.DestinationType
-
- All Implemented Interfaces:
Serializable
,Comparable<JmsDestination.DestinationType>
- Enclosing class:
- JmsDestination
public static enum JmsDestination.DestinationType extends Enum<JmsDestination.DestinationType>
The Enumeration DestinationType.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JmsDestination.DestinationType
fromValue(String v)
From value.String
value()
Value.static JmsDestination.DestinationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static JmsDestination.DestinationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUEUE
public static final JmsDestination.DestinationType QUEUE
The queue.
-
TOPIC
public static final JmsDestination.DestinationType TOPIC
The topic.
-
-
Method Detail
-
values
public static JmsDestination.DestinationType[] 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 (JmsDestination.DestinationType c : JmsDestination.DestinationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JmsDestination.DestinationType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
Value.- Returns:
- the string
-
fromValue
public static JmsDestination.DestinationType fromValue(String v)
From value.- Parameters:
v
- the type as string- Returns:
- the destination type
-
-