public abstract class SingleFileInputBase extends Object implements InputFromManager
Modifier | Constructor and Description |
---|---|
protected |
SingleFileInputBase(NamedFile file)
Creates for a particular file.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile()
The associated single file.
|
String |
identifier()
A unique name associated with the input.
|
Optional<Path> |
pathForBinding()
A path to a file from which this input originated.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allAssociatedPaths, asFile, close, identifierAsPath, pathForBindingRequired
protected SingleFileInputBase(NamedFile file)
file
- the file, with an associated name.public String identifier()
InputFromManager
The name should never begin with or end with whitespace.
It should never contain backslashes, but forward-slashes are permitted.
identifier
in interface InputFromManager
public Optional<Path> pathForBinding()
InputFromManager
This path is not guaranteed to be unique for each input i.e. multiple inputs may originate from the same path.
pathForBinding
in interface InputFromManager
public File getFile()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.