Class FileAttachment


  • public class FileAttachment
    extends java.lang.Object
    • Field Detail

      • filename

        protected java.lang.String filename
      • mimetype

        protected java.lang.String mimetype
      • relation

        protected java.lang.String relation
      • description

        protected java.lang.String description
      • data

        protected byte[] data
    • 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()