public static interface DocumentFactoryBuilder.Handler
Modifier and Type | Method and Description |
---|---|
Handled |
handle(java.lang.Object value,
java.lang.String metadata,
java.lang.String tag,
int position,
Templater templater)
Plugin should check if its applicable (based on the provided metadata and value).
|
Handled handle(java.lang.Object value, java.lang.String metadata, java.lang.String tag, int position, Templater templater)
Plugin should check if its applicable (based on the provided metadata and value). For non-shared tags, position will be -1, while for shared tags position will match current position for this tag.
Returns instructions on how to continue with further processing.
Metadata can be parsed to extract arguments from it.
value
- current tag valuemetadata
- metadata part for that tagtag
- current tag (path) for provided valueposition
- position of tag in the document among tags with same pathtemplater
- templater instance