public final class OutputterTarget extends Object
This class is immutable.
Constructor and Description |
---|
OutputterTarget(DirectoryWithPrefix directory,
DirectoryCreationParameters parameters)
Creates for a particular directory, with optionally an associated prefix.
|
Modifier and Type | Method and Description |
---|---|
OutputterTarget |
changePrefix(DirectoryWithPrefix prefixToAssign)
Creates a new
OutputterTarget with a changed prefix. |
boolean |
equals(Object o) |
Path |
getDirectory() |
Optional<WriterExecuteBeforeEveryOperation> |
getParentDirectoryCreator() |
DirectoryWithPrefix |
getPrefix() |
int |
hashCode() |
PathCreator |
pathCreator() |
String |
toString() |
public OutputterTarget(DirectoryWithPrefix directory, DirectoryCreationParameters parameters) throws BindFailedException
directory
- the directory to output, with optionally an associated prefix.parameters
- parameters that influence how the directory is created.BindFailedException
- if the directory cannot be successfully used as an output target.public OutputterTarget changePrefix(DirectoryWithPrefix prefixToAssign) throws BindFailedException
OutputterTarget
with a changed prefix.
The directory-component of the prefix must be equal to or a subdirectory of the existing
directory
.
prefixToAssign
- the prefix to assignOutputterTarget
but instead with prefixToAssign
.BindFailedException
- if the subdirectory cannot be outputted topublic Optional<WriterExecuteBeforeEveryOperation> getParentDirectoryCreator()
public Path getDirectory()
public PathCreator pathCreator()
public DirectoryWithPrefix getPrefix()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.