public abstract class JspTLDGenerator extends Object implements Generator
Base class for JSP TLD generation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JspTLDGenerator.XMLWriter
A simple class to handle the writing of XML documents.
|
| Modifier and Type | Field and Description |
|---|---|
protected FacesConfigBean |
configBean |
protected PropertyManager |
propManager |
protected JspTLDGenerator.XMLWriter |
writer |
| Constructor and Description |
|---|
JspTLDGenerator(PropertyManager propManager) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
attributeShouldBeExcluded(RendererBean renderer,
String attribute) |
protected void |
endDocument() |
void |
generate(FacesConfigBean configBean)
Perform whatever generation tasks are necessary using
the provided
FacesConfigBean as the model. |
protected String |
getBodyContent(String tagName)
Return the tag body content information (if any) for a given tag.
|
protected String |
getRtexprvalue(String tagName,
String attributeName)
Return the "rtexprvalue" element value for the tag attribute.
|
protected void |
initWriter() |
protected String |
loadOptionalTags()
Load any additional tag definitions from the specified file.
|
protected String |
makeTldTagName(String componentFamily,
String rendererType)
Build the tag name from componentFamily and rendererType.
|
protected void |
writeDocument() |
protected void |
writeProlog() |
protected abstract void |
writeTags() |
protected abstract void |
writeTldDescription() |
protected void |
writeValidators() |
protected JspTLDGenerator.XMLWriter writer
protected FacesConfigBean configBean
protected PropertyManager propManager
public JspTLDGenerator(PropertyManager propManager)
public void generate(FacesConfigBean configBean)
GeneratorPerform whatever generation tasks are necessary using
the provided FacesConfigBean as the model.
protected void writeDocument()
throws IOException
IOExceptionprotected void writeProlog()
throws IOException
IOExceptionprotected abstract void writeTldDescription()
throws IOException
IOExceptionprotected abstract void writeTags()
throws IOException
IOExceptionprotected void endDocument()
throws IOException
IOExceptionprotected void writeValidators()
throws IOException
IOExceptionprotected void initWriter()
throws IOException
IOExceptionprotected String makeTldTagName(String componentFamily, String rendererType)
componentFamily - the component familyrendererType - the renderer typeprotected boolean attributeShouldBeExcluded(RendererBean renderer, String attribute)
protected String getBodyContent(String tagName)
protected String getRtexprvalue(String tagName, String attributeName)
protected String loadOptionalTags() throws IOException
Load any additional tag definitions from the specified file. This file might include tags such as "column" which have no renderer, but need to be generated into the TLD file.
IOExceptionCopyright © 2010–2019 JBoss by Red Hat. All rights reserved.