Mojarra JSF Tools 2.1.28.SP9

com.sun.faces.generate
Class GeneratorUtil

java.lang.Object
  extended by com.sun.faces.generate.GeneratorUtil

public class GeneratorUtil
extends Object

Utility methods that may be useful to all Generators.


Constructor Summary
GeneratorUtil()
           
 
Method Summary
static String convertToObject(String primitiveType)
           
static String convertToPrimitive(String objectType)
           
static Map<String,ComponentBean> getComponentFamilyComponentMap(FacesConfigBean configBean)
           
static Map<String,ArrayList<RendererBean>> getComponentFamilyRendererMap(FacesConfigBean configBean, String renderKitId)
           
static FacesConfigBean getConfigBean(String facesConfig)
           
static String getFirstDivFromString(String toParse, int[] out)
           
static String getFirstSpanFromString(String toParse, int[] out)
           
static JspTLDGenerator getTldGenerator(PropertyManager propManager)
          Obtain an instance of JspTldGenerator based on the JSP version provided.
static String makeTagClassName(String componentFamily, String rendererType)
          Build the tag handler class name from componentFamily and rendererType.
static String stripJavaxFacesPrefix(String identifier)
          Strip any "javax.faces." prefix from the beginning of the specified identifier, and return it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorUtil

public GeneratorUtil()
Method Detail

convertToPrimitive

public static String convertToPrimitive(String objectType)

convertToObject

public static String convertToObject(String primitiveType)

getTldGenerator

public static JspTLDGenerator getTldGenerator(PropertyManager propManager)
Obtain an instance of JspTldGenerator based on the JSP version provided.


stripJavaxFacesPrefix

public static String stripJavaxFacesPrefix(String identifier)

Strip any "javax.faces." prefix from the beginning of the specified identifier, and return it.

Parameters:
identifier - Identifier to be stripped

makeTagClassName

public static String makeTagClassName(String componentFamily,
                                      String rendererType)
Build the tag handler class name from componentFamily and rendererType.

Parameters:
componentFamily - the component family
rendererType - the renderer type

getComponentFamilyComponentMap

public static Map<String,ComponentBean> getComponentFamilyComponentMap(FacesConfigBean configBean)
Returns:
a SortedMap, where the keys are component-family String entries, and the values are ComponentBean instances Only include components that do not have a base component type.

getComponentFamilyRendererMap

public static Map<String,ArrayList<RendererBean>> getComponentFamilyRendererMap(FacesConfigBean configBean,
                                                                                String renderKitId)

getFirstDivFromString

public static String getFirstDivFromString(String toParse,
                                           int[] out)

getFirstSpanFromString

public static String getFirstSpanFromString(String toParse,
                                            int[] out)

getConfigBean

public static FacesConfigBean getConfigBean(String facesConfig)
                                     throws Exception
Throws:
Exception

Mojarra JSF Tools 2.1.28.SP9

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