public final class ProjectProperties.ProjectPath
extends java.lang.Object
Constructor and Description |
---|
ProjectPath(boolean isDirectory) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getAsFile() |
java.lang.String |
getAsString() |
java.lang.String |
getUnderRoot()
Returns path relative to project root with '/' at the end for directories, or null if directory outside
of project.
|
boolean |
isUnderRoot() |
void |
setRelativeOrAbsolute(java.lang.String path)
path is directory(or file) as declared in the omegat.project, but not __DEFAULT__.
|
public ProjectPath(boolean isDirectory)
isDirectory
- true if directory(i.e. should be ended by '/'), false if filepublic void setRelativeOrAbsolute(java.lang.String path)
public java.io.File getAsFile()
public java.lang.String getAsString()
public boolean isUnderRoot()
public java.lang.String getUnderRoot()