|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITagProcessor
Common interface for all Tag Processors.
Every tag processor must declare:
TagApplicability
objects) specify the cases
in which this tag processor would be executed. This must at least include a
tag name (execute if tag name is T) and can also include
attributes with values (execute if tag name is T has an attribute A with value V), etc.
When developing new processors, in order to save code, it is recommended to extend an abstract class like
AbstractTagProcessor
(or any of its subclasses) instead of directly implementing
this interface.
Method Summary | |
---|---|
Set<TagApplicability> |
getTagApplicabilities()
Return the tag applicabilities. |
TagProcessResult |
process(Arguments arguments,
TemplateResolution templateResolution,
Document document,
Element element)
Execute this attribute processor. |
Method Detail |
---|
Set<TagApplicability> getTagApplicabilities()
Return the tag applicabilities.
These applicabilities
(a set of TagApplicability
objects) specify the cases
in which this tag processor would be executed. This must at least include a
tag name (execute if tag name is T) and can also include
attributes with values (execute if tag name is T has an attribute A with value V), etc.
Refer to the TagApplicability
API for more details.
TagProcessResult process(Arguments arguments, TemplateResolution templateResolution, Document document, Element element)
Execute this attribute processor.
This execution logic will receive as parameters the execution argument
(an Arguments
object), the result of resolving the processed template
by the Template Resolver (a TemplateResolution
object), the complete DOM node tree
of the template being processed (the Document
) and the DOM element representing
the tag currently being processed (Element
object).
arguments
- the execution arguments, containing Template Engine configuration and
execution context.templateResolution
- the result of resolving the template by the Template Resolvers.document
- the DOM node tree (document) of the template being executed.element
- the DOM element representing the tag currently being processed.
TagProcessResult
with the result of the execution.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |