Interface CSSParser
- All Known Implementing Classes:
AbstractCSSParser
,CSSParserImpl
public interface CSSParser
CSS Parser interface to parse with SAC
Parser
:
- CSS Style sheet and return
CSSStyleSheet
. - CSS Style declaration and return
CSSStyleDeclaration
. - CSS value and return
CSSValue
. - CSS rule and return
CSSRule
.
-
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.css.sac.ConditionFactory
Get the SACConditionFactory
used by SACParser
.org.w3c.css.sac.SelectorFactory
Get the SACSelectorFactory
used by SACParser
.parsePropertyValue
(org.w3c.css.sac.InputSource source) parseRule
(org.w3c.css.sac.InputSource source) org.w3c.css.sac.SelectorList
parseSelectors
(org.w3c.css.sac.InputSource source) Parse CSSsource
selectors value with SACParser
and returnSelectorList
instance.parseStyleDeclaration
(org.w3c.css.sac.InputSource source) void
parseStyleDeclaration
(CSSStyleDeclaration styleDeclaration, org.w3c.css.sac.InputSource source) Parse CSSsource
style declaration with SACParser
and update thestyleDecelaration
.parseStyleSheet
(org.w3c.css.sac.InputSource source) void
setConditionFactory
(org.w3c.css.sac.ConditionFactory conditionFactory) Set the SACConditionFactory
used by SACParser
.void
setDocumentHandlerFactory
(DocumentHandlerFactory documentHandlerFactory) Set the SACDocumentHandlerFactory
factory to get SACExtendedDocumentHandler
handler used by SACParser
.void
setParentStyleSheet
(CSSStyleSheet parentStyleSheet) Set the parentCSSStyleSheet
.void
setSelectorFactory
(org.w3c.css.sac.SelectorFactory selectorFactory) Set the SACSelectorFactory
used by SACParser
.
-
Method Details
-
parseStyleSheet
- Parameters:
source
- style sheet.- Throws:
IOException
-
setParentStyleSheet
Set the parentCSSStyleSheet
. -
parseStyleDeclaration
- Parameters:
source
- style declaration.- Throws:
IOException
-
parseStyleDeclaration
void parseStyleDeclaration(CSSStyleDeclaration styleDeclaration, org.w3c.css.sac.InputSource source) throws IOException Parse CSSsource
style declaration with SACParser
and update thestyleDecelaration
.- Throws:
IOException
-
parsePropertyValue
- Parameters:
source
- CSS value.- Throws:
IOException
-
parseRule
- Parameters:
source
- CSS rule.- Throws:
IOException
-
parseSelectors
Parse CSSsource
selectors value with SACParser
and returnSelectorList
instance.- Throws:
IOException
-
setDocumentHandlerFactory
Set the SACDocumentHandlerFactory
factory to get SACExtendedDocumentHandler
handler used by SACParser
. -
getConditionFactory
org.w3c.css.sac.ConditionFactory getConditionFactory()Get the SACConditionFactory
used by SACParser
. -
setConditionFactory
void setConditionFactory(org.w3c.css.sac.ConditionFactory conditionFactory) Set the SACConditionFactory
used by SACParser
. -
getSelectorFactory
org.w3c.css.sac.SelectorFactory getSelectorFactory()Get the SACSelectorFactory
used by SACParser
. -
setSelectorFactory
void setSelectorFactory(org.w3c.css.sac.SelectorFactory selectorFactory) Set the SACSelectorFactory
used by SACParser
.
-