Enum Registrar.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Registrar.Type>
    Enclosing class:
    Registrar

    public static enum Registrar.Type
    extends java.lang.Enum<Registrar.Type>
    Represents the type of a registrar entity.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      EXTERNAL_MONITORING
      A registrar used for external monitoring by ICANN.
      INTERNAL
      A registrar used for when the registry acts as a registrar.
      MONITORING
      A registrar used for internal monitoring.
      OTE
      A registrar account used by a real third-party registrar undergoing operational testing and evaluation.
      PDT
      A registrar used for predelegation testing.
      REAL
      A real-world, third-party registrar.
      TEST
      A registrar used for internal testing.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isValidIanaId​(java.lang.Long ianaId)
      Returns true if the given IANA identifier is valid for this registrar type.
      static Registrar.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Registrar.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • REAL

        public static final Registrar.Type REAL
        A real-world, third-party registrar. Should have non-null IANA and billing IDs.
      • OTE

        public static final Registrar.Type OTE
        A registrar account used by a real third-party registrar undergoing operational testing and evaluation. Should only be created in sandbox, and should have null IANA/billing IDs.
      • PDT

        public static final Registrar.Type PDT
        A registrar used for predelegation testing. Should have a null billing ID. The IANA ID should be either 9995 or 9996, which are reserved for predelegation testing.
      • EXTERNAL_MONITORING

        public static final Registrar.Type EXTERNAL_MONITORING
        A registrar used for external monitoring by ICANN. Should have IANA ID 9997 and a null billing ID.
      • INTERNAL

        public static final Registrar.Type INTERNAL
        A registrar used for when the registry acts as a registrar. Must have either IANA ID 9998 (for billable transactions) or 9999 (for non-billable transactions).
      • MONITORING

        public static final Registrar.Type MONITORING
        A registrar used for internal monitoring. Should have null IANA/billing IDs.
      • TEST

        public static final Registrar.Type TEST
        A registrar used for internal testing. Should have null IANA/billing IDs.
    • Method Detail

      • values

        public static Registrar.Type[] 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 (Registrar.Type c : Registrar.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Registrar.Type valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isValidIanaId

        public boolean isValidIanaId​(java.lang.Long ianaId)
        Returns true if the given IANA identifier is valid for this registrar type.