SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.util
Class Packages

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.util.Packages

public class Packages
extends java.lang.Object

A utility class to deal with packages and paths.


Constructor Summary
Packages()
           
 
Method Summary
static java.lang.String getBaseName(java.lang.Class type)
          return the base name without pkg info...
static java.lang.String getBaseName(java.lang.String name)
          return the base name without pkg info...
static java.lang.String getPackage(java.lang.Class type)
          return the pkg name from a given type, e.g.
static java.lang.String getPackage(java.lang.String type)
          return the pkg name from a given type, e.g.
static java.io.File getPathForClass(java.io.File base, java.lang.Class type)
          build the path for a given class from the base directory.
static java.io.File getPathForPackage(java.io.File base, java.lang.String pkg)
          build the path for a given package from the base dir...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Packages

public Packages()
Method Detail

getPackage

public static java.lang.String getPackage(java.lang.Class type)
return the pkg name from a given type, e.g. com.solarmetric.kodo.util


getPackage

public static java.lang.String getPackage(java.lang.String type)
return the pkg name from a given type, e.g. com.solarmetric.kodo.util


getBaseName

public static java.lang.String getBaseName(java.lang.Class type)
return the base name without pkg info... e.g. Packages.


getBaseName

public static java.lang.String getBaseName(java.lang.String name)
return the base name without pkg info... e.g. Packages.


getPathForClass

public static java.io.File getPathForClass(java.io.File base,
                                           java.lang.Class type)
build the path for a given class from the base directory.


getPathForPackage

public static java.io.File getPathForPackage(java.io.File base,
                                             java.lang.String pkg)
build the path for a given package from the base dir...


SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.