Module jonix.common

Enum Class TextFormats

java.lang.Object
java.lang.Enum<TextFormats>
com.tectonica.jonix.common.codelist.TextFormats
All Implemented Interfaces:
OnixCodelist, Serializable, Comparable<TextFormats>, Constable

public enum TextFormats extends Enum<TextFormats> implements OnixCodelist
Enum that corresponds to ONIX Codelist 34

Description: Text format

See Also:
  • Enum Constant Details

    • HTML

      public static final TextFormats HTML
      Other than XHTML
    • XML

      public static final TextFormats XML
      Other than XHTML
    • XHTML

      public static final TextFormats XHTML
    • Default_text_format

      public static final TextFormats Default_text_format
      Default: plain text containing no markup tags of any kind, except for the character entities &amp; and &lt; that XML insists must be used to represent ampersand and less-than characters in textual data, and in the encoding declared at the head of the message or in the XML default (UTF-8 or UTF-16) if there is no explicit declaration
    • Basic_ASCII_text

      public static final TextFormats Basic_ASCII_text
      Plain text containing no markup tags of any kind, except for the character entities &amp; and &lt; that XML insists must be used to represent ampersand and less-than characters in textual data, and with the character set limited to the ASCII range, i.e. valid characters whose Unicode character numbers lie between 32 (space) and 126 (tilde)
    • ASCII_text

      public static final TextFormats ASCII_text
      DEPRECATED: use code 06 or 07 as appropriate

      Jonix-Comment: Deprecated in Onix3

    • SGML

      public static final TextFormats SGML
      Jonix-Comment: Deprecated in Onix3
    • PDF

      public static final TextFormats PDF
      DEPRECATED: was formerly assigned both to PDF and to XHTML

      Jonix-Comment: Deprecated in Onix3

    • PDF_

      public static final TextFormats PDF_
      Replaces 04 for the <TextFormat> element, but cannot of course be used as a textformat attribute

      Jonix-Comment: Deprecated in Onix3

    • Microsoft_rich_text_format_RTF

      public static final TextFormats Microsoft_rich_text_format_RTF
      Jonix-Comment: Deprecated in Onix3
    • Microsoft_Word_binary_format_DOC

      public static final TextFormats Microsoft_Word_binary_format_DOC
      Jonix-Comment: Deprecated in Onix3
    • ECMA_376_WordprocessingML

      public static final TextFormats ECMA_376_WordprocessingML
      Office Open XML file format / OOXML / DOCX

      Jonix-Comment: Deprecated in Onix3

    • ISO_26300_ODF

      public static final TextFormats ISO_26300_ODF
      ISO Open Document Format

      Jonix-Comment: Deprecated in Onix3

    • Corel_Wordperfect_binary_format_DOC

      public static final TextFormats Corel_Wordperfect_binary_format_DOC
      Jonix-Comment: Deprecated in Onix3
    • EPUB

      public static final TextFormats EPUB
      The Open Publication Structure / OPS Container Format standard of the International Digital Publishing Forum (IDPF) [File extension .epub]

      Jonix-Comment: Deprecated in Onix3

    • XPS

      public static final TextFormats XPS
      XML Paper Specification

      Jonix-Comment: Deprecated in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static TextFormats[] 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 TextFormats 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
    • getCode

      public String getCode()
      Specified by:
      getCode in interface OnixCodelist
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface OnixCodelist
    • byCode

      public static TextFormats byCode(String code)
    • byCodeOptional

      public static Optional<TextFormats> byCodeOptional(String code)
    • codeToDesciption

      public static String codeToDesciption(String code)