Package org.daisy.dotify.api.translator
Enum TranslatorMode.DotsPerCell
- java.lang.Object
-
- java.lang.Enum<TranslatorMode.DotsPerCell>
-
- org.daisy.dotify.api.translator.TranslatorMode.DotsPerCell
-
- All Implemented Interfaces:
Serializable
,Comparable<TranslatorMode.DotsPerCell>
- Enclosing class:
- TranslatorMode
public static enum TranslatorMode.DotsPerCell extends Enum<TranslatorMode.DotsPerCell>
Provides a definition of the number of dots in a braille cell.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static TranslatorMode.DotsPerCell
valueOf(String name)
Returns the enum constant of this type with the specified name.static TranslatorMode.DotsPerCell[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIX
public static final TranslatorMode.DotsPerCell SIX
Defines 6-dot braille.
-
EIGHT
public static final TranslatorMode.DotsPerCell EIGHT
Defines 8-dot braille.
-
-
Method Detail
-
values
public static TranslatorMode.DotsPerCell[] 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 (TranslatorMode.DotsPerCell c : TranslatorMode.DotsPerCell.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TranslatorMode.DotsPerCell 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<TranslatorMode.DotsPerCell>
-
-