public enum OptionValueConstraintType extends java.lang.Enum<OptionValueConstraintType>
SaneOption may be subjected to.| Enum Constant and Description |
|---|
NO_CONSTRAINT
The option has no constraints on its value.
|
RANGE_CONSTRAINT
The option's value is constrained to some range of values.
|
STRING_LIST_CONSTRAINT
The option's value type is
OptionValueType.STRING and its value is constrained to some
list of string values. |
VALUE_LIST_CONSTRAINT
The option's value is constrained to some list of values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description()
Returns the description of the option as provided by the SANE backend.
|
int |
getWireValue()
Returns the integer used by the SANE network protocol to represent an instance of this enum on
the wire.
|
static OptionValueConstraintType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OptionValueConstraintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptionValueConstraintType NO_CONSTRAINT
public static final OptionValueConstraintType RANGE_CONSTRAINT
public static final OptionValueConstraintType VALUE_LIST_CONSTRAINT
public static final OptionValueConstraintType STRING_LIST_CONSTRAINT
OptionValueType.STRING and its value is constrained to some
list of string values.public static OptionValueConstraintType[] values()
for (OptionValueConstraintType c : OptionValueConstraintType.values()) System.out.println(c);
public static OptionValueConstraintType 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 java.lang.String description()
public int getWireValue()