public enum OptionValueType extends java.lang.Enum<OptionValueType>
SaneOption.getType() that indicate the type of value
that the option has.| Enum Constant and Description |
|---|
BOOLEAN
The option's value is a boolean and can be written with
SaneOption.setBooleanValue(boolean) and
read by SaneOption.getBooleanValue(). |
BUTTON |
FIXED
The option's value is of SANE's fixed-precision type and can be written with
SaneOption.setFixedValue(double) and read by SaneOption.getFixedValue(). |
GROUP |
INT
The option's value is an integer and can be written with
SaneOption.setIntegerValue(int) and
read by SaneOption.getIntegerValue(). |
STRING
The option's value is a string and can be written with
SaneOption.setStringValue(java.lang.String) and
read by SaneOption.getStringValue(). |
| Modifier and Type | Method and Description |
|---|---|
int |
getWireValue()
Returns the integer used by the SANE network protocol to represent an instance of this enum on
the wire.
|
static OptionValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OptionValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptionValueType BOOLEAN
SaneOption.setBooleanValue(boolean) and
read by SaneOption.getBooleanValue().public static final OptionValueType INT
SaneOption.setIntegerValue(int) and
read by SaneOption.getIntegerValue().public static final OptionValueType FIXED
SaneOption.setFixedValue(double) and read by SaneOption.getFixedValue().public static final OptionValueType STRING
SaneOption.setStringValue(java.lang.String) and
read by SaneOption.getStringValue().public static final OptionValueType BUTTON
public static final OptionValueType GROUP
public static OptionValueType[] values()
for (OptionValueType c : OptionValueType.values()) System.out.println(c);
public static OptionValueType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getWireValue()