i3.dragos.core
Enum Service.Result

java.lang.Object
  extended by java.lang.Enum<Service.Result>
      extended by i3.dragos.core.Service.Result
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Service.Result>
Enclosing interface:
Service

public static enum Service.Result
extends java.lang.Enum<Service.Result>

Starting, stopping etc. of services can be successful or not. The constants defined in this class define the outcome of the operation.


Enum Constant Summary
BUSY
          Operation couldn't be performed because the service is busy right now.
FAILED
          The operation has failed.
INVALID
          The operation is not valid.
OK
          Operation has been successful.
 
Method Summary
static Service.Result valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Service.Result[] 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

OK

public static final Service.Result OK
Operation has been successful.


BUSY

public static final Service.Result BUSY
Operation couldn't be performed because the service is busy right now.


FAILED

public static final Service.Result FAILED
The operation has failed.


INVALID

public static final Service.Result INVALID
The operation is not valid.

Method Detail

values

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

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

valueOf

public static Service.Result valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.