E
- parent data objectpublic abstract class PrintOutGenerator<E extends DataObject<E> & FilecontentInterface<E>>
extends java.lang.Object
Constructor and Description |
---|
PrintOutGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addContentAsAttachment(E object,
java.lang.String label)
adds the print-out content as file attachment to the object
|
abstract void |
generateContent(E object,
PDFDocument document)
generates the content for the given data object in the document provided
|
SFile |
generateContent(E object,
java.lang.String label)
wrapper that creates the binary file around the core generate content method
|
public abstract void generateContent(E object, PDFDocument document) throws java.io.IOException
object
- the father object of the printoutdocument
- Apache document used for the printjava.io.IOException
- if any error happens writing the filepublic SFile generateContent(E object, java.lang.String label)
object
- object to processlabel
- label of the filepublic void addContentAsAttachment(E object, java.lang.String label)
object
- data objectlabel
- label of the file