org.restlet.engine
Enum Edition

java.lang.Object
  extended by java.lang.Enum<Edition>
      extended by org.restlet.engine.Edition
All Implemented Interfaces:
Serializable, Comparable<Edition>

public enum Edition
extends Enum<Edition>

Enumeration of Restlet editions.

Author:
Jerome Louvel

Enum Constant Summary
ANDROID
          Android mobile OS, Google App Engine, Google Web Toolkit, JEE, JSE, OSGI.
GAE
           
GWT
           
JEE
           
JSE
           
OSGI
           
 
Field Summary
static Edition CURRENT
          The current engine edition.
 
Method Summary
 String getFullName()
          Returns the full size name of the edition.
 String getMediumName()
          Returns the medium size name of the edition.
 String getShortName()
          Returns the short size name of the edition.
static Edition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Edition[] 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

ANDROID

public static final Edition ANDROID
Android mobile OS, Google App Engine, Google Web Toolkit, JEE, JSE, OSGI.


GAE

public static final Edition GAE

GWT

public static final Edition GWT

JEE

public static final Edition JEE

JSE

public static final Edition JSE

OSGI

public static final Edition OSGI
Field Detail

CURRENT

public static final Edition CURRENT
The current engine edition.

Method Detail

values

public static Edition[] 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 (Edition c : Edition.values())
    System.out.println(c);

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

valueOf

public static Edition 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

getFullName

public String getFullName()
Returns the full size name of the edition.

Returns:
The full size of the edition.

getMediumName

public String getMediumName()
Returns the medium size name of the edition.

Returns:
The medium size name of the edition.

getShortName

public String getShortName()
Returns the short size name of the edition.

Returns:
The short size name of the edition.


Copyright © 2005-2013 Restlet.