org.purl.sword.base
Enum ServiceLevel

java.lang.Object
  extended by java.lang.Enum<ServiceLevel>
      extended by 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

Enum Constant Summary
ONE
           
UNDEFINED
           
ZERO
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ZERO

public static final ServiceLevel ZERO

ONE

public static final ServiceLevel ONE

UNDEFINED

public static final ServiceLevel UNDEFINED
Method Detail

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.