Package org.mustangproject
Class FileAttachment
- java.lang.Object
-
- org.mustangproject.FileAttachment
-
public class FileAttachment extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]dataprotected java.lang.Stringdescriptionprotected java.lang.Stringfilenameprotected java.lang.Stringmimetypeprotected java.lang.Stringrelation
-
Constructor Summary
Constructors Constructor Description FileAttachment()bean contructorFileAttachment(java.lang.String filename, java.lang.String mimetype, byte[] data)FileAttachment(java.lang.String filename, java.lang.String mimetype, java.lang.String relation, byte[] data)FileAttachment(java.lang.String filename, java.lang.String mimetype, java.lang.String relation, byte[] data, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()java.lang.StringgetDescription()java.lang.StringgetFilename()java.lang.StringgetMimetype()java.lang.StringgetRelation()FileAttachmentsetData(byte[] data)FileAttachmentsetDescription(java.lang.String description)FileAttachmentsetFilename(java.lang.String filename)FileAttachmentsetMimetype(java.lang.String mimetype)FileAttachmentsetRelation(java.lang.String relation)only needed when embedded in PDF described values - Source shall be used if this file specification is the original source material for the associated content
-
-
-
Constructor Detail
-
FileAttachment
public FileAttachment()
bean contructor
-
FileAttachment
public FileAttachment(java.lang.String filename, java.lang.String mimetype, java.lang.String relation, byte[] data, java.lang.String description)
-
FileAttachment
public FileAttachment(java.lang.String filename, java.lang.String mimetype, java.lang.String relation, byte[] data)
-
FileAttachment
public FileAttachment(java.lang.String filename, java.lang.String mimetype, byte[] data)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
-
setDescription
public FileAttachment setDescription(java.lang.String description)
-
getFilename
public java.lang.String getFilename()
-
setFilename
public FileAttachment setFilename(java.lang.String filename)
-
getMimetype
public java.lang.String getMimetype()
-
setMimetype
public FileAttachment setMimetype(java.lang.String mimetype)
-
getRelation
public java.lang.String getRelation()
-
setRelation
public FileAttachment setRelation(java.lang.String relation)
only needed when embedded in PDF described values - Source shall be used if this file specification is the original source material for the associated content. - Data shall be used if this file specification represents information used to derive a visual presentation, such as for a table or a graph. - Alternative shall be used if this file specification is an alternative representation of content, for example audio. - Supplement shall be used if this file specification represents a supplemental representation of the original source or data that may be more easily consumable (e.g. A MathML version of an equation). - Unspecified shall be used when the relationship is not known or cannot be described using one of the other values.- Parameters:
relation- String: either : Source, Data or Alternative. Usually Data, except source if the file attachment is the basis for the pdf (xrechnung2fx) or Alternative if it contains the same content (e.g. the factur-x.xml file in a factur-x PDF)- Returns:
- fluent setter
-
getData
public byte[] getData()
-
setData
public FileAttachment setData(byte[] data)
-
-