Package com.adobe.epubcheck.ops
Class OPSHandler
- 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.ops.OPSHandler
-
- 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:
OPSHandler30
public class OPSHandler extends XMLHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected longcharsCountprotected java.util.Stack<EPUBLocation>elementLocationStackprotected booleanepubTypeInUseprotected booleanhasCaptionprotected booleanhasCSSprotected booleanhasThprotected booleanhasTheadprotected longopenElementsprotected inttableDepthprotected java.lang.StringBuildertextNode-
Fields inherited from class com.adobe.epubcheck.xml.handlers.XMLHandler
context, path, report
-
-
Constructor Summary
Constructors Constructor Description OPSHandler(ValidationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] chars, int start, int length)protected voidcheckBoldItalics()protected voidcheckDependentCondition(MessageId id, boolean condition1, boolean condition2, EPUBLocation location)private voidcheckHRef(java.lang.String attrNS, java.lang.String attr)protected voidcheckIFrame()protected voidcheckImage(java.lang.String attrNS, java.lang.String attr)protected voidcheckLink()protected voidcheckObject()private voidcheckPaint(java.lang.String attr)protected voidcheckScript()protected io.mola.galimatias.URLcheckSVGFontFaceURI()protected voidcheckSymbol()protected voidcheckXMLStylesheetPI(java.lang.String data)voidendElement()protected voidprocessHyperlink(io.mola.galimatias.URL href)voidprocessingInstruction(java.lang.String target, java.lang.String data)protected voidprocessJavascript()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
-
openElements
protected long openElements
-
charsCount
protected long charsCount
-
tableDepth
protected int tableDepth
-
hasTh
protected boolean hasTh
-
hasThead
protected boolean hasThead
-
hasCaption
protected boolean hasCaption
-
hasCSS
protected boolean hasCSS
-
epubTypeInUse
protected boolean epubTypeInUse
-
textNode
protected java.lang.StringBuilder textNode
-
elementLocationStack
protected java.util.Stack<EPUBLocation> elementLocationStack
-
-
Constructor Detail
-
OPSHandler
public OPSHandler(ValidationContext context)
-
-
Method Detail
-
checkPaint
private void checkPaint(java.lang.String attr)
-
checkImage
protected void checkImage(java.lang.String attrNS, java.lang.String attr)
-
checkObject
protected void checkObject()
-
checkLink
protected void checkLink()
-
checkSymbol
protected void checkSymbol()
-
checkHRef
private void checkHRef(java.lang.String attrNS, java.lang.String attr)
-
checkSVGFontFaceURI
protected io.mola.galimatias.URL checkSVGFontFaceURI()
-
processHyperlink
protected void processHyperlink(io.mola.galimatias.URL href)
-
startElement
public void startElement()
- Overrides:
startElementin classXMLHandler
-
checkBoldItalics
protected void checkBoldItalics()
-
checkIFrame
protected void checkIFrame()
-
checkScript
protected void checkScript()
-
processJavascript
protected void processJavascript()
-
endElement
public void endElement()
- Overrides:
endElementin classXMLHandler
-
checkDependentCondition
protected void checkDependentCondition(MessageId id, boolean condition1, boolean condition2, EPUBLocation location)
-
characters
public void characters(char[] chars, int start, int length)- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler- Overrides:
charactersin classorg.xml.sax.helpers.DefaultHandler
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException- Specified by:
processingInstructionin interfaceorg.xml.sax.ContentHandler- Overrides:
processingInstructionin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
checkXMLStylesheetPI
protected void checkXMLStylesheetPI(java.lang.String data)
-
-