public abstract class AbstractComponentTagGenerator extends Object implements ComponentTagGenerator
| Constructor and Description |
|---|
AbstractComponentTagGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSpecificImports(Set imports,
ComponentBean component) |
protected abstract boolean |
is12()
Returns true if the method is being used for generating JSF 1.2 code.
|
void |
writeClassBegin(PrettyWriter out,
String className,
String superclassName,
ComponentBean component,
SourceTemplate template) |
void |
writeClassEnd(PrettyWriter out) |
void |
writeConstructor(PrettyWriter out,
ComponentBean component,
int modifiers) |
void |
writeGetComponentType(PrettyWriter out,
ComponentBean component) |
void |
writeGetRendererType(PrettyWriter out,
ComponentBean component) |
void |
writeImports(PrettyWriter out,
SourceTemplate template,
String packageName,
String fullSuperclassName,
String superclassName,
Collection components) |
void |
writeImports(PrettyWriter out,
SourceTemplate template,
String packageName,
String fullSuperclassName,
String superclassName,
ComponentBean component) |
protected abstract void |
writePropertyDeclaration(PrettyWriter out,
PropertyBean property) |
void |
writePropertyMembers(PrettyWriter out,
Collection components) |
void |
writePropertyMembers(PrettyWriter out,
ComponentBean component) |
protected abstract void |
writePropertySetter(PrettyWriter out,
PropertyBean property) |
void |
writeReleaseMethod(PrettyWriter out,
Collection components) |
void |
writeReleaseMethod(PrettyWriter out,
ComponentBean component) |
protected abstract void |
writeSetPropertyMethodBody(PrettyWriter out,
String componentClass,
Iterator properties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteSetPropertiesMethod, writeSetPropertiesMethodpublic void writeImports(PrettyWriter out, SourceTemplate template, String packageName, String fullSuperclassName, String superclassName, ComponentBean component)
writeImports in interface ClassGeneratorpublic void writeImports(PrettyWriter out, SourceTemplate template, String packageName, String fullSuperclassName, String superclassName, Collection components)
writeImports in interface ClassGeneratorpublic void writeClassBegin(PrettyWriter out, String className, String superclassName, ComponentBean component, SourceTemplate template)
writeClassBegin in interface ClassGeneratorpublic void writeConstructor(PrettyWriter out, ComponentBean component, int modifiers) throws IOException
writeConstructor in interface ClassGeneratorIOExceptionpublic void writeGetComponentType(PrettyWriter out, ComponentBean component) throws IOException
writeGetComponentType in interface ComponentTagGeneratorIOExceptionpublic void writeGetRendererType(PrettyWriter out, ComponentBean component) throws IOException
writeGetRendererType in interface ComponentTagGeneratorIOExceptionpublic void writeClassEnd(PrettyWriter out)
writeClassEnd in interface ClassGeneratorpublic void writePropertyMembers(PrettyWriter out, ComponentBean component) throws IOException
writePropertyMembers in interface ComponentTagGeneratorIOExceptionpublic void writePropertyMembers(PrettyWriter out, Collection components) throws IOException
writePropertyMembers in interface ComponentTagGeneratorIOExceptionpublic void writeReleaseMethod(PrettyWriter out, ComponentBean component) throws IOException
writeReleaseMethod in interface ComponentTagGeneratorIOExceptionpublic void writeReleaseMethod(PrettyWriter out, Collection components) throws IOException
writeReleaseMethod in interface ComponentTagGeneratorIOExceptionprotected void addSpecificImports(Set imports, ComponentBean component)
protected abstract boolean is12()
protected abstract void writePropertyDeclaration(PrettyWriter out, PropertyBean property) throws IOException
IOExceptionprotected abstract void writePropertySetter(PrettyWriter out, PropertyBean property) throws IOException
IOExceptionprotected abstract void writeSetPropertyMethodBody(PrettyWriter out, String componentClass, Iterator properties) throws IOException
IOExceptionCopyright © 2001-2012 Apache Software Foundation. All Rights Reserved.