org.apache.myfaces.buildtools.maven2.plugin.faces.generator.component
Class MyFacesComponentGenerator

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.faces.generator.component.AbstractComponentGenerator
      extended by org.apache.myfaces.buildtools.maven2.plugin.faces.generator.component.MyFacesComponentGenerator
All Implemented Interfaces:
ClassGenerator, ComponentGenerator

public class MyFacesComponentGenerator
extends AbstractComponentGenerator

Component 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 $)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.myfaces.buildtools.maven2.plugin.faces.generator.component.AbstractComponentGenerator
AbstractComponentGenerator.NonVirtualFilter, AbstractComponentGenerator.ResolvableTypeFilter
 
Constructor Summary
MyFacesComponentGenerator(org.apache.maven.plugin.logging.Log log, boolean is12)
           
 
Method Summary
protected  void addSpecificImports(java.util.Set imports, ComponentBean component)
           
protected  void writeConstructorContent(PrettyWriter out, ComponentBean component, int modifiers, java.lang.String rendererType)
           
 void writePropertyDeclaration(PrettyWriter out, PropertyBean property)
           
protected  void writePropertyGetterMethodBody(PrettyWriter out, PropertyBean property)
           
 void writePropertyListMethods(PrettyWriter out, PropertyBean property)
           
protected  void writePropertyListMethods(PrettyWriter out, PropertyBean property, java.util.Collection ignoreList)
           
protected  void writePropertySetterMethodBody(PrettyWriter out, PropertyBean property, java.lang.String propertyClass)
           
protected  void writeRestoreState(PrettyWriter out, ComponentBean component)
           
protected  void writeSaveState(PrettyWriter out, ComponentBean component)
           
 void writeStateManagementMethods(PrettyWriter out, ComponentBean component)
           
 
Methods inherited from class org.apache.myfaces.buildtools.maven2.plugin.faces.generator.component.AbstractComponentGenerator
addGenericImports, convertMultilineComment, convertStringToBoxedLiteral, convertVariableToBoxedForm, getLog, getSingular, isAccessorMethodFinal, resolveType, writeClassBegin, writeClassEnd, writeConstructor, writeFacetConstants, writeFacetGet, writeFacetMethods, writeFacetSet, writeGenericConstants, writeGetFamily, writeImports, writeImports, writeListenerAdd, writeListenerMethods, writeListenerRemove, writeListenersGet, writeOther, writePropertyConstants, writePropertyGet, writePropertyMethods, writePropertyMethods, writePropertySet, writePropertySet, writePropertyValueConstants
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFacesComponentGenerator

public MyFacesComponentGenerator(org.apache.maven.plugin.logging.Log log,
                                 boolean is12)
Method Detail

addSpecificImports

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

writePropertyDeclaration

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

writeStateManagementMethods

public void writeStateManagementMethods(PrettyWriter out,
                                        ComponentBean component)
                                 throws java.io.IOException
Specified by:
writeStateManagementMethods in interface ComponentGenerator
Specified by:
writeStateManagementMethods in class AbstractComponentGenerator
Throws:
java.io.IOException

writePropertyListMethods

public void writePropertyListMethods(PrettyWriter out,
                                     PropertyBean property)
                              throws java.io.IOException
Specified by:
writePropertyListMethods in class AbstractComponentGenerator
Throws:
java.io.IOException

writeConstructorContent

protected void writeConstructorContent(PrettyWriter out,
                                       ComponentBean component,
                                       int modifiers,
                                       java.lang.String rendererType)
                                throws java.io.IOException
Specified by:
writeConstructorContent in class AbstractComponentGenerator
Throws:
java.io.IOException

writePropertyListMethods

protected void writePropertyListMethods(PrettyWriter out,
                                        PropertyBean property,
                                        java.util.Collection ignoreList)
Specified by:
writePropertyListMethods in class AbstractComponentGenerator

writePropertySetterMethodBody

protected void writePropertySetterMethodBody(PrettyWriter out,
                                             PropertyBean property,
                                             java.lang.String propertyClass)
                                      throws java.io.IOException
Specified by:
writePropertySetterMethodBody in class AbstractComponentGenerator
Throws:
java.io.IOException

writePropertyGetterMethodBody

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

writeSaveState

protected void writeSaveState(PrettyWriter out,
                              ComponentBean component)
                       throws java.io.IOException
Throws:
java.io.IOException

writeRestoreState

protected void writeRestoreState(PrettyWriter out,
                                 ComponentBean component)
                          throws java.io.IOException
Throws:
java.io.IOException


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