public class GeneratorUtil extends Object
Utility methods that may be useful to all Generators.
| Constructor and Description |
|---|
GeneratorUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static JspTLDGenerator getTldGenerator(PropertyManager propManager)
public static String stripJavaxFacesPrefix(String identifier)
Strip any "javax.faces." prefix from the beginning of the specified identifier, and return it.
identifier - Identifier to be strippedpublic static String makeTagClassName(String componentFamily, String rendererType)
componentFamily - the component familyrendererType - the renderer typepublic static Map<String,ComponentBean> getComponentFamilyComponentMap(FacesConfigBean configBean)
ComponentBean
instances Only include components that do not have a base
component type.public static Map<String,ArrayList<RendererBean>> getComponentFamilyRendererMap(FacesConfigBean configBean, String renderKitId)
public static FacesConfigBean getConfigBean(String facesConfig) throws Exception
ExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.