public enum Handled extends java.lang.Enum<Handled>
Specifying behavior of Templater after the handler.
Common usage of handler is to remove region of the document, but various scenarios can be taken after the removal. If handler is not relevant, Nothing should be returned, which will result in invocation of next registered handler.
Enum Constant and Description |
---|
CURRENT_CONTEXT
If other tags in the same context are also handled by the plugin,
instruct Templater to avoid further processing of tags in this context
|
NESTED_TAGS
When plugin handles this and nested tags.
|
NOTHING
Indicate that handler is not applicable and Templater should call next plugin
|
OTHER_HANDLERS
Indicate that plugin is applicable, that next plugin should not be called,
but normal processing should continue as usual - calling replace on the tag
|
THIS_TAG
Indicate that plugin has processed this tag, but has not processed nested or other tags.
|
WHOLE_OBJECT
If other tags on the same level are also handled by the plugin,
instruct Templater to avoid further processing of tags on this level
|
Modifier and Type | Method and Description |
---|---|
static Handled |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Handled[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Handled NOTHING
public static final Handled OTHER_HANDLERS
public static final Handled THIS_TAG
public static final Handled NESTED_TAGS
public static final Handled WHOLE_OBJECT
public static final Handled CURRENT_CONTEXT
public static Handled[] values()
for (Handled c : Handled.values()) System.out.println(c);
public static Handled valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null