Package com.adobe.epubcheck.opf
Class OPFHandler30
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,DeclHandler,EntityResolver2,LexicalHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Deque<ResourceCollection.Builder> private ResourceCollectionsprivate final ResourceCollections.Builderprivate LinkedResourcesprivate final Deque<LinkedResources.Builder> private MetadataSetprivate final Deque<MetadataSet.Builder> private static final com.google.common.base.SplitterFields inherited from class com.adobe.epubcheck.opf.OPFHandler
itemBuilders, itemBuildersByURL, pageMapId, pageMapReferenceLocation, TEXT, uidFields inherited from class com.adobe.epubcheck.xml.handlers.XMLHandler
context, path, report -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckLanguageTag(String language) voidReturns the list of collections (as defined incollectionelements) declared in the current Package Document.Returns the list of linked resources (i.e.Returns the metadata for the Rendition represented by the current Package Document.processCollectionRole(String roleAtt) private voidprivate voidprocessItemProperties(OPFItem.Builder builder, String property, String mimeType) private voidprocessItemrefProperties(OPFItem.Builder builder, String property) private voidprocessItemsInIndexCollection(ResourceCollection collection) private voidprocessLinkProperties(String properties) processLinkRel(String rel) private voidprotected voidreportItem(OPFItem item) Report features or messages for a given item.protected voidvoidMethods inherited from class com.adobe.epubcheck.opf.OPFHandler
characters, checkUniqueIdentExists, getIdentId, getItemById, getItemByURL, getItems, getOpf12PackageFile, getOpf20PackageFile, getPath, getReference, getReferenceCount, getSpineItems, getUidMethods inherited from class com.adobe.epubcheck.xml.handlers.XMLHandler
currentElement, endElement, registerReference, registerReference, setDocumentLocator, startElementMethods inherited from class com.adobe.epubcheck.xml.handlers.BaseURLHandler
baseURL, checkURLMethods inherited from class com.adobe.epubcheck.xml.handlers.LocationHandler
location, locationMethods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntityMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
RESERVED_VOCABS
-
RESERVED_META_VOCABS
-
RESERVED_ITEM_VOCABS
-
RESERVED_ITEMREF_VOCABS
-
RESERVED_LINKREL_VOCABS
-
RESERVED_LINK_VOCABS
-
KNOWN_VOCAB_URIS
-
KNOWN_META_VOCAB_URIS
-
KNOWN_ITEM_VOCAB_URIS
-
KNOWN_ITEMREF_VOCAB_URIS
-
KNOWN_LINK_VOCAB_URIS
-
KNOWN_LINKREL_VOCAB_URIS
-
DEFAULT_VOCAB_URIS
-
TOKENIZER
private static final com.google.common.base.Splitter TOKENIZER -
itemrefVocabs
-
itemVocabs
-
metaVocabs
-
linkVocabs
-
linkrelVocabs
-
metadataBuilders
-
metadata
-
linkedResourcesBuilders
-
linkedResources
-
collectionBuilders
-
collectionsBuilder
-
collections
-
-
Constructor Details
-
OPFHandler30
OPFHandler30(ValidationContext context)
-
-
Method Details
-
startElement
public void startElement()- Overrides:
startElementin classOPFHandler
-
endElement
public void endElement()- Overrides:
endElementin classOPFHandler
-
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
Returns the list of linked resources (i.e. resources referenced fromlinkelements) declared in the current Package Document at the package level (i.e. in the packagemetadataelement). Must be called after the parsing.- Returns:
- the linked resources for the Rendition represented by the current Package Document
-
getCollections
Returns the list of collections (as defined incollectionelements) 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
-
processLink
private void processLink() -
processItemrefProperties
-
processItemProperties
-
processLinkProperties
-
processLinkRel
-
processMeta
private void processMeta() -
processDCElem
private void processDCElem() -
processItemsInIndexCollection
-
checkLanguageTag
-
reportMetadata
protected void reportMetadata() -
reportItem
Description copied from class:OPFHandlerReport features or messages for a given item.- Overrides:
reportItemin classOPFHandler- Parameters:
item- the item to report.
-