Class ResourceCollection


  • public final class ResourceCollection
    extends java.lang.Object
    Represent a collection of resources as defined by the collection element in Package Documents.
    • Method Detail

      • getRoles

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

        public boolean hasRole​(java.lang.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).