org.purl.sword.base
Enum ServiceLevel
java.lang.Object
java.lang.Enum<ServiceLevel>
org.purl.sword.base.ServiceLevel
- All Implemented Interfaces:
- Serializable, Comparable<ServiceLevel>
public enum ServiceLevel
- extends Enum<ServiceLevel>
Represents the SWORD Service Level.
- Author:
- Neil Taylor
|
Method Summary |
int |
number()
Get the number for the ServiceLevel object. |
static ServiceLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ServiceLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
ZERO
public static final ServiceLevel ZERO
ONE
public static final ServiceLevel ONE
UNDEFINED
public static final ServiceLevel UNDEFINED
values
public static final ServiceLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ServiceLevel c : ServiceLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ServiceLevel 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
number
public int number()
- Get the number for the ServiceLevel object.
- Returns:
- The number.
Copyright © 2008 The DSpace Foundation. All Rights Reserved.