org.jboss.shrinkwrap.api
Class ArchivePaths

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

public final class ArchivePaths
extends Object

A Factory for ArchivePath creation.

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
static ArchivePath create(ArchivePath basePath, ArchivePath context)
          Creates a new ArchivePath using the specified base and specified relative context.
static ArchivePath create(ArchivePath basePath, String context)
          Creates a new ArchivePath using the specified base and specified relative context.
static ArchivePath create(String context)
          Creates a new ArchivePath with the specified context
static ArchivePath create(String basePath, ArchivePath context)
          Creates a new ArchivePath using the specified base and specified relative context.
static ArchivePath create(String basePath, String context)
          Creates a new ArchivePath using the specified base and specified relative context.
static ArchivePath root()
          Creates a new ArchivePath 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 ArchivePath root()
Creates a new ArchivePath representing the root path (/).

Returns:
a new root path

create

public static ArchivePath create(String context)
Creates a new ArchivePath 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 ArchivePath create(String basePath,
                                 String context)
Creates a new ArchivePath 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 ArchivePath create(String basePath,
                                 ArchivePath context)
Creates a new ArchivePath 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 ArchivePath create(ArchivePath basePath,
                                 String context)
Creates a new ArchivePath 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 ArchivePath create(ArchivePath basePath,
                                 ArchivePath context)
Creates a new ArchivePath using the specified base and specified relative context.

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


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