Class OPSHandler30
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler
- Direct Known Subclasses:
NavHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<PackageVocabs.ITEM_PROPERTIES> protected booleanprivate static final Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprivate final booleanprotected booleanprotected static final String[]private final Set<PackageVocabs.ITEM_PROPERTIES> protected static final String[]private static final com.google.common.base.SplitterFields inherited from class OPSHandler
charsCount, elementLocationStack, epubTypeInUse, hasCaption, hasCSS, hasTh, hasThead, openElements, tableDepth, textNodeFields inherited from class XMLHandler
context, path, report -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] chars, int arg1, int arg2) private voidprotected voidprotected voidprotected voidprotected voidcheckImage(String attrNS, String attr) protected voidprotected StringcheckMimetypeMatches(io.mola.galimatias.URL resource, String mimetype) protected voidprotected voidprotected voidprotected io.mola.galimatias.URLcheckResourceURL(String src) protected voidprotected voidcheckSSMLPh(String ph) protected io.mola.galimatias.URLprotected voidprotected voidcheckTypes(Set<StructureVocab.EPUB_TYPES> types) voidprotected voidprotected voidprotected booleanprotected voidprotected voidprotected voidprocessHyperlink(io.mola.galimatias.URL href) protected voidprotected voidprotected voidprotected voidprivate voidprivate voidprotected voidprotected voidprotected voidprotected voidregisterMediaResource(io.mola.galimatias.URL url, String mimetype, boolean hasFallback) voidprivate voidprivate voidprotected voidprotected voidprivate voidprivate voidMethods inherited from class OPSHandler
checkBoldItalics, checkDependentCondition, checkSymbol, checkXMLStylesheetPI, processingInstructionMethods inherited from class XMLHandler
currentElement, endElement, registerReference, registerReference, setDocumentLocator, startElementMethods inherited from class BaseURLHandler
baseURL, checkURLMethods inherited from class LocationHandler
location, locationMethods inherited from class DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntityMethods inherited from class DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
HAS_PALPABLE_CONTENT
- See Also:
-
RESERVED_VOCABS
-
ALTCSS_VOCABS
-
KNOWN_VOCAB_URIS
-
DEFAULT_VOCAB_URIS
-
TOKENIZER
private static final com.google.common.base.Splitter TOKENIZER -
vocabs
-
requiredProperties
-
allowedProperties
-
isLinear
private final boolean isLinear -
inPicture
protected boolean inPicture -
anchorNeedsText
protected boolean anchorNeedsText -
inMathML
protected boolean inMathML -
inSvg
protected boolean inSvg -
inBody
protected boolean inBody -
isOutermostSVGAlreadyProcessed
protected boolean isOutermostSVGAlreadyProcessed -
hasAltorAnnotation
protected boolean hasAltorAnnotation -
hasLabel
protected boolean hasLabel -
hasListItem
protected boolean hasListItem -
hasViewport
protected boolean hasViewport -
mediaSources
-
scriptEventsStrings
-
scriptEvents
-
mouseEventsStrings
-
mouseEvents
-
-
Constructor Details
-
OPSHandler30
-
-
Method Details
-
getScriptEvents
-
getMouseEvents
-
checkImage
- Overrides:
checkImagein classOPSHandler
-
checkType
-
checkTypes
-
checkSVGFontFaceURI
protected io.mola.galimatias.URL checkSVGFontFaceURI()- Overrides:
checkSVGFontFaceURIin classOPSHandler
-
checkSSMLPh
-
characters
public void characters(char[] chars, int arg1, int arg2) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classOPSHandler
-
startElement
public void startElement()- Overrides:
startElementin classOPSHandler
-
checkCiteAttribute
private void checkCiteAttribute() -
startTrack
private void startTrack() -
startInput
private void startInput() -
startEmbed
private void startEmbed() -
checkDiscouragedElements
protected void checkDiscouragedElements() -
processInlineScripts
protected void processInlineScripts() -
checkScript
protected void checkScript()- Overrides:
checkScriptin classOPSHandler
-
processJavascript
protected void processJavascript()- Overrides:
processJavascriptin classOPSHandler
-
processLink
protected void processLink() -
processAnchor
-
startMediaElement
protected void startMediaElement() -
endMediaElement
protected void endMediaElement() -
startMediaSource
protected void startMediaSource() -
registerMediaResource
protected void registerMediaResource(io.mola.galimatias.URL url, String mimetype, boolean hasFallback) -
checkMimetypeMatches
-
processVideo
protected void processVideo() -
processHyperlink
protected void processHyperlink(io.mola.galimatias.URL href) - Overrides:
processHyperlinkin classOPSHandler
-
checkResourceURL
-
checkObject
protected void checkObject()- Overrides:
checkObjectin classOPSHandler
-
endObject
protected void endObject() -
checkIFrame
protected void checkIFrame()- Overrides:
checkIFramein classOPSHandler
-
processSVG
protected void processSVG() -
processMeta
protected void processMeta() -
processTable
protected void processTable() -
processFigure
protected void processFigure() -
processSemantics
private void processSemantics() -
processSectioning
private void processSectioning() -
endElement
public void endElement()- Overrides:
endElementin classOPSHandler
-
isPalpable
protected boolean isPalpable() -
updatePalpableState
private void updatePalpableState() -
checkOverlaysStyles
protected void checkOverlaysStyles() -
checkProperties
protected void checkProperties() -
checkHead
protected void checkHead() -
checkLink
protected void checkLink()- Overrides:
checkLinkin classOPSHandler
-