Enum Configuration.Doctype

java.lang.Object
java.lang.Enum<Configuration.Doctype>
com.realobjects.pdfreactor.Configuration.Doctype
All Implemented Interfaces:
Serializable, Comparable<Configuration.Doctype>, java.lang.constant.Constable
Enclosing class:
Configuration

public static enum Configuration.Doctype extends Enum<Configuration.Doctype>

An enum containing document type constants.

  • Enum Constant Details

    • AUTODETECT

      public static final Configuration.Doctype AUTODETECT

      Indicates that the document type will be detected automatically. When the document has a file extension, it is used to determine whether the document is HTML5 or XHTML. If there is no file extension or it is unknown, then the document content itself is searched for an XML declaration, a doctype preamble and the root element.

      See Also:
    • HTML5

      public static final Configuration.Doctype HTML5

      Indicates that the document type will be set to HTML5. The HTML default style sheet is used and the document is loaded regarding style elements, style attributes and link stylesheets.

    • XHTML

      public static final Configuration.Doctype XHTML

      Indicates that the document type will be set to XHTML. The HTML default style sheet is used and the document is loaded regarding style elements, style attributes and link stylesheets.

    • XML

      public static final Configuration.Doctype XML

      Indicates that the document type will be set to generic XML. No default style sheet is used and the document is loaded as is without regards to style elements or attributes.

  • Method Details

    • values

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

      public static Configuration.Doctype 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 name
      NullPointerException - if the argument is null