Apache CXF API

org.apache.cxf.helpers
Class JavaUtils

java.lang.Object
  extended by org.apache.cxf.helpers.JavaUtils

public final class JavaUtils
extends Object


Method Summary
static boolean isJavaKeyword(String keyword)
          checks if the input string is a valid java keyword.
static String makeNonJavaKeyword(String keyword)
          Turn a java keyword string into a non-Java keyword string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isJavaKeyword

public static boolean isJavaKeyword(String keyword)
checks if the input string is a valid java keyword.

Returns:
boolean true/false

makeNonJavaKeyword

public static String makeNonJavaKeyword(String keyword)
Turn a java keyword string into a non-Java keyword string. (Right now this simply means appending an underscore.)


Apache CXF API

Apache CXF