Enum Class LinkRelation
- All Implemented Interfaces:
Serializable, Comparable<LinkRelation>, Constable, NameAccessor
Represents a link relation describing the semantic relationship between
resources. For example, rel: "next" tells the client that the linked resource
is the next item in a sequence.
Enables Discovery: By using standardized or documented rel types, clients can navigate a HATEOAS API without needing hardcoded URLs.
Standardized link relations are defined by the IANA
Link Relations Registry, such as self, current or
first.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface NameAccessor
NameAccessor.NameBuilder<B>, NameAccessor.NameMutator, NameAccessor.NameProperty -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkRelationfromString(String aName) Determine theLinkRelationrepresented by the given name.getName()toString()Returns the name (as ofgetName()) for this link relation.static LinkRelationReturns 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
-
ABOUT
-
ACL
-
ALTERNATE
-
AMPHTML
-
API_CATALOG
-
APPENDIX
-
APPLE_TOUCH_ICON
-
APPLE_TOUCH_STARTUP_IMAGE
-
ARCHIVES
-
AUTHOR
-
BLOCKED_BY
-
BOOKMARK
-
C2PA_MANIFEST
-
CANONICAL
-
CHAPTER
-
CITE_AS
-
COLLECTION
-
COMPRESSION_DICTIONARY
-
CONTENTS
-
CONTENT
-
CONVERTEDFROM
-
COPYRIGHT
-
CREATE_FORM
-
CURRENT
-
DEPRECATION
-
DESCRIBEDBY
-
DESCRIBES
-
DISCLOSURE
-
DNS_PREFETCH
-
DUPLICATE
-
EDIT
-
EDIT_FORM
-
EDIT_MEDIA
-
ENCLOSURE
-
EXTERNAL
-
FIRST
-
GEOFEED
-
GLOSSARY
-
HELP
-
HOSTS
-
HUB
-
ICE_SERVER
-
ICON
-
INDEX
-
INTERVALAFTER
-
INTERVALBEFORE
-
INTERVALCONTAINS
-
INTERVALDISJOINT
-
INTERVALDURING
-
INTERVALEQUALS
-
INTERVALFINISHEDBY
-
INTERVALFINISHES
-
INTERVALIN
-
INTERVALMEETS
-
INTERVALMETBY
-
INTERVALOVERLAPPEDBY
-
INTERVALOVERLAPS
-
INTERVALSTARTEDBY
-
INTERVALSTARTS
-
ITEM
-
LAST
-
LATEST_VERSION
-
LICENSE
-
LINKSET
-
LRDD
-
MANIFEST
-
MASK_ICON
-
ME
-
MEDIA_FEED
-
MEMENTO
-
MICROPUB
-
MODULEPRELOAD
-
MONITOR
-
MONITOR_GROUP
-
NEXT
-
NEXT_ARCHIVE
-
NOFOLLOW
-
NOOPENER
-
NOREFERRER
-
OPENER
-
OPENID2_LOCAL_ID
-
OPENID2_PROVIDER
-
ORIGINAL
-
P3PV1
-
PARENT
-
PAYMENT
-
PINGBACK
-
PRECONNECT
-
PREDECESSOR_VERSION
-
PREFETCH
-
PRELOAD
-
PRERENDER
-
PREV
-
PREVIEW
-
PREVIOUS
-
PREV_ARCHIVE
-
PRIVACY_POLICY
-
PROFILE
-
PUBLICATION
-
RDAP_ACTIVE
-
RDAP_BOTTOM
-
RDAP_DOWN
-
RDAP_TOP
-
RDAP_UP
-
RELATED
-
RESTCONF
-
REPLIES
-
RULEINPUT
-
SEARCH
-
SECTION
-
SELF
-
SERVICE
-
SERVICE_DESC
-
SERVICE_DOC
-
SERVICE_META
-
SIP_TRUNKING_CAPABILITY
-
SPONSORED
-
START
-
STATUS
-
STYLESHEET
-
SUBSECTION
-
SUCCESSOR_VERSION
-
SUNSET
-
TAG
-
TERMS_OF_SERVICE
-
TIMEGATE
-
TIMEMAP
-
TYPE
-
UGC
-
UP
-
VERSION_HISTORY
-
VIA
-
WEBMENTION
-
WORKING_COPY
-
WORKING_COPY_OF
-
-
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
-
getName
- Specified by:
getNamein interfaceNameAccessor
-
fromString
Determine theLinkRelationrepresented by the given name.- Parameters:
aName- The name for which to determine theLinkRelation.- Returns:
- The determined
LinkRelationor null if none was determinable.
-
toString
Returns the name (as ofgetName()) for this link relation.- Overrides:
toStringin classEnum<LinkRelation>- Returns:
- The name of this link relation.
-