|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.ws.wadl2java.GeneratorUtil
public class GeneratorUtil
Utility functions for code generators.
| Constructor Summary | |
|---|---|
GeneratorUtil()
|
|
| Method Summary | |
|---|---|
static String |
escapeReservedWord(String name)
|
static com.sun.codemodel.JClass |
getJavaType(Param param,
com.sun.codemodel.JCodeModel model,
com.sun.codemodel.JDefinedClass parentClass,
JavaDocUtil javaDoc)
Maps WADL param types to their respective Java type. |
static String |
makeClassName(String input)
Utility function for generating a suitable Java class name from an arbitrary string. |
static String |
makeConstantName(String input)
Make a Java constant name for the supplied WADL parameter. |
static String |
makeParamName(String input)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneratorUtil()
| Method Detail |
|---|
public static String makeConstantName(String input)
input - the WADL parameter.
public static String makeClassName(String input)
input - the string.
public static String makeParamName(String input)
public static com.sun.codemodel.JClass getJavaType(Param param,
com.sun.codemodel.JCodeModel model,
com.sun.codemodel.JDefinedClass parentClass,
JavaDocUtil javaDoc)
param - the WADL parameter.model - the JAXB codeModel instance to use if code generation is required.parentClass - the class in which any generated enums will be placed.javaDoc - a JavaDocUtil instance that will be used for generating
JavaDoc comments on any generated enum.
public static String escapeReservedWord(String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||