T
- element-typepublic class CombinedListGenerator<T> extends Object implements MultipleFileTypeGenerator<T>
One generator must always exist. Zero generators is never allowed.
Constructor and Description |
---|
CombinedListGenerator() |
CombinedListGenerator(Generator<T>... generator) |
CombinedListGenerator(NameValue<Generator<T>> namedGenerator) |
CombinedListGenerator(java.util.stream.Stream<NameValue<Generator<T>>> namedGenerators) |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
Generator<T> element) |
void |
write(T element,
OutputNameStyle outputNameStyle,
ElementOutputter outputter)
Writes a non-indexable output (an output that isn't part of a collection of other similar
items).
|
void |
writeWithIndex(T element,
String index,
IndexableOutputNameStyle outputNameStyle,
ElementOutputter outputter)
Writes an indexable output (many outputs of the same type, uniquely identified by an index).
|
public CombinedListGenerator(java.util.stream.Stream<NameValue<Generator<T>>> namedGenerators)
@SafeVarargs public CombinedListGenerator(Generator<T>... generator)
public CombinedListGenerator()
public void write(T element, OutputNameStyle outputNameStyle, ElementOutputter outputter) throws OutputWriteFailedException
ElementWriter
write
in interface ElementWriter<T>
element
- the element to write.outputNameStyle
- TODOOutputWriteFailedException
public void writeWithIndex(T element, String index, IndexableOutputNameStyle outputNameStyle, ElementOutputter outputter) throws OutputWriteFailedException
ElementWriter
writeWithIndex
in interface ElementWriter<T>
element
- the element to write.index
- TODOOutputWriteFailedException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.