|
Mojarra JSF Tools 2.1.28.SP9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.faces.generate.AbstractGenerator
public abstract class AbstractGenerator
Abstract base class for Java and TLD generators.
The methods in this class presume the following command line option names and corresponding values:
Nested Class Summary | |
---|---|
protected static class |
AbstractGenerator.CodeWriter
|
Field Summary | |
---|---|
protected static Set<String> |
JAVA_KEYWORDS
|
protected static Map<String,String> |
TYPE_DEFAULTS
|
Constructor Summary | |
---|---|
AbstractGenerator()
|
Method Summary | |
---|---|
protected static String |
capitalize(String name)
Return the capitalized version of the specified property name. |
protected static String |
mangle(String name)
Return a mangled version of the specified name if it conflicts with a Java keyword; otherwise, return the specified name unchanged. |
protected static Map<String,String> |
options(String[] args)
Parse the command line options into a Map . |
protected static boolean |
primitive(String type)
Return true if the specified type is a primitive. |
protected static String |
shortName(String className)
Return the short class name from the specified (potentially fully qualified) class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.faces.generate.Generator |
---|
generate |
Field Detail |
---|
protected static final Map<String,String> TYPE_DEFAULTS
protected static final Set<String> JAVA_KEYWORDS
Constructor Detail |
---|
public AbstractGenerator()
Method Detail |
---|
protected static String capitalize(String name)
Return the capitalized version of the specified property name.
name
- Uncapitalized property nameprotected static String mangle(String name)
Return a mangled version of the specified name if it conflicts with a Java keyword; otherwise, return the specified name unchanged.
name
- Name to be potentially mangledprotected static Map<String,String> options(String[] args)
Parse the command line options into a Map
.
args
- Command line arguments passed to this program
IllegalArgumentException
- if an option flag does not start
with a '-' or is missing a corresponding valueprotected static boolean primitive(String type)
Return true
if the specified type is a primitive.
type
- Type to be testedprotected static String shortName(String className)
Return the short class name from the specified (potentially fully qualified) class name. If the specified name has no periods, the input value is returned unchanged.
className
- Class name that is optionally fully qualified
|
Mojarra JSF Tools 2.1.28.SP9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |