org.cups4j
Enum JobStateEnum

java.lang.Object
  extended by java.lang.Enum<JobStateEnum>
      extended by org.cups4j.JobStateEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JobStateEnum>

public enum JobStateEnum
extends java.lang.Enum<JobStateEnum>

State of print jobs


Enum Constant Summary
ABORTED
           
CANCELED
           
COMPLETED
           
PENDING
           
PENDING_HELD
           
PROCESSING
           
PROCESSING_STOPPED
           
 
Method Summary
static JobStateEnum fromString(java.lang.String value)
           
 java.lang.String getText()
           
 java.lang.String toString()
           
static JobStateEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JobStateEnum[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PENDING

public static final JobStateEnum PENDING

PENDING_HELD

public static final JobStateEnum PENDING_HELD

PROCESSING

public static final JobStateEnum PROCESSING

PROCESSING_STOPPED

public static final JobStateEnum PROCESSING_STOPPED

CANCELED

public static final JobStateEnum CANCELED

ABORTED

public static final JobStateEnum ABORTED

COMPLETED

public static final JobStateEnum COMPLETED
Method Detail

values

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

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

valueOf

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<JobStateEnum>

getText

public java.lang.String getText()

fromString

public static JobStateEnum fromString(java.lang.String value)


Copyright © 2009 Harald Weyhing. All Rights Reserved.