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

com.adobe.epubcheck.ctc.epubpackage.PackageManifest Maven / Gradle / Ivy

Go to download

EPUBCheck is a tool to validate the conformance of EPUB publications against the EPUB specifications. EPUBCheck can be run as a standalone command-line tool or used as a Java library.

There is a newer version: 5.1.0
Show newest version
package com.adobe.epubcheck.ctc.epubpackage;

import java.util.Vector;

/**
 *  ===  WARNING  ==========================================
* This class is scheduled to be refactored and integrated
* in another package.
* Please keep changes minimal (bug fixes only) until then.
* ========================================================
*/ public class PackageManifest { private final Vector items = new Vector(); public Vector getItems() { return items; } public int itemsLength() { return items.size(); } public void addItem(ManifestItem mi) { items.add(mi); } public ManifestItem getItem(int i) { return items.get(i); } public ManifestItem getItem(String id) { if (id == null || id.trim().equals("")) { return null; } for (ManifestItem item : items) { if (id.trim().equals(item.getId().trim())) { return item; } } return null; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy