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.ConditionFactoryGet the SACConditionFactoryused by SACParser.org.w3c.css.sac.SelectorFactoryGet the SACSelectorFactoryused by SACParser.parsePropertyValue(org.w3c.css.sac.InputSource source) parseRule(org.w3c.css.sac.InputSource source) org.w3c.css.sac.SelectorListparseSelectors(org.w3c.css.sac.InputSource source) Parse CSSsourceselectors value with SACParserand returnSelectorListinstance.parseStyleDeclaration(org.w3c.css.sac.InputSource source) voidparseStyleDeclaration(CSSStyleDeclaration styleDeclaration, org.w3c.css.sac.InputSource source) Parse CSSsourcestyle declaration with SACParserand update thestyleDecelaration.parseStyleSheet(org.w3c.css.sac.InputSource source) voidsetConditionFactory(org.w3c.css.sac.ConditionFactory conditionFactory) Set the SACConditionFactoryused by SACParser.voidsetDocumentHandlerFactory(DocumentHandlerFactory documentHandlerFactory) Set the SACDocumentHandlerFactoryfactory to get SACExtendedDocumentHandlerhandler used by SACParser.voidsetParentStyleSheet(CSSStyleSheet parentStyleSheet) Set the parentCSSStyleSheet.voidsetSelectorFactory(org.w3c.css.sac.SelectorFactory selectorFactory) Set the SACSelectorFactoryused 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 CSSsourcestyle declaration with SACParserand update thestyleDecelaration.- Throws:
IOException
-
parsePropertyValue
- Parameters:
source- CSS value.- Throws:
IOException
-
parseRule
- Parameters:
source- CSS rule.- Throws:
IOException
-
parseSelectors
Parse CSSsourceselectors value with SACParserand returnSelectorListinstance.- Throws:
IOException
-
setDocumentHandlerFactory
Set the SACDocumentHandlerFactoryfactory to get SACExtendedDocumentHandlerhandler used by SACParser. -
getConditionFactory
org.w3c.css.sac.ConditionFactory getConditionFactory()Get the SACConditionFactoryused by SACParser. -
setConditionFactory
void setConditionFactory(org.w3c.css.sac.ConditionFactory conditionFactory) Set the SACConditionFactoryused by SACParser. -
getSelectorFactory
org.w3c.css.sac.SelectorFactory getSelectorFactory()Get the SACSelectorFactoryused by SACParser. -
setSelectorFactory
void setSelectorFactory(org.w3c.css.sac.SelectorFactory selectorFactory) Set the SACSelectorFactoryused by SACParser.
-