|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.kickstart4j.SrcDir
public final class SrcDir
A directory inside a base directory. This class is immutable.
| Constructor Summary | |
|---|---|
SrcDir(String path,
String srcPathUrl)
Constructor with all arguments. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getCanonicalPathAndFilename(File baseDir,
String filename)
Returns the absolute file based on a given base directory as String. |
File |
getDestFile(File baseDir,
String filename)
Returns the absolute file based on a given base directory. |
String |
getPath()
Returns the path of the file. |
String |
getRelativeSlashPathAndFilename(String filename)
Returns a relative path and filename. |
String |
getSlashPath()
Returns the path with a slash ("/") used as path separator. |
URL |
getSrcFileURL(String filename)
Returns the URL where the source file is located. |
String |
getSrcPathUrl()
Returns the URL where the source directory is located. |
int |
hashCode()
|
String |
toDebugString()
|
String |
toString()
|
String |
toXML()
Creates an XML representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SrcDir(String path,
String srcPathUrl)
path - Path relative to the base directory.srcPathUrl - URL where the source directory is located - Contains the
variable ${filename}.| Method Detail |
|---|
public final String getPath()
public final String getSrcPathUrl()
public final URL getSrcFileURL(String filename)
MalformedURLException is wrapped into a
RuntimeException.
filename - Name of the file to return a URL for.
public final String getCanonicalPathAndFilename(File baseDir,
String filename)
baseDir - Base directory.filename - Name of a file inside the directory.
public final String getRelativeSlashPathAndFilename(String filename)
filename - Name of a file inside the directory.
public final String getSlashPath()
public final File getDestFile(File baseDir,
String filename)
baseDir - Base directory.filename - Name of a file inside the directory.
public final String toXML()
public final int hashCode()
hashCode in class Objectpublic final boolean equals(Object obj)
equals in class Objectpublic final String toDebugString()
toDebugString in interface org.fuin.utils4j.ToDebugStringCapablepublic final String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||