T
- element-type in collectionpublic class CollectionGenerator<T> extends Object implements Generator<Collection<T>>
Constructor and Description |
---|
CollectionGenerator(Generator<T> generator,
String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
write(Collection<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(Collection<T> element,
String index,
IndexableOutputNameStyle outputNameStyle,
ElementOutputter outputter)
Writes an indexable output (many outputs of the same type, uniquely identified by an index).
|
public void write(Collection<T> element, OutputNameStyle outputNameStyle, ElementOutputter outputter) throws OutputWriteFailedException
ElementWriter
write
in interface ElementWriter<Collection<T>>
element
- the element to write.outputNameStyle
- TODOOutputWriteFailedException
public void writeWithIndex(Collection<T> element, String index, IndexableOutputNameStyle outputNameStyle, ElementOutputter outputter) throws OutputWriteFailedException
ElementWriter
writeWithIndex
in interface ElementWriter<Collection<T>>
element
- the element to write.index
- TODOOutputWriteFailedException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.