Enum Class Paper.Type

java.lang.Object
java.lang.Enum<Paper.Type>
org.daisy.paper.Paper.Type
All Implemented Interfaces:
Serializable, Comparable<Paper.Type>, Constable
Enclosing interface:
Paper

public static enum Paper.Type extends Enum<Paper.Type>
Defines paper types.
  • Enum Constant Details

    • SHEET

      public static final Paper.Type SHEET
      Defines a cut-sheet paper. Implementations must extend SheetPaper
    • TRACTOR

      public static final Paper.Type TRACTOR
      Defines a tractor paper. Implementations must extend TractorPaper
    • ROLL

      public static final Paper.Type ROLL
      Defines a roll paper. Implementations must extend RollPaper
  • Method Details

    • values

      public static Paper.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Paper.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null