Class ResourceCollection

java.lang.Object
com.adobe.epubcheck.opf.ResourceCollection

public final class ResourceCollection extends Object
Represent a collection of resources as defined by the collection element in Package Documents.
  • Field Details

  • Constructor Details

  • Method Details

    • getRoles

      public Set<String> getRoles()
      Returns the roles of this collection.
    • hasRole

      public boolean hasRole(String role)
      Returns true if this collection has the given role.
    • hasRole

      public boolean hasRole(ResourceCollection.Roles role)
      Returns true if this collection has the given IDPF-reserved role.
    • getMetadata

      public MetadataSet getMetadata()
      Returns the metadata of this collection. Guaranteed non-null (can be empty).
    • getMetadataLinks

      public LinkedResources getMetadataLinks()
      Returns the linked resources defined as metadata in this collection. Guaranteed non-null (can be empty).
    • getCollections

      public ResourceCollections getCollections()
      Returns the set of this collection's sub collections. Guaranteed non-null (can be empty).
    • getResources

      public LinkedResources getResources()
      Returns the set of this collection's resources. Guaranteed non-null (can be empty).
    • builder

      public static final ResourceCollection.Builder builder()
      Creates a new builder. Calling this method is identical to calling the empty ResourceCollection.Builder constructor.
      Returns:
      a newly created builder.