com.adobe.epubcheck.ctc.epubpackage.PackageManifest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epubcheck Show documentation
Show all versions of epubcheck Show documentation
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.
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;
}
}