Package org.opennms.netmgt.config.api
Enum UserConfig.ContactType
- java.lang.Object
-
- java.lang.Enum<UserConfig.ContactType>
-
- org.opennms.netmgt.config.api.UserConfig.ContactType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UserConfig.ContactType>
- Enclosing interface:
- UserConfig
public static enum UserConfig.ContactType extends java.lang.Enum<UserConfig.ContactType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description email
homePhone
microblog
mobilePhone
numericPage
pagerEmail
textPage
workPhone
xmppAddress
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserConfig.ContactType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UserConfig.ContactType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
email
public static final UserConfig.ContactType email
-
pagerEmail
public static final UserConfig.ContactType pagerEmail
-
xmppAddress
public static final UserConfig.ContactType xmppAddress
-
microblog
public static final UserConfig.ContactType microblog
-
numericPage
public static final UserConfig.ContactType numericPage
-
textPage
public static final UserConfig.ContactType textPage
-
workPhone
public static final UserConfig.ContactType workPhone
-
mobilePhone
public static final UserConfig.ContactType mobilePhone
-
homePhone
public static final UserConfig.ContactType homePhone
-
-
Method Detail
-
values
public static UserConfig.ContactType[] 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 (UserConfig.ContactType c : UserConfig.ContactType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserConfig.ContactType 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 namejava.lang.NullPointerException
- if the argument is null
-
-