public abstract class AbstractTagHandler extends Object implements TagHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
altSyntax |
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
protected boolean altSyntax
public void characters(String text) throws IOException
TagHandler
characters
in interface TagHandler
text
- tag body.IOException
public void characters(String text, boolean encode) throws IOException
TagHandler
characters
in interface TagHandler
text
- tag bodyencode
- html encode the bodyIOException
public void end(String name) throws IOException
TagHandler
end
in interface TagHandler
name
- name of the tagIOException
public void setNext(TagHandler next)
setNext
in interface TagHandler
public void start(String name, Attributes a) throws IOException
TagHandler
start
in interface TagHandler
name
- name of the taga
- attributes of the tagIOException
public void setup(TemplateRenderingContext context)
setup
in interface TagHandler
protected void processParams()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.