Enum Class LinkRelation
- All Implemented Interfaces:
Serializable
,Comparable<LinkRelation>
,Constable
IANA registered link relations
Refer the link for details: http://www.iana.org/assignments/link-relations/link-relations.xhtml
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLink rel for aboutLink rel for alternateLink rel for authorLink rel for canonicalLink rel for childLink rel for down actionLink rel for edit actionLink rel for edit media actionLink rel for enclosureLink rel for iconLink rel for first pageLink rel for last pageLink rel for nextLink rel for previousLink rel for parentLink rel for predecessor versionLink rel for searchLink rel for selfLink rel for typeLink rel for up actionLink rel for version history -
Method Summary
Modifier and TypeMethodDescriptionrel()
Get link relstatic LinkRelation
Returns the enum constant of this class with the specified name.static LinkRelation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELF
Link rel for self -
EDIT
Link rel for edit action -
UP
Link rel for up action -
DOWN
Link rel for down action -
EDIT_MEDIA
Link rel for edit media action -
VERSIONS
Link rel for version history -
PARENT
Link rel for parent -
CHILD
Link rel for child -
ALTERNATE
Link rel for alternate -
PAGING_NEXT
Link rel for next -
PAGING_PREV
Link rel for previous -
PAGING_FIRST
Link rel for first page -
PAGING_LAST
Link rel for last page -
ENCLOSURE
Link rel for enclosure -
AUTHOR
Link rel for author -
CANONICAL
Link rel for canonical -
PREDECESSOR_VERSION
Link rel for predecessor version -
SEARCH
Link rel for search -
ICON
Link rel for icon -
TYPE
Link rel for type -
ABOUT
Link rel for about
-
-
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
-
rel
Get link rel- Returns:
- link rel
-