Package com.adobe.epubcheck.opf
Class OPFChecker
- java.lang.Object
-
- org.w3c.epubcheck.core.AbstractChecker
-
- com.adobe.epubcheck.opf.OPFChecker
-
- All Implemented Interfaces:
Checker
- Direct Known Subclasses:
OPFChecker30
public class OPFChecker extends AbstractChecker
-
-
Field Summary
Fields Modifier and Type Field Description protected OPFHandleropfHandlerprotected java.lang.Stringpathprivate static ValidatorMapvalidatorMapprotected EPUBVersionversion-
Fields inherited from class org.w3c.epubcheck.core.AbstractChecker
context, report
-
-
Constructor Summary
Constructors Constructor Description OPFChecker(ValidationContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck()protected booleancheckContent()protected voidcheckGuide()protected voidcheckItem(OPFItem item, OPFHandler opfHandler)protected voidcheckItemAfterResourceValidation(OPFItem item)protected voidcheckItemContent(OPFItem item)protected booleancheckPackage()protected voidcheckSpineItem(OPFItem item, OPFHandler opfHandler)OPFHandlergetOPFHandler()protected voidinitHandler()static booleanisBlessedFontMimetype20(java.lang.String mime)static booleanisBlessedImageType(java.lang.String type, EPUBVersion version)static booleanisBlessedItemType(java.lang.String type, EPUBVersion version)static booleanisBlessedStyleType(java.lang.String type)static booleanisDeprecatedBlessedItemType(java.lang.String type)static booleanisDeprecatedBlessedStyleType(java.lang.String type)static booleanisScriptType(java.lang.String type)
-
-
-
Field Detail
-
validatorMap
private static final ValidatorMap validatorMap
-
path
protected final java.lang.String path
-
version
protected final EPUBVersion version
-
opfHandler
protected OPFHandler opfHandler
-
-
Constructor Detail
-
OPFChecker
public OPFChecker(ValidationContext context)
-
-
Method Detail
-
check
public void check()
-
checkPackage
protected boolean checkPackage()
-
checkItemAfterResourceValidation
protected void checkItemAfterResourceValidation(OPFItem item)
-
checkGuide
protected void checkGuide()
-
initHandler
protected void initHandler()
-
getOPFHandler
public OPFHandler getOPFHandler()
-
checkContent
protected boolean checkContent()
-
isBlessedItemType
public static boolean isBlessedItemType(java.lang.String type, EPUBVersion version)
-
isDeprecatedBlessedItemType
public static boolean isDeprecatedBlessedItemType(java.lang.String type)
-
isBlessedStyleType
public static boolean isBlessedStyleType(java.lang.String type)
-
isDeprecatedBlessedStyleType
public static boolean isDeprecatedBlessedStyleType(java.lang.String type)
-
isBlessedImageType
public static boolean isBlessedImageType(java.lang.String type, EPUBVersion version)
-
isBlessedFontMimetype20
public static boolean isBlessedFontMimetype20(java.lang.String mime)
-
isScriptType
public static boolean isScriptType(java.lang.String type)
-
checkItem
protected void checkItem(OPFItem item, OPFHandler opfHandler)
-
checkItemContent
protected void checkItemContent(OPFItem item)
-
checkSpineItem
protected void checkSpineItem(OPFItem item, OPFHandler opfHandler)
-
-