org.jclouds.openstack.domain
Enum Link.Relation

java.lang.Object
  extended by java.lang.Enum<Link.Relation>
      extended by org.jclouds.openstack.domain.Link.Relation
All Implemented Interfaces:
Serializable, Comparable<Link.Relation>
Enclosing class:
Link

public static enum Link.Relation
extends Enum<Link.Relation>

Relations associated with resources.


Enum Constant Summary
ALTERNATE
          an alternate representation of the resource.
BOOKMARK
          a permanent link to a resource that is appropriate for long term storage.
SELF
          a versioned link to the resource.
UNRECOGNIZED
          the value returned by the OpenStack service was not recognized.
 
Method Summary
static Link.Relation fromValue(String v)
           
 String value()
           
static Link.Relation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Link.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

SELF

public static final Link.Relation SELF
a versioned link to the resource. These links should be used in cases where the link will be followed immediately.


BOOKMARK

public static final Link.Relation BOOKMARK
a permanent link to a resource that is appropriate for long term storage.


ALTERNATE

public static final Link.Relation ALTERNATE
an alternate representation of the resource. For example, an OpenStack Compute image may have an alternate representation in the OpenStack Image service.


UNRECOGNIZED

public static final Link.Relation UNRECOGNIZED
the value returned by the OpenStack service was not recognized.

Method Detail

values

public static Link.Relation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Link.Relation c : Link.Relation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Link.Relation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

fromValue

public static Link.Relation fromValue(String v)


Copyright © 2009-2012 jclouds. All Rights Reserved.