org.fuin.kickstart4j
Class MkDir

java.lang.Object
  extended by org.fuin.kickstart4j.MkDir

public final class MkDir
extends java.lang.Object

A directory inside a base directory. This class is immutable.


Constructor Summary
MkDir(java.io.File baseDir, java.io.File dir)
          Constructor with base directory and directory.
MkDir(java.lang.String path)
          Constructor with all arguments.
 
Method Summary
 java.lang.String getCanonicalPath(java.io.File baseDir)
          Returns the absolute directory based on a given base directory as String.
 java.io.File getDestDir(java.io.File baseDir)
          Returns the absolute file based on a given base directory.
 java.lang.String getPath()
          Returns the path of the file.
 java.lang.String getSlashPath()
          Returns the path with a slash ("/") used as separator.
 java.lang.String toXML()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MkDir

public MkDir(java.io.File baseDir,
             java.io.File dir)
Constructor with base directory and directory.

Parameters:
baseDir - Base directory for calculating the relative path.
dir - Directory inside the base directory.

MkDir

public MkDir(java.lang.String path)
Constructor with all arguments.

Parameters:
path - Path relative to the base directory.
Method Detail

getPath

public final java.lang.String getPath()
Returns the path of the file.

Returns:
Path relative to the base directory.

getCanonicalPath

public final java.lang.String getCanonicalPath(java.io.File baseDir)
Returns the absolute directory based on a given base directory as String.

Parameters:
baseDir - Base directory.
Returns:
Path inside the base directory.

getDestDir

public final java.io.File getDestDir(java.io.File baseDir)
Returns the absolute file based on a given base directory.

Parameters:
baseDir - Base directory.
Returns:
File inside the base directory.

getSlashPath

public final java.lang.String getSlashPath()
Returns the path with a slash ("/") used as separator.

Returns:
Path.

toXML

public final java.lang.String toXML()



Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.