org.jboss.shrinkwrap.api
Class Paths

java.lang.Object
  extended by org.jboss.shrinkwrap.api.Paths

public final class Paths
extends Object

A Factory for Path creation.

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
static Path create(Path basePath, Path context)
          Creates a new Path using the specified base and specified relative context.
static Path create(Path basePath, String context)
          Creates a new Path using the specified base and specified relative context.
static Path create(String context)
          Creates a new Path with the specified context
static Path create(String basePath, String context)
          Creates a new Path using the specified base and specified relative context.
static Path root()
          Creates a new Path representing the root path (/).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

root

public static Path root()
Creates a new Path representing the root path (/).

Returns:
a new root Path

create

public static Path create(String context)
Creates a new Path with the specified context

Parameters:
context - The context which this path represents. Null or blank represents the root. Relative paths will be adjusted to absolute form.
Returns:
a new Path

create

public static Path create(String basePath,
                          String context)
Creates a new Path using the specified base and specified relative context.

Parameters:
basePath - A absolute path
context - A relative path to basePath
Returns:
a new Path

create

public static Path create(Path basePath,
                          String context)
Creates a new Path using the specified base and specified relative context.

Parameters:
basePath - A absolute path
context - A relative path to basePath
Returns:
a new Path

create

public static Path create(Path basePath,
                          Path context)
Creates a new Path using the specified base and specified relative context.

Parameters:
basePath - A absolute path
context - A relative path to basePath
Returns:
a new Path


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.