org.enhydra.kelp.common
Class ValidationUtil
- public class ValidationUtil
ValidationUtil
private ValidationUtil()
- Hidden constructor
isJavaPackage
public static boolean isJavaPackage(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(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(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(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.