All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mustangproject.FileAttachment Maven / Gradle / Ivy

Go to download

FOSS Java library to read, write and validate european electronic invoices and orders in the UN/CEFACT Cross Industry Invoice based formats Factur-X/ZUGFeRD, XRechnung and Order-X in your invoice PDFs.

There is a newer version: 2.15.2
Show newest version
package org.mustangproject;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class FileAttachment {

	protected String filename;
	protected String mimetype;
	protected String relation;
	protected String description;
	protected byte[] data;


	/***
	 * bean contructor
	 */
	public FileAttachment() {

	}

	public FileAttachment(String filename, String mimetype, String relation, byte[] data) {
		this.filename = filename;
		this.mimetype = mimetype;
		this.relation = relation;
		this.data = data;
		this.description = "Additional file attachment";
	}

	public String getDescription() {
		return description;
	}

	public FileAttachment setDescription(String description) {
		this.description = description;
		return this;
	}

	public String getFilename() {
		return filename;
	}

	public FileAttachment setFilename(String filename) {
		this.filename = filename;
		return this;
	}

	public String getMimetype() {
		return mimetype;
	}

	public FileAttachment setMimetype(String mimetype) {
		this.mimetype = mimetype;
		return this;
	}

	public String getRelation() {
		return relation;
	}

	public FileAttachment setRelation(String relation) {
		this.relation = relation;
		return this;
	}

	public byte[] getData() {
		return data;
	}

	public FileAttachment setData(byte[] data) {
		this.data = data;
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy