Package com.adobe.epubcheck.css
Class CSSChecker
- java.lang.Object
-
- org.w3c.epubcheck.core.AbstractChecker
-
- com.adobe.epubcheck.opf.PublicationResourceChecker
-
- com.adobe.epubcheck.css.CSSChecker
-
- All Implemented Interfaces:
Checker
public class CSSChecker extends PublicationResourceChecker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classCSSChecker.Mode
-
Field Summary
Fields Modifier and Type Field Description private booleanisStyleAttributeprivate intlineprivate CSSChecker.Modemodeprivate java.lang.Stringvalue-
Fields inherited from class org.w3c.epubcheck.core.AbstractChecker
context, report
-
-
Constructor Summary
Constructors Modifier Constructor Description CSSChecker(ValidationContext context)Constructor for CSS files.privateCSSChecker(ValidationContext context, CSSChecker.Mode mode, java.lang.String value, int line, boolean isStyleAttribute)Constructor for CSS strings (html style attributes and elements) .CSSChecker(ValidationContext context, java.lang.String value, int line, boolean isStyleAttribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckContent()protected booleancheckPublicationBeforeContent()(package private) CssSourcegetCssSource()(package private) voidparseItem(CssSource source, CSSHandler handler)-
Methods inherited from class com.adobe.epubcheck.opf.PublicationResourceChecker
check, checkPublicationAfterContent
-
-
-
-
Field Detail
-
mode
private final CSSChecker.Mode mode
-
value
private final java.lang.String value
-
line
private int line
-
isStyleAttribute
private final boolean isStyleAttribute
-
-
Constructor Detail
-
CSSChecker
public CSSChecker(ValidationContext context)
Constructor for CSS files.
-
CSSChecker
public CSSChecker(ValidationContext context, java.lang.String value, int line, boolean isStyleAttribute)
-
CSSChecker
private CSSChecker(ValidationContext context, CSSChecker.Mode mode, java.lang.String value, int line, boolean isStyleAttribute)
Constructor for CSS strings (html style attributes and elements) .
-
-
Method Detail
-
checkPublicationBeforeContent
protected boolean checkPublicationBeforeContent()
- Overrides:
checkPublicationBeforeContentin classPublicationResourceChecker
-
checkContent
protected boolean checkContent()
- Overrides:
checkContentin classPublicationResourceChecker
-
getCssSource
CssSource getCssSource() throws java.io.IOException
- Throws:
java.io.IOException
-
parseItem
void parseItem(CssSource source, CSSHandler handler) throws java.io.IOException, CssExceptions.CssException
- Throws:
java.io.IOExceptionCssExceptions.CssException
-
-