org.jamon.codegen
Class PathUtils

java.lang.Object
  extended by org.jamon.codegen.PathUtils

public class PathUtils
extends java.lang.Object

Provides methods to translate template paths to the corresponding interface class name, implementation class name, and the package name for each.


Method Summary
static java.lang.String getFullyQualifiedImplClassName(java.lang.String p_path)
          Given a template path, return the fully qualified name of the implementation class for that template.
static java.lang.String getFullyQualifiedIntfClassName(java.lang.String p_path)
          Given a template path, return the fully qualified name of the interface class for that template.
static java.lang.String getImplClassName(java.lang.String p_path)
          Given a template path, return the name of the implementation class for that template.
static java.lang.String getImplPackageName(java.lang.String p_path)
          Given a template path, return the name of the package in which the implementation class for that template lives.
static java.lang.String getIntfClassName(java.lang.String p_path)
          Given a template path, return the name of the interface class for that template.
static java.lang.String getIntfPackageName(java.lang.String p_path)
          Given a template path, return the name of the package in which the interface class for that template lives.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIntfClassName

public static java.lang.String getIntfClassName(java.lang.String p_path)
Given a template path, return the name of the interface class for that template.

Parameters:
p_path - the template path
Returns:
the name of the interface class

getImplClassName

public static java.lang.String getImplClassName(java.lang.String p_path)
Given a template path, return the name of the implementation class for that template.

Parameters:
p_path - the template path
Returns:
the name of the implementation class

getIntfPackageName

public static java.lang.String getIntfPackageName(java.lang.String p_path)
Given a template path, return the name of the package in which the interface class for that template lives.

Parameters:
p_path - the template path
Returns:
the name of the interface class package

getImplPackageName

public static java.lang.String getImplPackageName(java.lang.String p_path)
Given a template path, return the name of the package in which the implementation class for that template lives.

Parameters:
p_path - the template path
Returns:
the name of the implementation class package

getFullyQualifiedIntfClassName

public static java.lang.String getFullyQualifiedIntfClassName(java.lang.String p_path)
Given a template path, return the fully qualified name of the interface class for that template.

Parameters:
p_path - the template path
Returns:
the fully qualified name of the interface class

getFullyQualifiedImplClassName

public static java.lang.String getFullyQualifiedImplClassName(java.lang.String p_path)
Given a template path, return the fully qualified name of the implementation class for that template.

Parameters:
p_path - the template path
Returns:
the fully qualified name of the implementation class


jamon