Enum Class ExternalLinkStatus
java.lang.Object
java.lang.Enum<ExternalLinkStatus>
com.gentics.contentnode.rest.model.linkchecker.ExternalLinkStatus
- All Implemented Interfaces:
Serializable
,Comparable<ExternalLinkStatus>
,java.lang.constant.Constable
REST Model of check stati values for external Links
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Get DB codestatic ExternalLinkStatus
getForCode
(int code) Get the status for the given code.static ExternalLinkStatus
Returns the enum constant of this class with the specified name.static ExternalLinkStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
invalid
Link is invalid -
unchecked
Link is unchecked -
valid
Link is valid
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getCode
public int getCode()Get DB code- Returns:
- code
-
getForCode
Get the status for the given code.- Parameters:
code
- code- Returns:
- status (returns unchecked, if code is not found)
-