@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Location
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 and Description |
|---|---|
LocationType |
value |
public abstract LocationType value