Package org.restlet.ext.atom
Class Relation
- java.lang.Object
-
- org.restlet.ext.atom.Relation
-
public class Relation extends java.lang.ObjectEnumeration of relation types.- See Also:
- IANA Atom relations
-
-
Field Summary
Fields Modifier and Type Field Description static RelationALTERNATESignifies that the IRI in the value of the href attribute identifies an alternate version of the resource described by the containing element.static RelationCURRENTSignifies that the IRI returns a feed document containing the most recent entries in the feed.static RelationDESCRIBED_BYRelationship that asserts that resource B provides a description of resource A.static RelationEDITSignifies that the IRI in the value of the href attribute identifies a resource that is able to edit the current resource.static RelationEDIT_MEDIAAn IRI of an editable Media Resource.static RelationENCLOSURESignifies that the IRI in the value of the href attribute identifies a related resource that is potentially large in size and might require special handling.static RelationFIRSTSignifies that the IRI in the value of the href attribute identifies the first resource in a series including the current resource.static RelationHUBA URI for a hub that enables registration for real-time updates to the resource.static RelationLASTSignifies that the IRI in the value of the href attribute identifies the last resource in a series including the current resource.static RelationLAST_VERSIONWhen included on a versioned resource, this link points to a resource containing the latest (e.g., current) version.static RelationLICENSESignifies that the IRI in the value of the href attribute identifies the resource describing the license.private java.lang.StringnameThe name of the relation.static RelationNEXTSignifies that the IRI in the value of the href attribute identifies the next resource in a series including the current resource.static RelationNEXT_ARCHIVESignifies that the IRI in the value of the href attribute identifies the immediately following archive document.static RelationPAYMENTSignifies that the IRI in the value of the href attribute identifies where payment is accepted.static RelationPREDECESSOR_VERSIONWhen included on a versioned resource, this link points to a resource containing the predecessor version in the version history.static RelationPREVIOUSSignifies that the IRI in the value of the href attribute identifies the previous resource in a series including the current resource.static RelationPREVIOUS_ARCHIVEA URI that refers to the immediately preceding archive document.static RelationRELATEDSignifies that the IRI in the value of the href attribute identifies a resource related to the resource described by the containing element.static RelationREPLIESSignifies that the IRI in the value of the href attribute identifies a resource where responses to an entry may be found.static RelationSELFSignifies that the IRI in the value of the href attribute identifies a resource equivalent to the containing element.static RelationSERVICESignifies that the IRI in the value of the href attribute identifies a resource that can be used to retrieve an Atom Publishing Protocol Service Document as defined by RFC 5023.static RelationSUCCESSOR_VERSIONWhen included on a versioned resource, this link points to a resource containing the successor version in the version history.static RelationUPA URI that refers to a parent document in a hierarchy of documents.static RelationVERSION_HISTORYWhen included on a versioned resource, this link points to a resource containing the version history for this resource.static RelationVIASignifies that the IRI in the value of the href attribute identifies a resource that is the source of the information provided in the containing element.static RelationWORKING_COPYWhen included on a versioned resource, this link points to a working copy for this resource.static RelationWORKING_COPY_OFWhen included on a working copy, this link points to the versioned resource from which this working copy was obtained.
-
Constructor Summary
Constructors Constructor Description Relation(java.lang.String name)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)java.lang.StringgetName()Returns the name of the relation.inthashCode()java.lang.StringtoString()static java.lang.StringtoString(Relation rel)Return a String object representing the specified Relation.static RelationvalueOf(java.lang.String rel)Parses a relation name into the equivalent item.
-
-
-
Field Detail
-
ALTERNATE
public static final Relation ALTERNATE
Signifies that the IRI in the value of the href attribute identifies an alternate version of the resource described by the containing element.
-
CURRENT
public static final Relation CURRENT
Signifies that the IRI returns a feed document containing the most recent entries in the feed.
-
DESCRIBED_BY
public static final Relation DESCRIBED_BY
Relationship that asserts that resource B provides a description of resource A. There are no constraints on the format or representation of either A or B, neither are there any further constraints on either resource.
-
EDIT
public static final Relation EDIT
Signifies that the IRI in the value of the href attribute identifies a resource that is able to edit the current resource.
-
EDIT_MEDIA
public static final Relation EDIT_MEDIA
An IRI of an editable Media Resource. When appearing within an atom:entry, the href IRI can be used to retrieve, update and delete the Media Resource associated with that Entry.
-
ENCLOSURE
public static final Relation ENCLOSURE
Signifies that the IRI in the value of the href attribute identifies a related resource that is potentially large in size and might require special handling. For atom:link elements with rel="enclosure", the length attribute SHOULD be provided.
-
FIRST
public static final Relation FIRST
Signifies that the IRI in the value of the href attribute identifies the first resource in a series including the current resource.
-
HUB
public static final Relation HUB
A URI for a hub that enables registration for real-time updates to the resource.
-
LAST
public static final Relation LAST
Signifies that the IRI in the value of the href attribute identifies the last resource in a series including the current resource.
-
LAST_VERSION
public static final Relation LAST_VERSION
When included on a versioned resource, this link points to a resource containing the latest (e.g., current) version. The latest version is defined by the system. For linear versioning systems, this is probably the latest version by timestamp. For systems that support branching, there will be multiple latest versions, one for each branch in the version history. Some systems may allow multiple of these link relations.
-
LICENSE
public static final Relation LICENSE
Signifies that the IRI in the value of the href attribute identifies the resource describing the license.
-
NEXT
public static final Relation NEXT
Signifies that the IRI in the value of the href attribute identifies the next resource in a series including the current resource.
-
NEXT_ARCHIVE
public static final Relation NEXT_ARCHIVE
Signifies that the IRI in the value of the href attribute identifies the immediately following archive document.
-
PAYMENT
public static final Relation PAYMENT
Signifies that the IRI in the value of the href attribute identifies where payment is accepted.
-
PREDECESSOR_VERSION
public static final Relation PREDECESSOR_VERSION
When included on a versioned resource, this link points to a resource containing the predecessor version in the version history. Some systems may allow multiple of these link relations in the case of a multiple branches merging.
-
PREVIOUS
public static final Relation PREVIOUS
Signifies that the IRI in the value of the href attribute identifies the previous resource in a series including the current resource.
-
PREVIOUS_ARCHIVE
public static final Relation PREVIOUS_ARCHIVE
A URI that refers to the immediately preceding archive document.
-
RELATED
public static final Relation RELATED
Signifies that the IRI in the value of the href attribute identifies a resource related to the resource described by the containing element.
-
REPLIES
public static final Relation REPLIES
Signifies that the IRI in the value of the href attribute identifies a resource where responses to an entry may be found.
-
SELF
public static final Relation SELF
Signifies that the IRI in the value of the href attribute identifies a resource equivalent to the containing element.
-
SERVICE
public static final Relation SERVICE
Signifies that the IRI in the value of the href attribute identifies a resource that can be used to retrieve an Atom Publishing Protocol Service Document as defined by RFC 5023.
-
SUCCESSOR_VERSION
public static final Relation SUCCESSOR_VERSION
When included on a versioned resource, this link points to a resource containing the successor version in the version history. Some systems may allow multiple of these link relations in order to support branching.
-
UP
public static final Relation UP
A URI that refers to a parent document in a hierarchy of documents.
-
VERSION_HISTORY
public static final Relation VERSION_HISTORY
When included on a versioned resource, this link points to a resource containing the version history for this resource.
-
VIA
public static final Relation VIA
Signifies that the IRI in the value of the href attribute identifies a resource that is the source of the information provided in the containing element.
-
WORKING_COPY
public static final Relation WORKING_COPY
When included on a versioned resource, this link points to a working copy for this resource. Some systems may allow multiple of these link relations.
-
WORKING_COPY_OF
public static final Relation WORKING_COPY_OF
When included on a working copy, this link points to the versioned resource from which this working copy was obtained.
-
name
private java.lang.String name
The name of the relation.
-
-
Method Detail
-
toString
public static java.lang.String toString(Relation rel)
Return a String object representing the specified Relation.- Parameters:
rel- The relation to be converted.- Returns:
- The String representation of the argument.
-
valueOf
public static Relation valueOf(java.lang.String rel)
Parses a relation name into the equivalent item.- Parameters:
rel- The relation name to parse.- Returns:
- The equivalent item.
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
getName
public java.lang.String getName()
Returns the name of the relation.- Returns:
- The name of the relation.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-