Class OPFHandler30

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler

public class OPFHandler30 extends OPFHandler
  • Field Details

  • Constructor Details

  • Method Details

    • startElement

      public void startElement()
      Overrides:
      startElement in class OPFHandler
    • endElement

      public void endElement()
      Overrides:
      endElement in class OPFHandler
    • getMetadata

      public MetadataSet getMetadata()
      Returns the metadata for the Rendition represented by the current Package Document. Must be called after the parsing.
      Returns:
      the metadata for the Rendition represented by the current Package Document
    • getLinkedResources

      public LinkedResources getLinkedResources()
      Returns the list of linked resources (i.e. resources referenced from link elements) declared in the current Package Document at the package level (i.e. in the package metadata element). Must be called after the parsing.
      Returns:
      the linked resources for the Rendition represented by the current Package Document
    • getCollections

      public ResourceCollections getCollections()
      Returns the list of collections (as defined in collection elements) declared in the current Package Document. Must be called after the parsing.
      Returns:
      the linked resources for the Rendition represented by the current Package Document
    • processCollectionRole

      private List<String> processCollectionRole(String roleAtt)
    • processLink

      private void processLink()
    • processItemrefProperties

      private void processItemrefProperties(OPFItem.Builder builder, String property)
    • processItemProperties

      private void processItemProperties(OPFItem.Builder builder, String property, String mimeType)
    • processLinkProperties

      private Set<Property> processLinkProperties(String properties)
    • processLinkRel

      private Set<Property> processLinkRel(String rel)
    • processMeta

      private void processMeta()
    • processDCElem

      private void processDCElem()
    • processItemsInIndexCollection

      private void processItemsInIndexCollection(ResourceCollection collection)
    • checkLanguageTag

      private void checkLanguageTag(String language)
    • reportMetadata

      protected void reportMetadata()
    • reportItem

      protected void reportItem(OPFItem item)
      Description copied from class: OPFHandler
      Report features or messages for a given item.
      Overrides:
      reportItem in class OPFHandler
      Parameters:
      item - the item to report.