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

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.TrinidadComponentGenerator
All Implemented Interfaces:
ClassGenerator, ComponentGenerator

public class TrinidadComponentGenerator
extends AbstractComponentGenerator


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
TrinidadComponentGenerator(org.apache.maven.plugin.logging.Log log, boolean is12)
           
 
Method Summary
protected  void _writeGetBeanType(PrettyWriter out)
           
protected  void addSpecificImports(java.util.Set imports, ComponentBean component)
           
protected  boolean isAccessorMethodFinal()
          Whether the getters/setters have the final modifier
protected  void writeConstructorContent(PrettyWriter out, ComponentBean component, int modifiers, java.lang.String rendererType)
           
 void writeOther(PrettyWriter out, ComponentBean component)
           
 void writePropertyConstants(PrettyWriter out, java.lang.String superclassName, ComponentBean component)
           
protected  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 gnoreList)
           
protected  void writePropertySetterMethodBody(PrettyWriter out, PropertyBean property, java.lang.String propertyClass)
           
 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, resolveType, writeClassBegin, writeClassEnd, writeConstructor, writeFacetConstants, writeFacetGet, writeFacetMethods, writeFacetSet, writeGenericConstants, writeGetFamily, writeImports, writeImports, writeListenerAdd, writeListenerMethods, writeListenerRemove, writeListenersGet, 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

TrinidadComponentGenerator

public TrinidadComponentGenerator(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

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 gnoreList)
Specified by:
writePropertyListMethods in class AbstractComponentGenerator

writePropertyConstants

public void writePropertyConstants(PrettyWriter out,
                                   java.lang.String superclassName,
                                   ComponentBean component)
                            throws java.io.IOException
Specified by:
writePropertyConstants in interface ComponentGenerator
Overrides:
writePropertyConstants in class AbstractComponentGenerator
Throws:
java.io.IOException

writePropertyDeclaration

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

isAccessorMethodFinal

protected boolean isAccessorMethodFinal()
Whether the getters/setters have the final modifier

Overrides:
isAccessorMethodFinal in class AbstractComponentGenerator
Returns:
true if the getters/setters are final

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

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

writeOther

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

_writeGetBeanType

protected void _writeGetBeanType(PrettyWriter out)
                          throws java.io.IOException
Throws:
java.io.IOException


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