Class RootPath
Defines a root path.
This a directory in which files are read/written during analysis.
Analysis scripts may select different root-paths depending on how they are executed (e.g. locally writing to the filesystem during debugging on a single-file, but to a server for many files).
The name of a root must not be unique, but the combination of all fields should be unique i.e. several roots can have the same name, but should vary in their other settings.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasPath()
Exposes thepath
field as aPath
.protected boolean
boolean
getName()
The name of the root-path, which need not be unique in itself.getPath()
A path on a file-system to the directory, that defines the root.int
hashCode()
boolean
isDebug()
If true this root is preferred, when executing a job in debugging mode.void
setDebug
(boolean debug) If true this root is preferred, when executing a job in debugging mode.void
The name of the root-path, which need not be unique in itself.void
A path on a file-system to the directory, that defines the root.It splits the root portion of a path from the remainder.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
RootPath
public RootPath()
-
-
Method Details
-
split
It splits the root portion of a path from the remainder.- Parameters:
path
- path to split.- Returns:
- the split-path.
- Throws:
PathDifferenceException
- if the path cannot be matched against the root.
-
asPath
Exposes thepath
field as aPath
.- Returns:
- the path.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getName
The name of the root-path, which need not be unique in itself. -
setName
The name of the root-path, which need not be unique in itself. -
getPath
A path on a file-system to the directory, that defines the root. -
setPath
A path on a file-system to the directory, that defines the root. -
isDebug
public boolean isDebug()If true this root is preferred, when executing a job in debugging mode. -
setDebug
public void setDebug(boolean debug) If true this root is preferred, when executing a job in debugging mode.
-