T
- inout-typepublic abstract class InputFromManagerDelegate<T extends InputFromManager> extends Object implements InputFromManager
InputFromManager
-implementing classes that delegate to another.Constructor and Description |
---|
InputFromManagerDelegate(T delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close(ErrorReporter errorReporter)
Performs all tidying up, file-closing etc.
|
protected T |
getDelegate()
The delegate.
|
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, identifierAsPath, pathForBindingRequired
public InputFromManagerDelegate(T delegate)
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 void close(ErrorReporter errorReporter)
InputFromManager
InputFromManager
close
in interface InputFromManager
errorReporter
- whether errors are reported to.protected T getDelegate()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.