public class Relation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ABOUT
Refers to a resource that is the subject of the link's context.
|
static java.lang.String |
ALTERNATE
Refers to a substitute for this context.
|
static java.lang.String |
APPENDIX
Refers to an appendix.
|
static java.lang.String |
ARCHIVES
Refers to a collection of records, documents, or other materials of historical interest.
|
static java.lang.String |
AUTHOR
Refers to the context's author.
|
static java.lang.String |
BLOCKED_BY
Identifies the entity that blocks access to a resource following receipt of a legal demand.
|
static java.lang.String |
BOOKMARK
Gives a permanent link to use for bookmarking purposes.
|
static java.lang.String |
CANONICAL
Designates the preferred version of a resource (the IRI and its contents).
|
static java.lang.String |
CHAPTER
Refers to a chapter in a collection of resources.
|
static java.lang.String |
COLLECTION
The target IRI points to a resource which represents the collection resource for the context IRI.
|
static java.lang.String |
CONTENTS
Refers to a table of contents.
|
static java.lang.String |
CONVERTED_FROM
The document linked to was later converted to the document that contains this link relation.
|
static java.lang.String |
COPYRIGHT
Refers to a copyright statement that applies to the link's context.
|
static java.lang.String |
CREATE_FORM
The target IRI points to a resource where a submission form can be obtained.
|
static java.lang.String |
CURRENT
Refers to a resource containing the most recent item(s) in a collection of resources.
|
static java.lang.String |
DESCRIBED_BY
Refers to a resource providing information about the link's context.
|
static java.lang.String |
DESCRIBES
The relationship A 'describes' B asserts that resource A provides a description of resource B.
|
static java.lang.String |
DISCLOSURE
Refers to a list of patent disclosures made with respect to material for which 'disclosure'
relation is specified.
|
static java.lang.String |
DNS_PREFETCH
Used to indicate an origin that will be used to fetch required resources for the link context,
and that the user agent ought to resolve as early as possible.
|
static java.lang.String |
DUPLICATE
Refers to a resource whose available representations are byte-for-byte identical with the
corresponding representations of the context IRI.
|
static java.lang.String |
EDIT
Refers to a resource that can be used to edit the link's context.
|
static java.lang.String |
EDIT_FORM
The target IRI points to a resource where a submission form for editing associated resource can be obtained.
|
static java.lang.String |
EDIT_MEDIA
Refers to a resource that can be used to edit media associated with the link's context.
|
static java.lang.String |
ENCLOSURE
Identifies a related resource that is potentially large and might require special handling.
|
static java.lang.String |
FIRST
An IRI that refers to the furthest preceding resource in a series of resources.
|
static java.lang.String |
GLOSSARY
Refers to a glossary of terms.
|
static java.lang.String |
HELP
Refers to context-sensitive help.
|
static java.lang.String |
HOSTS
Refers to a resource hosted by the server indicated by the link context.
|
static java.lang.String |
HUB
Refers to a hub that enables registration for notification of updates to the context.
|
static java.lang.String |
ICON
Refers to an icon representing the link's context.
|
static java.lang.String |
INDEX
Refers to an index.
|
static java.lang.String |
ITEM
The target IRI points to a resource that is a member of the collection represented by the context IRI.
|
static java.lang.String |
LAST
An IRI that refers to the furthest following resource in a series of resources.
|
static java.lang.String |
LATEST_VERSION
Points to a resource containing the latest (e.g., current) version of the context.
|
static java.lang.String |
LICENSE
Refers to a license associated with this context.
|
static java.lang.String |
LRDD
Refers to further information about the link's context, expressed as a LRDD ("Link-based Resource
Descriptor Document") resource.
|
static java.lang.String |
MEMENTO
The Target IRI points to a Memento, a fixed resource that will not change state anymore.
|
static java.lang.String |
MONITOR
Refers to a resource that can be used to monitor changes in an HTTP resource.
|
static java.lang.String |
MONITOR_GROUP
Refers to a resource that can be used to monitor changes in a specified group of HTTP resources.
|
static java.lang.String |
NEXT
Indicates that the link's context is a part of a series, and that the next in the series is the link target.
|
static java.lang.String |
NEXT_ARCHIVE
Refers to the immediately following archive resource.
|
static java.lang.String |
NO_FOLLOW
Indicates that the context’s original author or publisher does not endorse the link target.
|
static java.lang.String |
NO_REFERRER
Indicates that no referrer information is to be leaked when following the link.
|
static java.lang.String |
ORIGINAL
The Target IRI points to an Original Resource.
|
static java.lang.String |
PAYMENT
ndicates a resource where payment is accepted.
|
static java.lang.String |
PINGBACK
Gives the address of the pingback resource for the link context.
|
static java.lang.String |
PRECONNECT
Used to indicate an origin that will be used to fetch required resources for the link context.
|
static java.lang.String |
PREDECESSOR_VERSION
Points to a resource containing the predecessor version in the version history.
|
static java.lang.String |
PREFETCH
The prefetch link relation type is used to identify a resource that might be required by the next navigation
from the link context, and that the user agent ought to fetch, such that the user agent can deliver a faster
response once the resource is requested in the future.
|
static java.lang.String |
PRELOAD
Refers to a resource that should be loaded early in the processing of the link's context,
without blocking rendering.
|
static java.lang.String |
PRERENDER
Used to identify a resource that might be required by the next navigation from the link context,
and that the user agent ought to fetch and execute, such that the user agent can deliver a
faster response once the resource is requested in the future.
|
static java.lang.String |
PREV
Indicates that the link's context is a part of a series, and that the previous in the series is the link target.
|
static java.lang.String |
PREV_ARCHIVE
Refers to the immediately preceding archive resource.
|
static java.lang.String |
PREVIEW
Refers to a resource that provides a preview of the link's context.
|
static java.lang.String |
PREVIOUS
Refers to the previous resource in an ordered series of resources.
|
static java.lang.String |
PRIVACY_POLICY
Refers to a privacy policy associated with the link's context.
|
static java.lang.String |
PROFILE
Identifying that a resource representation conforms to a certain profile, without affecting the
non-profile semantics of the resource representation.
|
static java.lang.String |
RELATED
Identifies a related resource.
|
static java.lang.String |
REPLIES
Identifies a resource that is a reply to the context of the link.
|
static java.lang.String |
RESTCONF
Identifies the root of RESTCONF API as configured on this HTTP server.
|
static java.lang.String |
SEARCH
Refers to a resource that can be used to search through the link's context and related resources.
|
static java.lang.String |
SECTION
Refers to a section in a collection of resources.
|
static java.lang.String |
SELF
Conveys an identifier for the link's context.
|
static java.lang.String |
SERVICE
Indicates a URI that can be used to retrieve a service document.
|
static java.lang.String |
START
Refers to the first resource in a collection of resources.
|
static java.lang.String |
STYLESHEET
Refers to a stylesheet.
|
static java.lang.String |
SUBSECTION
Refers to a resource serving as a subsection in a collection of resources.
|
static java.lang.String |
SUCCESSOR_VERSION
Points to a resource containing the successor version in the version history.
|
static java.lang.String |
TAG
Gives a tag (identified by the given address) that applies to the current document.
|
static java.lang.String |
TERMS_OF_SERVICE
Refers to the terms of service associated with the link's context.
|
static java.lang.String |
TIME_GATE
The Target IRI points to a TimeGate for an Original Resource.
|
static java.lang.String |
TIME_MAP
The Target IRI points to a TimeMap for an Original Resource.
|
static java.lang.String |
TYPE
Refers to a resource identifying the abstract semantic type of which the link's context is considered
to be an instance.
|
static java.lang.String |
UP
Refers to a parent document in a hierarchy of documents.
|
static java.lang.String |
VERSION_HISTORY
Points to a resource containing the version history for the context.
|
static java.lang.String |
VIA
Identifies a resource that is the source of the information in the link's context.
|
static java.lang.String |
WEB_MENTION
Identifies a target URI that supports the Webmention protcol.
|
static java.lang.String |
WORKING_COPY
Points to a working copy for this resource.
|
static java.lang.String |
WORKING_COPY_OF
Points to the versioned resource from which this working copy was obtained.
|
| Constructor and Description |
|---|
Relation(java.lang.String rel)
Constructs an instance of
Relation. |
Relation(java.net.URI rel)
Constructs an instance of
Relation that is an extension relation. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Determines if the instance of
Object provided is
equal to the calling Relation instance. |
int |
hashCode()
Generates hashcode represented as an integer for the calling
Relation instance. |
java.lang.Boolean |
isExtension()
Indicates whether the calling
Relation instance is an extension relation. |
java.lang.String |
toString()
Retrieves a textual representation of the relation.
|
public static final java.lang.String ABOUT
public static final java.lang.String ALTERNATE
public static final java.lang.String APPENDIX
public static final java.lang.String ARCHIVES
public static final java.lang.String AUTHOR
public static final java.lang.String BLOCKED_BY
public static final java.lang.String BOOKMARK
public static final java.lang.String CANONICAL
public static final java.lang.String CHAPTER
public static final java.lang.String COLLECTION
public static final java.lang.String CONTENTS
public static final java.lang.String CONVERTED_FROM
public static final java.lang.String COPYRIGHT
public static final java.lang.String CREATE_FORM
public static final java.lang.String CURRENT
public static final java.lang.String DESCRIBED_BY
public static final java.lang.String DESCRIBES
public static final java.lang.String DISCLOSURE
public static final java.lang.String DNS_PREFETCH
public static final java.lang.String DUPLICATE
public static final java.lang.String EDIT
public static final java.lang.String EDIT_FORM
public static final java.lang.String EDIT_MEDIA
public static final java.lang.String ENCLOSURE
public static final java.lang.String FIRST
public static final java.lang.String GLOSSARY
public static final java.lang.String HELP
public static final java.lang.String HOSTS
public static final java.lang.String HUB
public static final java.lang.String ICON
public static final java.lang.String INDEX
public static final java.lang.String ITEM
public static final java.lang.String LAST
public static final java.lang.String LATEST_VERSION
public static final java.lang.String LICENSE
public static final java.lang.String LRDD
public static final java.lang.String MEMENTO
public static final java.lang.String MONITOR
public static final java.lang.String MONITOR_GROUP
public static final java.lang.String NEXT
public static final java.lang.String NEXT_ARCHIVE
public static final java.lang.String NO_FOLLOW
public static final java.lang.String NO_REFERRER
public static final java.lang.String ORIGINAL
public static final java.lang.String PAYMENT
public static final java.lang.String PINGBACK
public static final java.lang.String PRECONNECT
public static final java.lang.String PREDECESSOR_VERSION
public static final java.lang.String PREFETCH
public static final java.lang.String PRELOAD
public static final java.lang.String PRERENDER
public static final java.lang.String PREV
public static final java.lang.String PREVIEW
public static final java.lang.String PREVIOUS
public static final java.lang.String PREV_ARCHIVE
public static final java.lang.String PRIVACY_POLICY
public static final java.lang.String PROFILE
public static final java.lang.String RELATED
public static final java.lang.String RESTCONF
public static final java.lang.String REPLIES
public static final java.lang.String SEARCH
public static final java.lang.String SECTION
public static final java.lang.String SELF
public static final java.lang.String SERVICE
public static final java.lang.String START
public static final java.lang.String STYLESHEET
public static final java.lang.String SUBSECTION
public static final java.lang.String SUCCESSOR_VERSION
public static final java.lang.String TAG
public static final java.lang.String TERMS_OF_SERVICE
public static final java.lang.String TIME_GATE
public static final java.lang.String TIME_MAP
public static final java.lang.String TYPE
public static final java.lang.String UP
public static final java.lang.String VERSION_HISTORY
public static final java.lang.String VIA
public static final java.lang.String WEB_MENTION
public static final java.lang.String WORKING_COPY
public static final java.lang.String WORKING_COPY_OF
public Relation(java.lang.String rel)
throws java.net.URISyntaxException
Relation.rel - The textual representation of the relation.java.net.URISyntaxException - Thrown if the textual representation of the relation
is not a registered relation, and is not a valid URI. All extension relations must
be in the form of a URI.public Relation(java.net.URI rel)
Relation that is an extension relation.rel - The URI representation of the extension relation.public boolean equals(java.lang.Object obj)
Object provided is
equal to the calling Relation instance.equals in class java.lang.Objectobj - The instance of Object being examined.true if the instances are equal; false otherwise.public int hashCode()
Relation instance.hashCode in class java.lang.ObjectRelation instance.public java.lang.Boolean isExtension()
Relation instance is an extension relation.true if the calling Relation instance is an extension relation;
false otherwise.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2017. All Rights Reserved.