Class OPSHandler30

  • 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
    Direct Known Subclasses:
    NavHandler

    public class OPSHandler30
    extends OPSHandler
    • Field Detail

      • HAS_PALPABLE_CONTENT

        private static final java.lang.String HAS_PALPABLE_CONTENT
        See Also:
        Constant Field Values
      • RESERVED_VOCABS

        private static java.util.Map<java.lang.String,​Vocab> RESERVED_VOCABS
      • ALTCSS_VOCABS

        private static java.util.Map<java.lang.String,​Vocab> ALTCSS_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
      • TOKENIZER

        private static final com.google.common.base.Splitter TOKENIZER
      • vocabs

        private java.util.Map<java.lang.String,​Vocab> vocabs
      • 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
      • inRegionBasedNav

        protected boolean inRegionBasedNav
      • isOutermostSVGAlreadyProcessed

        protected boolean isOutermostSVGAlreadyProcessed
      • hasAltorAnnotation

        protected boolean hasAltorAnnotation
      • hasLabel

        protected boolean hasLabel
      • hasListItem

        protected boolean hasListItem
      • hasViewport

        protected boolean hasViewport
      • mediaSources

        private java.util.Map<io.mola.galimatias.URL,​java.lang.String> mediaSources
      • scriptEventsStrings

        protected static final java.lang.String[] scriptEventsStrings
      • scriptEvents

        protected static java.util.HashSet<java.lang.String> scriptEvents
      • mouseEventsStrings

        protected static final java.lang.String[] mouseEventsStrings
      • mouseEvents

        protected static java.util.HashSet<java.lang.String> mouseEvents
    • Method Detail

      • getScriptEvents

        public static java.util.HashSet<java.lang.String> getScriptEvents()
      • getMouseEvents

        public static java.util.HashSet<java.lang.String> getMouseEvents()
      • checkImage

        protected void checkImage​(java.lang.String attrNS,
                                  java.lang.String attr)
        Overrides:
        checkImage in class OPSHandler
      • checkType

        protected void checkType​(java.lang.String type)
      • checkSSMLPh

        protected void checkSSMLPh​(java.lang.String ph)
      • characters

        public void characters​(char[] chars,
                               int arg1,
                               int arg2)
        Specified by:
        characters in interface org.xml.sax.ContentHandler
        Overrides:
        characters in class OPSHandler
      • checkCiteAttribute

        private void checkCiteAttribute()
      • startTrack

        private void startTrack()
      • startInput

        private void startInput()
      • startEmbed

        private void startEmbed()
      • checkDiscouragedElements

        protected void checkDiscouragedElements()
      • processInlineScripts

        protected void processInlineScripts()
      • processLink

        protected void processLink()
      • processAnchor

        protected void processAnchor​(XMLElement e)
      • startMediaElement

        protected void startMediaElement()
      • endMediaElement

        protected void endMediaElement()
      • startMediaSource

        protected void startMediaSource()
      • registerMediaResource

        protected void registerMediaResource​(io.mola.galimatias.URL url,
                                             java.lang.String mimetype,
                                             boolean hasFallback)
      • checkMimetypeMatches

        protected java.lang.String checkMimetypeMatches​(io.mola.galimatias.URL resource,
                                                        java.lang.String mimetype)
      • processVideo

        protected void processVideo()
      • processHyperlink

        protected void processHyperlink​(io.mola.galimatias.URL href)
        Overrides:
        processHyperlink in class OPSHandler
      • checkResourceURL

        protected io.mola.galimatias.URL checkResourceURL​(java.lang.String src)
      • endObject

        protected void endObject()
      • processSVG

        protected void processSVG()
      • processMeta

        protected void processMeta()
      • processTable

        protected void processTable()
      • processFigure

        protected void processFigure()
      • processSemantics

        private void processSemantics()
      • processSectioning

        private void processSectioning()
      • isPalpable

        protected boolean isPalpable()
      • updatePalpableState

        private void updatePalpableState()
      • checkOverlaysStyles

        protected void checkOverlaysStyles()
      • checkProperties

        protected void checkProperties()
      • checkHead

        protected void checkHead()