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

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

public class MyFacesComponentTagGenerator
extends AbstractComponentTagGenerator

Component tag generator for myfaces

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
MyFacesComponentTagGenerator(boolean is12)
           
 
Method Summary
protected  void addSpecificImports(java.util.Set imports, ComponentBean component)
           
protected  boolean is12()
          Returns true if the method is being used for generating JSF 1.2 code.
 void writeGetComponentType(PrettyWriter out, ComponentBean component)
           
protected  void writePropertyDeclaration(PrettyWriter out, PropertyBean property)
           
protected  void writePropertySetter(PrettyWriter out, PropertyBean property)
           
 void writeSetPropertiesMethod(PrettyWriter out, java.lang.String componentClass, java.util.Collection components)
           
 void writeSetPropertiesMethod(PrettyWriter out, java.lang.String componentClass, ComponentBean component)
           
protected  void writeSetPropertyMethodBody(PrettyWriter out, java.lang.String componentClass, java.util.Iterator properties)
           
 
Methods inherited from class org.apache.myfaces.buildtools.maven2.plugin.faces.generator.taglib.AbstractComponentTagGenerator
writeClassBegin, writeClassEnd, writeConstructor, writeGetRendererType, writeImports, writeImports, writePropertyMembers, writePropertyMembers, writeReleaseMethod, writeReleaseMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFacesComponentTagGenerator

public MyFacesComponentTagGenerator(boolean is12)
Method Detail

is12

protected boolean is12()
Description copied from class: AbstractComponentTagGenerator
Returns true if the method is being used for generating JSF 1.2 code.

Specified by:
is12 in class AbstractComponentTagGenerator

addSpecificImports

protected void addSpecificImports(java.util.Set imports,
                                  ComponentBean component)
Overrides:
addSpecificImports in class AbstractComponentTagGenerator

writePropertyDeclaration

protected void writePropertyDeclaration(PrettyWriter out,
                                        PropertyBean property)
                                 throws java.io.IOException
Specified by:
writePropertyDeclaration in class AbstractComponentTagGenerator
Throws:
java.io.IOException

writePropertySetter

protected void writePropertySetter(PrettyWriter out,
                                   PropertyBean property)
                            throws java.io.IOException
Specified by:
writePropertySetter in class AbstractComponentTagGenerator
Throws:
java.io.IOException

writeGetComponentType

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

writeSetPropertiesMethod

public void writeSetPropertiesMethod(PrettyWriter out,
                                     java.lang.String componentClass,
                                     ComponentBean component)
                              throws java.io.IOException
Throws:
java.io.IOException

writeSetPropertiesMethod

public void writeSetPropertiesMethod(PrettyWriter out,
                                     java.lang.String componentClass,
                                     java.util.Collection components)
                              throws java.io.IOException
Throws:
java.io.IOException

writeSetPropertyMethodBody

protected void writeSetPropertyMethodBody(PrettyWriter out,
                                          java.lang.String componentClass,
                                          java.util.Iterator properties)
                                   throws java.io.IOException
Specified by:
writeSetPropertyMethodBody in class AbstractComponentTagGenerator
Throws:
java.io.IOException


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