com.dynamicpdf.api.Template Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamicpdf-api Show documentation
Show all versions of dynamicpdf-api Show documentation
A Java Client API that uses the DynamicPDF API to create, merge, split, form fill, stamp, secure/encrypt PDF documents.
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;
}
}