Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enhydra.kelp.common
Class ValidationUtil  view ValidationUtil download ValidationUtil.java

java.lang.Object
  extended byorg.enhydra.kelp.common.ValidationUtil

public class ValidationUtil
extends java.lang.Object


Constructor Summary
private ValidationUtil()
          Hidden constructor
 
Method Summary
static boolean isDirectory(java.io.File file)
           
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
 

Constructor Detail

ValidationUtil

private ValidationUtil()
Hidden constructor

Method Detail

isJavaPackage

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


isJavaIdentifier

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


isDirectory

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


isDirectory

public static boolean isDirectory(java.io.File file)

isParentDirectory

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