|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Relation>
org.restlet.ext.atom.Relation
public enum Relation
Enumeration of relation types.
Enum Constant Summary | |
---|---|
ALTERNATE
Signifies that the IRI in the value of the href attribute identifies an alternate version of the resource described by the containing element. |
|
EDIT
Signifies that the IRI in the value of the href attribute identifies a resource that is able to edit the current resource. |
|
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. |
|
FIRST
Signifies that the IRI in the value of the href attribute identifies the first resource in a series including the current resource. |
|
LAST
Signifies that the IRI in the value of the href attribute identifies the last resource in a series including the current resource. |
|
NEXT
Signifies that the IRI in the value of the href attribute identifies the next resource in a series including the current resource. |
|
PREVIOUS
Signifies that the IRI in the value of the href attribute identifies the previous resource in a series including the current resource. |
|
RELATED
Signifies that the IRI in the value of the href attribute identifies a resource related to the resource described by the containing element. |
|
SELF
Signifies that the IRI in the value of the href attribute identifies a resource equivalent to the containing element. |
|
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. |
Method Summary | |
---|---|
static Relation |
parse(java.lang.String rel)
Parses a relation name into the equivalent enumeration item. |
static java.lang.String |
toString(Relation rel)
Return a String object representing the specified Relation. |
static Relation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Relation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Relation ALTERNATE
public static final Relation EDIT
public static final Relation ENCLOSURE
public static final Relation FIRST
public static final Relation LAST
public static final Relation NEXT
public static final Relation PREVIOUS
public static final Relation RELATED
public static final Relation SELF
public static final Relation VIA
Method Detail |
---|
public static Relation[] values()
for (Relation c : Relation.values()) System.out.println(c);
public static Relation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static Relation parse(java.lang.String rel)
rel
- The relation name to parse.
public static java.lang.String toString(Relation rel)
rel
- The relation to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |