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

org.apertereports.engine.SubreportProvider Maven / Gradle / Ivy

/**
 * 
 */
package org.apertereports.engine;

import java.util.Map;

import org.apertereports.common.exception.AperteReportsException;

/**
 * @author MW
 * 
 */
public interface SubreportProvider {

	Map getSubreports(String... reportNames) throws AperteReportsException;

	public class Subreport {
		private String name;
		private String cacheId;
		private byte[] content;

		public Subreport(String name, String cacheId, byte[] content) {
			super();
			this.name = name;
			this.cacheId = cacheId;
			this.content = content;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getCacheId() {
			return cacheId;
		}

		public void setCacheId(String cacheId) {
			this.cacheId = cacheId;
		}

		public byte[] getContent() {
			return content;
		}

		public void setContent(String content) {
			this.content = content.getBytes();
		}

		public void setContent(byte[] content) {
			this.content = content;
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy