com.adobe.pdfservices.operation.pdfjobs.params.documentmerge.Fragments Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdfservices-sdk Show documentation
Show all versions of pdfservices-sdk Show documentation
Adobe PDF Services SDK allows you to access RESTful APIs to create, convert, and manipulate PDFs within your applications.
Older versions can be found under groupId: com.adobe.documentservices, artifactId: pdftools-sdk
/*
* Copyright 2024 Adobe
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file in
* accordance with the terms of the Adobe license agreement accompanying
* it. If you have received this file from a source other than Adobe,
* then your use, modification, or distribution of it requires the prior
* written permission of Adobe.
*/
package com.adobe.pdfservices.operation.pdfjobs.params.documentmerge;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* Class for providing support for Fragments. To know more about fragments
* use-case in document generation and document templates, please see the
* documentation
*/
public class Fragments {
private List fragmentsList;
/**
* Creates a new {@link Fragments} instance
*/
public Fragments() {
fragmentsList = new ArrayList<>();
}
/**
* To add JsonObject into the fragments list.
*
* @param fragment JSON Object to be added to fragments list
*/
public void addFragment(JSONObject fragment) {
fragmentsList.add(fragment);
}
/**
* To add List of JsonObject into the fragments list.
*
* @param fragments List of JSON object to be added to fragments list
*/
public void addFragments(List fragments) {
fragmentsList.addAll(fragments);
}
/**
* Returns the list of fragments.
*
* @return the list of fragments
*/
public List getFragmentsList() {
return fragmentsList;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy