public final class JNaming
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInJavaLang(java.lang.String name)
Returns true if the given String is a Java class in java.lang.* which
will cause a problem when used as a variable name.
|
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 |
isParameterizedCollectionsObject(java.lang.String name)
Returns true if the given String is a parameterized Java collection.
|
static boolean |
isReservedByCastor(java.lang.String name)
Returns true if the given String is a reserved name by Castor which may
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.
|
public static boolean isKeyword(java.lang.String name)
name - the String to check against the list of keywordspublic static boolean isParameterizedCollectionsObject(java.lang.String name)
name - the String to check as a parameterized Java collectionpublic static boolean isInJavaLang(java.lang.String name)
name - the String to check against the list of keywordspublic static boolean isReservedByCastor(java.lang.String name)
name - the String to check against the list of keywordspublic static boolean isValidJavaIdentifier(java.lang.String string)
string - the String to check the production ofIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com