@Documented
@Retention(RUNTIME)
@Target(TYPE)
public @interface Location
DocinfoProcessor
will be added.
The following example will add a robots meta tag to the head element of the resulting HTML document:
@Location(LocationType.HEADER) class RobotsDocinfoProcessor extends DocinfoProcessor { public static final String META_TAG = "<meta name=\"robots\" content=\"index, follow\"/>"; public String process(Document document) { return META_TAG; } }
Applicable for:
BlockMacroProcessor | |
BlockProcessor | |
BlockProcessor | |
DocInfoProcessor | ✓ |
IncludeProcessor | |
InlineMacroProcessor | |
Postprocessor | |
Preprocessor | |
Treeprocessor |
Modifier and Type | Optional Element | Description |
---|---|---|
LocationType |
value |
LocationType value