Package de.xima.fc.mdl.enums
Enum EExternalUserRefType
- java.lang.Object
-
- java.lang.Enum<EExternalUserRefType>
-
- de.xima.fc.mdl.enums.EExternalUserRefType
-
- All Implemented Interfaces:
Serializable
,Comparable<EExternalUserRefType>
public enum EExternalUserRefType extends Enum<EExternalUserRefType>
Enum representing the type of external user reference.This enum is used to differentiate between different types of external user references.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM
Represents an external user reference that is associated with a custom type.EXTERNAL_INBOX
Represents an external user reference that is associated with an external inbox.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
buildExternalRefString(String ref)
static String
getRefString(String externalRef)
Returns the reference string from the provided external reference string.static EExternalUserRefType
getType(String externalRef)
Returns the type of external user reference based on the provided external reference string.static EExternalUserRefType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EExternalUserRefType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXTERNAL_INBOX
public static final EExternalUserRefType EXTERNAL_INBOX
Represents an external user reference that is associated with an external inbox.
-
CUSTOM
public static final EExternalUserRefType CUSTOM
Represents an external user reference that is associated with a custom type.
-
-
Method Detail
-
values
public static EExternalUserRefType[] 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 (EExternalUserRefType c : EExternalUserRefType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EExternalUserRefType 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
-
getType
public static EExternalUserRefType getType(String externalRef)
Returns the type of external user reference based on the provided external reference string.- Parameters:
externalRef
- the external reference string- Returns:
- the type of external user reference, or null if the type cannot be determined
-
-