Enum Class Redirect.RedirectionReason

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

public static enum Redirect.RedirectionReason extends Enum<Redirect.RedirectionReason>
Enumerated values representing RedirectionReason.
RedirectionReason ::= ENUMERATED {
        recipient-assigned-alternate-recipient (0),
        originator-requested-alternate-recipient (1),
        recipient-MD-assigned-alternate-recipient (2),
        alias (4),
        ic-synonym (110),
        ic-external-synonym (111),
        ic-ambiguous (112) 
}
  • Enum Constant Details

  • Method Details

    • values

      public static Redirect.RedirectionReason[] 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 Redirect.RedirectionReason 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
    • getValue

      public int getValue()
      Return the value of this RedirectionReason as an int
      Returns:
      the numeric value of this RedirectionReason
      See Also:
    • fromInt

      public static Redirect.RedirectionReason fromInt(int val)
      Determine the RedirectionReason for a particular integer.
      Parameters:
      val - the integer value
      Returns:
      the corresponding RedirectionReason, or null if none matches.
      See Also: