Class BasicPath

java.lang.Object
org.jboss.shrinkwrap.impl.base.path.BasicPath
All Implemented Interfaces:
Comparable<ArchivePath>, ArchivePath

public class BasicPath extends Object implements ArchivePath, Comparable<ArchivePath>
A Path which may be optionally prefixed with some common namespace context at construction time. Thread-safe.
Version:
$Revision: $
Author:
ALR, Aslak Knutsen
  • Constructor Details

    • BasicPath

      public BasicPath()
      Creates a new Path representing the root context
    • BasicPath

      public BasicPath(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.
    • BasicPath

      public BasicPath(ArchivePath basePath, ArchivePath context)
      Creates a new Path using the specified base and specified relative context.
      Parameters:
      basePath - The base path from which the new path is constructed, provided as a ArchivePath
      context - The relative context to be appended to the base path, provided as a ArchivePath
    • BasicPath

      public BasicPath(ArchivePath basePath, String context)
      Creates a new Path using the specified base and specified relative context.
      Parameters:
      basePath - The base path from which the new path is constructed, provided as a ArchivePath
      context - The relative context to be appended to the base path, provided as a String
    • BasicPath

      public BasicPath(String basePath, ArchivePath context)
      Creates a new Path using the specified base and specified relative context.
      Parameters:
      basePath - The base path from which the new path is constructed, provided as a String
      context - The relative context to be appended to the base path, provided as a ArchivePath
    • BasicPath

      public BasicPath(String basePath, String context)
      Creates a new Path using the specified base and specified relative context.
      Parameters:
      basePath - The base path from which the new path is constructed, provided as a String
      context - The relative context to be appended to the base path, provided as a String
  • Method Details