Package org.cyclos.model.access.channels
Enum IdentificationMethod
- java.lang.Object
-
- java.lang.Enum<IdentificationMethod>
-
- org.cyclos.model.access.channels.IdentificationMethod
-
- All Implemented Interfaces:
Serializable,Comparable<IdentificationMethod>,HasMessageKey
public enum IdentificationMethod extends Enum<IdentificationMethod> implements HasMessageKey
Contains the default identification designation for channels that allows other identification methods others than principal types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOCOMPLETECONTACTSPRINCIPAL_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static IdentificationMethodvalueOf(String name)Returns the enum constant of this type with the specified name.static IdentificationMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTOCOMPLETE
public static final IdentificationMethod AUTOCOMPLETE
-
CONTACTS
public static final IdentificationMethod CONTACTS
-
PRINCIPAL_TYPE
public static final IdentificationMethod PRINCIPAL_TYPE
-
-
Method Detail
-
values
public static IdentificationMethod[] 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 (IdentificationMethod c : IdentificationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdentificationMethod 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-