public abstract class AbstractTagHandler extends Object implements TagHandler
| Modifier and Type | Field and Description |
|---|---|
protected TemplateRenderingContext |
context |
protected TagHandler |
nextTagHandler |
| Constructor and Description |
|---|
AbstractTagHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(String text)
Writes to the inner text of a tag.
|
void |
characters(String text,
boolean encode)
Writes to the inner text of a tag
|
void |
end(String name)
Writes a tag close
|
protected String |
findString(String expr) |
protected Object |
findValue(String expr) |
protected void |
processParams() |
void |
setNext(TagHandler next) |
void |
setup(TemplateRenderingContext context) |
void |
start(String name,
Attributes a)
Write a tag openening, with its attributes
|
protected TagHandler nextTagHandler
protected TemplateRenderingContext context
public void characters(String text) throws IOException
TagHandlercharacters in interface TagHandlertext - tag body.IOExceptionpublic void characters(String text, boolean encode) throws IOException
TagHandlercharacters in interface TagHandlertext - tag bodyencode - html encode the bodyIOExceptionpublic void end(String name) throws IOException
TagHandlerend in interface TagHandlername - name of the tagIOExceptionpublic void setNext(TagHandler next)
setNext in interface TagHandlerpublic void start(String name, Attributes a) throws IOException
TagHandlerstart in interface TagHandlername - name of the taga - attributes of the tagIOExceptionpublic void setup(TemplateRenderingContext context)
setup in interface TagHandlerprotected void processParams()
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.