Mojarra JSF Tools 2.1.28.SP9

com.sun.faces.generate
Class HtmlTaglib12Generator

java.lang.Object
  extended by com.sun.faces.generate.AbstractGenerator
      extended by com.sun.faces.generate.HtmlTaglib12Generator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
HtmlTaglib21Generator

public class HtmlTaglib12Generator
extends AbstractGenerator

This class generates tag handler class code that is special to the "html_basic" package.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.faces.generate.AbstractGenerator
AbstractGenerator.CodeWriter
 
Field Summary
protected  ComponentBean component
           
protected  FacesConfigBean configBean
           
protected  PropertyManager propManager
           
protected  RendererBean renderer
           
protected  String tagClassName
           
protected  AbstractGenerator.CodeWriter writer
           
 
Fields inherited from class com.sun.faces.generate.AbstractGenerator
JAVA_KEYWORDS, TYPE_DEFAULTS
 
Constructor Summary
HtmlTaglib12Generator(PropertyManager propManager)
           
 
Method Summary
protected  void addImport(String fullyQualClassName)
           
 void generate(FacesConfigBean configBean)
          Perform whatever generation tasks are necessary using the provided FacesConfigBean as the model.
protected static boolean isValueHolder(String componentClass)
           
static void main(String[] args)
           
protected  void setTldGenerator(JspTLDGenerator tldGenerator)
          Set the JspTLDGenerator to be used by the taglib generator.
protected  void tagHanderSetPropertiesMethod()
           
protected  void tagHandlerClassicSupportMethods()
          Generate Tag Handler support methods
protected  void tagHandlerGeneralMethods()
          Generate Tag Handler general methods from component properties and renderer attributes.
protected  void tagHandlerPrefix()
          Generate copyright, package declaration, import statements, class declaration.
protected  void tagHandlerReleaseMethod()
           
protected  void tagHandlerSetterMethods()
          Generate Tag Handler setter methods from component properties and renderer attributes.
protected  void tagHandlerSuffix()
          Generate remaining Tag Handler methods
protected  void writeClassDeclaration()
           
protected  void writeClassDocumentation()
           
protected  void writeCopyright()
           
protected  void writeImports()
           
protected  void writePackage()
           
protected  void writeSuperTagCallBody(String method, boolean hasReturn)
          Convience method to generate code for a super call to a JSP tag lifecycle method.
 
Methods inherited from class com.sun.faces.generate.AbstractGenerator
capitalize, mangle, options, primitive, shortName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected AbstractGenerator.CodeWriter writer

component

protected ComponentBean component

renderer

protected RendererBean renderer

tagClassName

protected String tagClassName

configBean

protected FacesConfigBean configBean

propManager

protected PropertyManager propManager
Constructor Detail

HtmlTaglib12Generator

public HtmlTaglib12Generator(PropertyManager propManager)
Method Detail

generate

public void generate(FacesConfigBean configBean)
Description copied from interface: Generator

Perform whatever generation tasks are necessary using the provided FacesConfigBean as the model.

Parameters:
configBean - model data

main

public static void main(String[] args)

setTldGenerator

protected void setTldGenerator(JspTLDGenerator tldGenerator)

Set the JspTLDGenerator to be used by the taglib generator.

Parameters:
tldGenerator - JspTLDGenerator instance

addImport

protected void addImport(String fullyQualClassName)

writeImports

protected void writeImports()
                     throws Exception
Throws:
Exception

writeCopyright

protected void writeCopyright()
                       throws Exception
Throws:
Exception

writePackage

protected void writePackage()
                     throws Exception
Throws:
Exception

writeClassDocumentation

protected void writeClassDocumentation()
                                throws Exception
Throws:
Exception

writeClassDeclaration

protected void writeClassDeclaration()
                              throws Exception
Throws:
Exception

tagHandlerPrefix

protected void tagHandlerPrefix()
                         throws Exception
Generate copyright, package declaration, import statements, class declaration.

Throws:
Exception

tagHandlerReleaseMethod

protected void tagHandlerReleaseMethod()
                                throws Exception
Throws:
Exception

tagHandlerSetterMethods

protected void tagHandlerSetterMethods()
                                throws Exception
Generate Tag Handler setter methods from component properties and renderer attributes.

Throws:
Exception

tagHanderSetPropertiesMethod

protected void tagHanderSetPropertiesMethod()
                                     throws Exception
Throws:
Exception

tagHandlerGeneralMethods

protected void tagHandlerGeneralMethods()
                                 throws Exception
Generate Tag Handler general methods from component properties and renderer attributes.

Throws:
Exception

isValueHolder

protected static boolean isValueHolder(String componentClass)

tagHandlerClassicSupportMethods

protected void tagHandlerClassicSupportMethods()
                                        throws Exception
Generate Tag Handler support methods

Throws:
Exception

writeSuperTagCallBody

protected void writeSuperTagCallBody(String method,
                                     boolean hasReturn)
                              throws IOException

Convience method to generate code for a super call to a JSP tag lifecycle method.

Parameters:
method - JSP tag lifecycle method name
Throws:
IOException

tagHandlerSuffix

protected void tagHandlerSuffix()
                         throws Exception
Generate remaining Tag Handler methods

Throws:
Exception

Mojarra JSF Tools 2.1.28.SP9

Copyright © 2016 JBoss by Red Hat. All Rights Reserved.