Forge - Shell API 1.2.0.Final

org.jboss.forge.shell.util
Class Packages

java.lang.Object
  extended by org.jboss.forge.shell.util.Packages

public class Packages
extends Object

Author:
Lincoln Baxter, III

Constructor Summary
Packages()
           
 
Method Summary
static String fromFileSyntax(String pkg)
           
static String toFileSyntax(String pkg)
          Convert a package name to file directory syntax.
static String toValidPackageName(String pkg)
           
 
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

toFileSyntax

public static String toFileSyntax(String pkg)
Convert a package name to file directory syntax.

Example: "com.example.package" becomes "com/example/package", using the directory separators correct for the underlying operation system.


fromFileSyntax

public static String fromFileSyntax(String pkg)

toValidPackageName

public static String toValidPackageName(String pkg)

Forge - Shell API 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.