Enum InternalContract.PageMode
- java.lang.Object
-
- java.lang.Enum<InternalContract.PageMode>
-
- org.daisy.braille.utils.impl.tools.embosser.InternalContract.PageMode
-
- All Implemented Interfaces:
Serializable
,Comparable<InternalContract.PageMode>
- Enclosing class:
- InternalContract
public static enum InternalContract.PageMode extends Enum<InternalContract.PageMode>
Defines a page mode.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InternalContract.PageMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static InternalContract.PageMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final InternalContract.PageMode UNDEFINED
Undefined.
-
DUPLEX
public static final InternalContract.PageMode DUPLEX
Only duplex will be used.
-
SIMPLEX
public static final InternalContract.PageMode SIMPLEX
Only simplex will be used.
-
BOTH
public static final InternalContract.PageMode BOTH
Both duplex and simplex will be used.
-
-
Method Detail
-
values
public static InternalContract.PageMode[] 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 (InternalContract.PageMode c : InternalContract.PageMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InternalContract.PageMode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-