Package com.day.cq.rewriter.linkchecker
Enum LinkValidity
- All Implemented Interfaces:
Serializable,Comparable<LinkValidity>,java.lang.constant.Constable
LinkValidity defines the state of a link in respect to its
validity.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkValidityReturns the enum constant of this type with the specified name.static LinkValidity[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VALID
internal or external link is valid -
INVALID
internal or external link is invalid -
EXPIRED
internal link has expired (i.e. offTime in past) -
PREDATED
internal link is predated (i.e. onTime in future) -
PENDING
external link is pending (not (re)checked yet)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-