Package com.isode.dsapi.syntax
Enum Class Selector.SelectorType
- All Implemented Interfaces:
Serializable,Comparable<Selector.SelectorType>,Constable
- Enclosing class:
- Selector
An enumeration defining the different address formats that can be used to
create a selector.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetCanonicalValue(String value) Returns the canonical form of given value.abstract StringReturns the string of this format for the given value.abstract StringReturns the value stored in the string of this format.abstract booleanvalidateValue(String value) Validates if the value is valid for this format.static Selector.SelectorTypeReturns the enum constant of this class with the specified name.static Selector.SelectorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEX
Hex format begins with "'" and ends with "'H" and contains hex string (number of characters are multiple of 2) -
IA5
IA5 format begins and ends with '"' and contains 1 or more characters from '0-9a-zA-Z+-.'
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
validateValue
Validates if the value is valid for this format.- Parameters:
value- Value to validate.- Returns:
- TRUE if the value is valid, FALSE otherwise.
-
getValue
Returns the value stored in the string of this format.- Parameters:
str- String to extract the value from.- Returns:
- Extracted value; NULL if string is invalid
-
getString
Returns the string of this format for the given value.- Parameters:
value- Value to construct the string from.- Returns:
- Constructed string; NULL if value is invalid
-
getCanonicalValue
Returns the canonical form of given value.- Parameters:
value- Value to convert.- Returns:
- Canonical form; NULL if value is null
-