Package net.ontopia.topicmaps.rest
Enum APIVersions
- java.lang.Object
-
- java.lang.Enum<APIVersions>
-
- net.ontopia.topicmaps.rest.APIVersions
-
- All Implemented Interfaces:
Serializable
,Comparable<APIVersions>
public enum APIVersions extends Enum<APIVersions>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description V1
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.restlet.Restlet
createChain(org.restlet.Application application)
String
getName()
static APIVersions
valueOf(String name)
Returns the enum constant of this type with the specified name.static APIVersions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V1
public static final APIVersions V1
-
-
Method Detail
-
values
public static APIVersions[] 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 (APIVersions c : APIVersions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static APIVersions 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 nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
createChain
public abstract org.restlet.Restlet createChain(org.restlet.Application application)
-
-