Enum LinkValidity

java.lang.Object
java.lang.Enum<LinkValidity>
com.day.cq.rewriter.linkchecker.LinkValidity
All Implemented Interfaces:
Serializable, Comparable<LinkValidity>, java.lang.constant.Constable

public enum LinkValidity extends Enum<LinkValidity>
LinkValidity defines the state of a link in respect to its validity.
  • Enum Constant Details

    • VALID

      public static final LinkValidity VALID
      internal or external link is valid
    • INVALID

      public static final LinkValidity INVALID
      internal or external link is invalid
    • EXPIRED

      public static final LinkValidity EXPIRED
      internal link has expired (i.e. offTime in past)
    • PREDATED

      public static final LinkValidity PREDATED
      internal link is predated (i.e. onTime in future)
    • PENDING

      public static final LinkValidity PENDING
      external link is pending (not (re)checked yet)
  • Method Details

    • values

      public static LinkValidity[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LinkValidity valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null