Enum ValidateReply

    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      java.lang.Stringdescription
      The English description text message.
      booleanisValid
      Flag for valid.
      intvalue
      Fixed validity reply value in case the ordinal changes.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ValidateReplyfromReplyValue​(int value)
      Finds the reply from a reply value.
      booleanisValid()
      Checks if license is valid.
      static ValidateReplyvalueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ValidateReply[]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

      • NOT_INITIALIZED

        public static final ValidateReply NOT_INITIALIZED
        License has not been initialized.
      • LICENSEE_MISSING

        public static final ValidateReply LICENSEE_MISSING
        Licensee information is missing.
      • NOT_REGISTERED

        public static final ValidateReply NOT_REGISTERED
        License has not been registered, not even off-line.
      • VALID_TRIAL

        public static final ValidateReply VALID_TRIAL
        Valid trial license.
      • TRAIL_EXPIRED

        public static final ValidateReply TRAIL_EXPIRED
        Invalid trial license, trial period has expired.
      • VALID_ACTIVATION_REQUIRED

        public static final ValidateReply VALID_ACTIVATION_REQUIRED
        License is valid, but on-line activation is required.
      • BEFORE_VALIDITY_PERIOD

        public static final ValidateReply BEFORE_VALIDITY_PERIOD
        License validity is subject to a time period, and this period has not yet started.
      • AFTER_VALIDITY_PERIOD

        public static final ValidateReply AFTER_VALIDITY_PERIOD
        License validity is subject to a time period, and this period has reached its end.
      • ACTIVATION_PERIOD_EXHAUSTED

        public static final ValidateReply ACTIVATION_PERIOD_EXHAUSTED
        License may still be valid, but has not been activated with the License Server for more than 10 days. The license is therefore considered as invalid.
      • BROKEN

        public static final ValidateReply BROKEN
        License has been broken and cannot recover, please request a new license.
    • Field Detail

      • value

        public final int value
        Fixed validity reply value in case the ordinal changes.
      • isValid

        public final boolean isValid
        Flag for valid.

        Please note that there might be another problem with the validity though. To verify this, a call to the license system must be done.

      • description

        public final java.lang.String description
        The English description text message.
    • Method Detail

      • values

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

        public static ValidateReply 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
      • isValid

        public boolean isValid()
        Checks if license is valid.
        Returns:
        true if valid ore valid trial license.

        Please note that there might be another problem with the validity though. To verify this, a call to the license system must be done.

      • fromReplyValue

        public static ValidateReply fromReplyValue​(int value)
        Finds the reply from a reply value.
        Parameters:
        value - The reply value to look up.
        Returns:
        The value, or null if not found.