org.apache.jdo.impl.enhancer.meta.prop
Class NameHelper

java.lang.Object
  extended byorg.apache.jdo.impl.enhancer.meta.prop.NameHelper

final class NameHelper
extends java.lang.Object

Some utility methods for classname conversion.


Constructor Summary
(package private) NameHelper()
           
 
Method Summary
(package private) static java.lang.String fromCanonicalClassName(java.lang.String classname)
          Converts a classname given in a canonical form(with dots) into a VM-similar notation (with slashes)
(package private) static java.lang.String toCanonicalClassName(java.lang.String classname)
          Converts a classname given in a given VM-similar notation(with slashes) into a canonical notation (with dots).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameHelper

NameHelper()
Method Detail

toCanonicalClassName

static java.lang.String toCanonicalClassName(java.lang.String classname)
Converts a classname given in a given VM-similar notation(with slashes) into a canonical notation (with dots).

Parameters:
classname - The VM-similar notation of the classname.
Returns:
The canonical classname.
See Also:
fromCanonicalClassName(java.lang.String)

fromCanonicalClassName

static java.lang.String fromCanonicalClassName(java.lang.String classname)
Converts a classname given in a canonical form(with dots) into a VM-similar notation (with slashes)

Parameters:
classname - The canonical classname.
Returns:
The VM-similar classname notation.
See Also:
toCanonicalClassName(java.lang.String)