Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.jdeveloper.java.util
Class NamingUtil

java.lang.Object
  extended by oracle.jdeveloper.java.util.NamingUtil


public final class NamingUtil
extends java.lang.Object

This class concentrates some utilities method that verify the validity of java names.


Method Summary
static boolean isJavaIdentifier(java.lang.String name)
          Returns true if the specified String is a valid Java identifier.
static boolean isJavaKeyword(java.lang.String name)
          Returns true if the specified String is a Java keyword.
static boolean isJavaReservedWord(java.lang.String name)
          Returns true if the specified String is a Java reserved word.
static boolean isPackageIdentifier(java.lang.String name)
          Returns true if the specified String is a valid package identifier.

 

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(java.lang.String name)
Returns true if the specified String is a Java keyword.
Parameters:
name - the String to test.

isJavaReservedWord

public static boolean isJavaReservedWord(java.lang.String name)
Returns true if the specified String is a Java reserved word. A Java reserved word is either a keyword, a boolean literal, or the null literal.
Parameters:
name - the String to test.

isJavaIdentifier

public static boolean isJavaIdentifier(java.lang.String name)
Returns true if the specified String is a valid Java identifier.
Parameters:
name - the String to test.

isPackageIdentifier

public static boolean isPackageIdentifier(java.lang.String name)
Returns true if the specified String is a valid package identifier.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


Copyright © 1997, 2011, Oracle. All rights reserved.