Enum Class Backend
- All Implemented Interfaces:
Serializable, Comparable<Backend>, Constable
AsciiDoc output backends supported by the
AsciidocMojo.
Each backend maps to an AsciidoctorJ backend name and a default
output subdirectory under the goal's outputDirectory.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionThe backend name as AsciidoctorJ expects it.Default output subdirectory under the goal's output root.static BackendParse a backend name (case-insensitive).booleanWhether this backend supports AsciidoctorJ Postprocessor extensions.static BackendReturns the enum constant of this class with the specified name.static Backend[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HTML
HTML5 — website and CSS-to-PDF renderer input. -
PDF
Prawn PDF — direct AsciiDoc-to-PDF via JRuby. -
DOCBOOK
DocBook 5 — intermediate XML for XEP/FOP XSL-FO pipelines.
-
-
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
-
asciidoctorName
The backend name as AsciidoctorJ expects it.- Returns:
- the AsciidoctorJ backend identifier (e.g., "html5", "pdf", "docbook5")
-
outputSubdir
Default output subdirectory under the goal's output root.- Returns:
- subdirectory name (e.g., "html", "pdf-prawn", "docbook")
-
supportsPostprocessor
public boolean supportsPostprocessor()Whether this backend supports AsciidoctorJ Postprocessor extensions. The Prawn PDF backend crashes when a Java Postprocessor is registered (JRuby type conversion error in PostprocessorProxy).- Returns:
- true if postprocessors can be safely registered
-
parse
Parse a backend name (case-insensitive).- Parameters:
name- one of: html, pdf, prawn, docbook- Returns:
- the matching backend
- Throws:
IllegalArgumentException- if name is not recognized
-