Package com.adobe.epubcheck.overlay
Class OverlayHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.xml.sax.ext.DefaultHandler2
-
- com.adobe.epubcheck.xml.handlers.LocationHandler
-
- com.adobe.epubcheck.xml.handlers.BaseURLHandler
-
- com.adobe.epubcheck.xml.handlers.XMLHandler
-
- com.adobe.epubcheck.overlay.OverlayHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler,org.xml.sax.ext.DeclHandler,org.xml.sax.ext.EntityResolver2,org.xml.sax.ext.LexicalHandler
public class OverlayHandler extends XMLHandler
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>DEFAULT_VOCAB_URISprivate static java.util.Map<java.lang.String,Vocab>KNOWN_VOCAB_URISprivate java.util.Set<PackageVocabs.ITEM_PROPERTIES>requiredPropertiesprivate static java.util.Map<java.lang.String,Vocab>RESERVED_VOCABSprivate java.util.Set<java.lang.String>resourceRefsprivate java.util.Map<java.lang.String,Vocab>vocabs-
Fields inherited from class com.adobe.epubcheck.xml.handlers.XMLHandler
context, path, report
-
-
Constructor Summary
Constructors Constructor Description OverlayHandler(ValidationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckItemReferences()protected voidcheckProperties()private voidcheckTime(java.lang.String clipBegin, java.lang.String clipEnd)private voidcheckType(java.lang.String type)voidendElement()private voidprocessAudioSrc()private voidprocessContentDocumentLink(io.mola.galimatias.URL url)private voidprocessGlobalAttrs()private voidprocessTextRef()private voidprocessTextSrc()voidstartElement()-
Methods inherited from class com.adobe.epubcheck.xml.handlers.XMLHandler
currentElement, endElement, registerReference, registerReference, setDocumentLocator, startElement
-
Methods inherited from class com.adobe.epubcheck.xml.handlers.BaseURLHandler
baseURL, checkURL
-
Methods inherited from class com.adobe.epubcheck.xml.handlers.LocationHandler
location, location
-
Methods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
-
-
-
-
Field Detail
-
RESERVED_VOCABS
private static java.util.Map<java.lang.String,Vocab> RESERVED_VOCABS
-
KNOWN_VOCAB_URIS
private static java.util.Map<java.lang.String,Vocab> KNOWN_VOCAB_URIS
-
DEFAULT_VOCAB_URIS
private static java.util.Set<java.lang.String> DEFAULT_VOCAB_URIS
-
vocabs
private java.util.Map<java.lang.String,Vocab> vocabs
-
resourceRefs
private java.util.Set<java.lang.String> resourceRefs
-
requiredProperties
private final java.util.Set<PackageVocabs.ITEM_PROPERTIES> requiredProperties
-
-
Constructor Detail
-
OverlayHandler
public OverlayHandler(ValidationContext context)
-
-
Method Detail
-
startElement
public void startElement()
- Overrides:
startElementin classXMLHandler
-
checkTime
private void checkTime(java.lang.String clipBegin, java.lang.String clipEnd)
-
checkType
private void checkType(java.lang.String type)
-
processTextSrc
private void processTextSrc()
-
processTextRef
private void processTextRef()
-
processAudioSrc
private void processAudioSrc()
-
processContentDocumentLink
private void processContentDocumentLink(io.mola.galimatias.URL url)
-
processGlobalAttrs
private void processGlobalAttrs()
-
endElement
public void endElement()
- Overrides:
endElementin classXMLHandler
-
checkItemReferences
private void checkItemReferences()
-
checkProperties
protected void checkProperties()
-
-