@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ContentModel
BlockProcessor
.
Applicable for:
BlockMacroProcessor | |
BlockProcessor | ✓ |
BlockProcessor | |
DocInfoProcessor | |
IncludeProcessor | |
InlineMacroProcessor | |
Postprocessor | |
Preprocessor | |
Treeprocessor |
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
ATTRIBUTES
Predefined constant to make Asciidoctor parse content as attributes.
|
static java.lang.String |
COMPOUND
Predefined constant to let Asciidoctor know that this BlockProcessor creates zero or more child blocks.
|
static java.lang.String |
EMPTY
Predefined constant to make Asciidoctor not expect any content.
|
static java.lang.String |
KEY
This value is used as the config option key to configure how Asciidoctor should treat blocks created by
this Processor.
|
static java.lang.String |
RAW
Predefined constant to make Asciidoctor pass through the content unprocessed.
|
static java.lang.String |
SIMPLE
Predefined constant to let Asciidoctor know that this BlockProcessor creates simple paragraph content.
|
static java.lang.String |
SKIP
Predefined constant to make Asciidoctor drop the content.
|
static java.lang.String |
VERBATIM
Predefined constant to let Asciidoctor know that this BlockProcessor creates literal content.
|
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
See the constants defined in this enumeration for possible values.
|
public static final java.lang.String KEY
Example to Asciidoctor know that a BlockProcessor creates zero or more child blocks:
Map<String, Object> config = new HashMap<>(); config.put(ContentModel.KEY, ContentModel.COMPOUND); BlockProcessor blockProcessor = new BlockProcessor("foo", config); asciidoctor.javaExtensionRegistry().block(blockProcessor);
public static final java.lang.String COMPOUND
public static final java.lang.String SIMPLE
public static final java.lang.String VERBATIM
public static final java.lang.String RAW
public static final java.lang.String SKIP
public static final java.lang.String EMPTY