com.twainconnect.core
Enum Capability

java.lang.Object
  extended by java.lang.Enum<Capability>
      extended by com.twainconnect.core.Capability
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Capability>

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

Enumeration class for the supported TWAIN capabilities These are not all the availaible TWAIN ones just the ones supported by the jar.

Since:
5.0
Version:
5.0.1
Author:
TwainConnect

Enum Constant Summary
ICAP_PIXELTYPE
           
ICAP_UNITS
           
ICAP_XFERMECH
           
ICAP_XRESOLUTION
           
ICAP_XSCALING
           
ICAP_YRESOLUTION
           
ICAP_YSCALING
           
 
Method Summary
 java.lang.String toString()
          Use the same as the TWAIN enum
static Capability valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Capability[] 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

ICAP_XRESOLUTION

public static final Capability ICAP_XRESOLUTION

ICAP_YRESOLUTION

public static final Capability ICAP_YRESOLUTION

ICAP_PIXELTYPE

public static final Capability ICAP_PIXELTYPE

ICAP_UNITS

public static final Capability ICAP_UNITS

ICAP_XFERMECH

public static final Capability ICAP_XFERMECH

ICAP_XSCALING

public static final Capability ICAP_XSCALING

ICAP_YSCALING

public static final Capability ICAP_YSCALING
Method Detail

values

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

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

valueOf

public static Capability 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()
Use the same as the TWAIN enum

Overrides:
toString in class java.lang.Enum<Capability>