Enum Class ConnectionPolicy

java.lang.Object
java.lang.Enum<ConnectionPolicy>
com.isode.dsapi.config.ConnectionPolicy
All Implemented Interfaces:
Serializable, Comparable<ConnectionPolicy>, Constable

public enum ConnectionPolicy extends Enum<ConnectionPolicy>
Author:
kshi Enum ConnectionPolicy that lists the connection type address for shadowing operation with peer DSAs.
  • Enum Constant Details

  • Method Details

    • values

      public static ConnectionPolicy[] 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 ConnectionPolicy 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
    • getConnectionPolicy

      public static ConnectionPolicy getConnectionPolicy(String connectionpolicyStr)
      Parameters:
      connectionpolicyStr -
      Returns:
      ConnectionPolicy corresponding to the connectionpolicyStr
    • getConnectionPolicyFromText

      public static ConnectionPolicy getConnectionPolicyFromText(String userFriendlyStr)
      Parameters:
      userFriendlyStr -
      Returns:
      ConnectionPolicy based on userFriendlyStr
    • getConnectionPolicy

      public static ConnectionPolicy getConnectionPolicy(int index)
      Parameters:
      index -
      Returns:
      ConnectionPolicy corresponding to the index
    • getIndex

      public int getIndex()
      Returns:
      The position/index of the connection policy
    • userFriendlyStr

      public String userFriendlyStr()
      Returns:
      The string corresponding to the connection policy
    • getDescription

      public String getDescription()
      Returns:
      The connection policy description
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ConnectionPolicy>
      Returns:
      The connection policy string.
    • getConnectionStr

      public String getConnectionStr()
      Returns:
      The connection policy string.