org.apache.felix.ipojo.manipulator.util
Class Strings

java.lang.Object
  extended by org.apache.felix.ipojo.manipulator.util.Strings

public class Strings
extends java.lang.Object

Strings is a utility class that helps to manipulate String.

Author:
Felix Project Team

Method Summary
static java.lang.String asClassName(java.lang.String path)
          Transform a normalized resource path (org/objectweb/asm/Visitor.class) into a fully qualified class name (format org.objectweb.asm.Visitor).
static java.lang.String asResourcePath(java.lang.String classname)
          Transform a FQN of a class (format org.objectweb.asm.Visitor) into a normalized resource name (org/objectweb/asm/Visitor.class).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asResourcePath

public static java.lang.String asResourcePath(java.lang.String classname)
Transform a FQN of a class (format org.objectweb.asm.Visitor) into a normalized resource name (org/objectweb/asm/Visitor.class).

Parameters:
classname - FQN of a class to be transformed
Returns:
resource name

asClassName

public static java.lang.String asClassName(java.lang.String path)
Transform a normalized resource path (org/objectweb/asm/Visitor.class) into a fully qualified class name (format org.objectweb.asm.Visitor).

Parameters:
path - normalized resource path to be transformed
Returns:
class name


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.