Class RenderedDocument
java.lang.Object
com.aquima.interactions.portal.documents.model.RenderedDocument
- All Implemented Interfaces:
IRenderedDocument
,Serializable
This class is used to return a rendered document.
- Since:
- 6.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorDescriptionRenderedDocument
(String name, String description, OutputFormat format, byte[] contents) Constructor to create a generated document. -
Method Summary
-
Constructor Details
-
RenderedDocument
Constructor to create a generated document.- Parameters:
name
- The name of the document, may not be null or empty.description
- The description of the document, may be null.format
- The output format of the document, may not be null.contents
- The binary content of the document, may not be null.
-
-
Method Details
-
getName
Description copied from interface:IRenderedDocument
This method returns the name of the document.- Specified by:
getName
in interfaceIRenderedDocument
- Returns:
- The name of the document.
-
getDescription
Description copied from interface:IRenderedDocument
This method returns a descriptive text of the document.- Specified by:
getDescription
in interfaceIRenderedDocument
- Returns:
- a descriptive text of the document, may be null
-
getOutputFormat
Description copied from interface:IRenderedDocument
This method returns the output format of the document.- Specified by:
getOutputFormat
in interfaceIRenderedDocument
- Returns:
- The output format of the document.
-
getContents
public byte[] getContents()Description copied from interface:IRenderedDocument
This method returns the actual contents of the generated document.- Specified by:
getContents
in interfaceIRenderedDocument
- Returns:
- byte array containing the actual content of the document.
-
toString
-