org.apache.myfaces.buildtools.maven2.plugin.faces.generator.taglib
Class AbstractComponentTagGenerator

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.faces.generator.taglib.AbstractComponentTagGenerator
All Implemented Interfaces:
ClassGenerator, ComponentTagGenerator
Direct Known Subclasses:
MyFacesComponentTagGenerator, TrinidadComponentTagGenerator

public abstract class AbstractComponentTagGenerator
extends java.lang.Object
implements ComponentTagGenerator

TODO: comment this!

Version:
$Revision: 635338 $ $Date: 2008-03-09 20:55:02 +0100 (So, 09 M??r 2008) $
Author:
Bruno Aranda (latest modification by $Author: lu4242 $)

Constructor Summary
AbstractComponentTagGenerator()
           
 
Method Summary
protected  void addSpecificImports(java.util.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, java.lang.String className, java.lang.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, java.lang.String packageName, java.lang.String fullSuperclassName, java.lang.String superclassName, java.util.Collection components)
           
 void writeImports(PrettyWriter out, SourceTemplate template, java.lang.String packageName, java.lang.String fullSuperclassName, java.lang.String superclassName, ComponentBean component)
           
protected abstract  void writePropertyDeclaration(PrettyWriter out, PropertyBean property)
           
 void writePropertyMembers(PrettyWriter out, java.util.Collection components)
           
 void writePropertyMembers(PrettyWriter out, ComponentBean component)
           
protected abstract  void writePropertySetter(PrettyWriter out, PropertyBean property)
           
 void writeReleaseMethod(PrettyWriter out, java.util.Collection components)
           
 void writeReleaseMethod(PrettyWriter out, ComponentBean component)
           
protected abstract  void writeSetPropertyMethodBody(PrettyWriter out, java.lang.String componentClass, java.util.Iterator properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.buildtools.maven2.plugin.faces.generator.taglib.ComponentTagGenerator
writeSetPropertiesMethod, writeSetPropertiesMethod
 

Constructor Detail

AbstractComponentTagGenerator

public AbstractComponentTagGenerator()
Method Detail

writeImports

public void writeImports(PrettyWriter out,
                         SourceTemplate template,
                         java.lang.String packageName,
                         java.lang.String fullSuperclassName,
                         java.lang.String superclassName,
                         ComponentBean component)
Specified by:
writeImports in interface ClassGenerator

writeImports

public void writeImports(PrettyWriter out,
                         SourceTemplate template,
                         java.lang.String packageName,
                         java.lang.String fullSuperclassName,
                         java.lang.String superclassName,
                         java.util.Collection components)
Specified by:
writeImports in interface ClassGenerator

writeClassBegin

public void writeClassBegin(PrettyWriter out,
                            java.lang.String className,
                            java.lang.String superclassName,
                            ComponentBean component,
                            SourceTemplate template)
Specified by:
writeClassBegin in interface ClassGenerator

writeConstructor

public void writeConstructor(PrettyWriter out,
                             ComponentBean component,
                             int modifiers)
                      throws java.io.IOException
Specified by:
writeConstructor in interface ClassGenerator
Throws:
java.io.IOException

writeGetComponentType

public void writeGetComponentType(PrettyWriter out,
                                  ComponentBean component)
                           throws java.io.IOException
Specified by:
writeGetComponentType in interface ComponentTagGenerator
Throws:
java.io.IOException

writeGetRendererType

public void writeGetRendererType(PrettyWriter out,
                                 ComponentBean component)
                          throws java.io.IOException
Specified by:
writeGetRendererType in interface ComponentTagGenerator
Throws:
java.io.IOException

writeClassEnd

public void writeClassEnd(PrettyWriter out)
Specified by:
writeClassEnd in interface ClassGenerator

writePropertyMembers

public void writePropertyMembers(PrettyWriter out,
                                 ComponentBean component)
                          throws java.io.IOException
Specified by:
writePropertyMembers in interface ComponentTagGenerator
Throws:
java.io.IOException

writePropertyMembers

public void writePropertyMembers(PrettyWriter out,
                                 java.util.Collection components)
                          throws java.io.IOException
Specified by:
writePropertyMembers in interface ComponentTagGenerator
Throws:
java.io.IOException

writeReleaseMethod

public void writeReleaseMethod(PrettyWriter out,
                               ComponentBean component)
                        throws java.io.IOException
Specified by:
writeReleaseMethod in interface ComponentTagGenerator
Throws:
java.io.IOException

writeReleaseMethod

public void writeReleaseMethod(PrettyWriter out,
                               java.util.Collection components)
                        throws java.io.IOException
Specified by:
writeReleaseMethod in interface ComponentTagGenerator
Throws:
java.io.IOException

addSpecificImports

protected void addSpecificImports(java.util.Set imports,
                                  ComponentBean component)

is12

protected abstract boolean is12()
Returns true if the method is being used for generating JSF 1.2 code.


writePropertyDeclaration

protected abstract void writePropertyDeclaration(PrettyWriter out,
                                                 PropertyBean property)
                                          throws java.io.IOException
Throws:
java.io.IOException

writePropertySetter

protected abstract void writePropertySetter(PrettyWriter out,
                                            PropertyBean property)
                                     throws java.io.IOException
Throws:
java.io.IOException

writeSetPropertyMethodBody

protected abstract void writeSetPropertyMethodBody(PrettyWriter out,
                                                   java.lang.String componentClass,
                                                   java.util.Iterator properties)
                                            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.