Enum Class Selector.SelectorType

java.lang.Object
java.lang.Enum<Selector.SelectorType>
com.isode.dsapi.syntax.Selector.SelectorType
All Implemented Interfaces:
Serializable, Comparable<Selector.SelectorType>, Constable
Enclosing class:
Selector

public static enum Selector.SelectorType extends Enum<Selector.SelectorType>
An enumeration defining the different address formats that can be used to create a selector.
  • Enum Constant Details

    • HEX

      public static final Selector.SelectorType HEX
      Hex format begins with "'" and ends with "'H" and contains hex string (number of characters are multiple of 2)
    • IA5

      public static final Selector.SelectorType IA5
      IA5 format begins and ends with '"' and contains 1 or more characters from '0-9a-zA-Z+-.'
  • Method Details

    • values

      public static Selector.SelectorType[] 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

      public static Selector.SelectorType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • validateValue

      public abstract boolean validateValue(String value)
      Validates if the value is valid for this format.
      Parameters:
      value - Value to validate.
      Returns:
      TRUE if the value is valid, FALSE otherwise.
    • getValue

      public abstract String getValue(String str)
      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

      public abstract String getString(String value)
      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

      public abstract String getCanonicalValue(String value)
      Returns the canonical form of given value.
      Parameters:
      value - Value to convert.
      Returns:
      Canonical form; NULL if value is null