- All Implemented Interfaces:
OnixCodelist
,Serializable
,Comparable<TextFormats>
,Constable
Enum
that corresponds to ONIX Codelist 34
Description: Text format
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixCodelist
OnixCodelist.Pair
-
Enum Constant Summary
Enum ConstantDescriptionDEPRECATED: use code 06 or 07 as appropriatePlain text containing no markup tags of any kind, except for the character entities & and < 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.Jonix-Comment: Deprecated in Onix3Default: plain text containing no markup tags of any kind, except for the character entities & and < 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 declarationOffice Open XML file format / OOXML / DOCXThe Open Publication Structure / OPS Container Format standard of the International Digital Publishing Forum (IDPF) [File extension .epub]Other than XHTMLISO Open Document FormatJonix-Comment: Deprecated in Onix3Jonix-Comment: Deprecated in Onix3DEPRECATED: was formerly assigned both to PDF and to XHTMLReplaces 04 for the <TextFormat> element, but cannot of course be used as a textformat attributeJonix-Comment: Deprecated in Onix3Other than XHTMLXML Paper Specification -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextFormats
static Optional<TextFormats>
byCodeOptional
(String code) static String
codeToDesciption
(String code) getCode()
static TextFormats
Returns the enum constant of this class with the specified name.static TextFormats[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.tectonica.jonix.common.OnixCodelist
pair
-
Enum Constant Details
-
HTML
Other than XHTML -
XML
Other than XHTML -
XHTML
-
Default_text_format
Default: plain text containing no markup tags of any kind, except for the character entities & and < 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
Plain text containing no markup tags of any kind, except for the character entities & and < 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
DEPRECATED: use code 06 or 07 as appropriateJonix-Comment: Deprecated in Onix3
-
SGML
Jonix-Comment: Deprecated in Onix3 -
PDF
DEPRECATED: was formerly assigned both to PDF and to XHTMLJonix-Comment: Deprecated in Onix3
-
PDF_
Replaces 04 for the <TextFormat> element, but cannot of course be used as a textformat attributeJonix-Comment: Deprecated in Onix3
-
Microsoft_rich_text_format_RTF
Jonix-Comment: Deprecated in Onix3 -
Microsoft_Word_binary_format_DOC
Jonix-Comment: Deprecated in Onix3 -
ECMA_376_WordprocessingML
Office Open XML file format / OOXML / DOCXJonix-Comment: Deprecated in Onix3
-
ISO_26300_ODF
ISO Open Document FormatJonix-Comment: Deprecated in Onix3
-
Corel_Wordperfect_binary_format_DOC
Jonix-Comment: Deprecated in Onix3 -
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
XML Paper SpecificationJonix-Comment: Deprecated in Onix3
-
-
Field Details
-
code
-
description
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getCode
- Specified by:
getCode
in interfaceOnixCodelist
-
getDescription
- Specified by:
getDescription
in interfaceOnixCodelist
-
byCode
-
byCodeOptional
-
codeToDesciption
-