Enhydra 5.1 API

org.enhydra.tool.codegen
Class ValidationUtil

java.lang.Object
  |
  +--org.enhydra.tool.codegen.ValidationUtil

public class ValidationUtil
extends java.lang.Object

This class instantiates a set of default GeneratorOptions during initialization. The default options include: appname, d, package copywrite, copywritefile, nomake, noscript, and nojbuilder.


Method Summary
static boolean isDirectory(java.lang.String path)
          Test to see if a path is a directory.
static boolean isJavaIdentifier(java.lang.String ident)
          Test to see if the given indentifier is a valid java identifier.
static boolean isJavaPackage(java.lang.String pack)
          Test to see if the given package is a valid java package name.
static boolean isParentDirectory(java.lang.String path)
          Test to see if the parent of a given path is a valid directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isJavaPackage

public static boolean isJavaPackage(java.lang.String pack)
Test to see if the given package is a valid java package name.

Parameters:
pack - The package name to test
Returns:
True if the specified package name is valid.

isJavaIdentifier

public static boolean isJavaIdentifier(java.lang.String ident)
Test to see if the given indentifier is a valid java identifier.

Parameters:
ident - The identifier to test.
Returns:
True if the specified identifier is valid.

isDirectory

public static boolean isDirectory(java.lang.String path)
Test to see if a path is a directory.

Parameters:
path - The path to test.
Returns:
True if the specified path is a directory.

isParentDirectory

public static boolean isParentDirectory(java.lang.String path)
Test to see if the parent of a given path is a valid directory.

Parameters:
path - The path to test.
Returns:
True if the parent of the specified path is a directory.

Enhydra 5.1 API