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

com.dynamicpdf.api.Template Maven / Gradle / Ivy

Go to download

A Java Client API that uses the DynamicPDF API to create, merge, split, form fill, stamp, secure/encrypt PDF documents.

There is a newer version: 1.10.1
Show newest version
package com.dynamicpdf.api;

import com.dynamicpdf.api.elements.Element;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * Represents a document template.
 */
public class Template {

	private String id = null;
	private List elements = new ArrayList();

	/**
	 * Initializes a new instance of the Template class.
	 * 
	 * @param id The id string representing id for the template.
	 */
	public Template(String id) {
		if (id == null) {
			this.id = UUID.randomUUID().toString();
		} else {
			this.id = id;
		}
	}

	/**
	 * Initializes a new instance of the Template class.
	 */
	public Template() {
		this(null);
	}

	/**
	 * Gets the id for the template.
	 * @return The id for the template.
	 */
	public String getId() {
		return id;
	}

	/**
	 * Sets the id for the template.
	 * @param value The id for the template.
	 */
	public void setId(String value) {
		id = value;
	}

	/**
	 * Gets the elements for the template.
	 * @return The elements for the template.
	 */
	public List getElements() {
		return elements;
	}

	/**
	 * Sets the elements for the template.
	 * @param value The elements for the template.
	 */
	public void setElements(List value) {
		elements = value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy