org.exolab.javasource
Class JNaming

java.lang.Object
  extended by org.exolab.javasource.JNaming

 class JNaming
extends java.lang.Object

A utility class used to validate identifiers and class names

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:56 $
Author:
Keith Visco

Method Summary
static boolean isKeyword(java.lang.String name)
          Returns true if the given String is a Java keyword which will cause a problem when used as a variable name
static boolean isValidJavaIdentifier(java.lang.String string)
          Returns true if the given String matches the production of a valid Java identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isKeyword

public static boolean isKeyword(java.lang.String name)
Returns true if the given String is a Java keyword which will cause a problem when used as a variable name


isValidJavaIdentifier

public static boolean isValidJavaIdentifier(java.lang.String string)
Returns true if the given String matches the production of a valid Java identifier

Parameters:
string, - the String to check the production of
Returns:
true if the given String matches the production of a valid Java name, otherwise false


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com