Class OPFItems
java.lang.Object
com.adobe.epubcheck.opf.OPFItems
Represents the set of Publication Resources in a Package Document (OPF).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OPFItemsbuild(Map<String, OPFItem.Builder> itemBuilders, Iterable<String> spineIDs, ValidationContext context) Creates a consolidated set ofOPFItemfrom item builders and a list of spine item IDs.com.google.common.base.Optional<OPFItem> getItemById(String id) Search the item with the given ID.com.google.common.base.Optional<OPFItem> getItemByURL(io.mola.galimatias.URL url) Search the item with the given path.getItems()Returns the list of items in this set, in document order.Returns the list of items in the spine.
-
Field Details
-
items
-
spine
-
itemsById
-
itemsByURL
-
-
Constructor Details
-
OPFItems
-
-
Method Details
-
getItemById
-
getItemByURL
Search the item with the given path.- Parameters:
id- the URL of the item to search, can benull.- Returns:
- An
Optionalcontaining the item if found, orOptional.absent()if not found.
-
getSpineItems
-
getItems
-
build
public static OPFItems build(Map<String, OPFItem.Builder> itemBuilders, Iterable<String> spineIDs, ValidationContext context) Creates a consolidated set ofOPFItemfrom item builders and a list of spine item IDs.
-