Interface CSSParser

All Known Implementing Classes:
AbstractCSSParser, CSSParserImpl

public interface CSSParser
CSS Parser interface to parse with SAC Parser :
  • Method Details

    • parseStyleSheet

      CSSStyleSheet parseStyleSheet(org.w3c.css.sac.InputSource source) throws IOException
      Parse CSS source style sheet with SAC Parser and return CSSStyleSheet instance.
      Parameters:
      source - style sheet.
      Throws:
      IOException
    • setParentStyleSheet

      void setParentStyleSheet(CSSStyleSheet parentStyleSheet)
      Set the parent CSSStyleSheet.
    • parseStyleDeclaration

      CSSStyleDeclaration parseStyleDeclaration(org.w3c.css.sac.InputSource source) throws IOException
      Parse CSS source style declaration with SAC Parser and return CSSStyleDeclaration instance.
      Parameters:
      source - style declaration.
      Throws:
      IOException
    • parseStyleDeclaration

      void parseStyleDeclaration(CSSStyleDeclaration styleDeclaration, org.w3c.css.sac.InputSource source) throws IOException
      Parse CSS source style declaration with SAC Parser and update the styleDecelaration.
      Throws:
      IOException
    • parsePropertyValue

      CSSValue parsePropertyValue(org.w3c.css.sac.InputSource source) throws IOException
      Parse CSS source value with SAC Parser and return CSSValue instance.
      Parameters:
      source - CSS value.
      Throws:
      IOException
    • parseRule

      CSSRule parseRule(org.w3c.css.sac.InputSource source) throws IOException
      Parse CSS source rule value with SAC Parser and return CSSRule instance.
      Parameters:
      source - CSS rule.
      Throws:
      IOException
    • parseSelectors

      org.w3c.css.sac.SelectorList parseSelectors(org.w3c.css.sac.InputSource source) throws IOException
      Parse CSS source selectors value with SAC Parser and return SelectorList instance.
      Throws:
      IOException
    • setDocumentHandlerFactory

      void setDocumentHandlerFactory(DocumentHandlerFactory documentHandlerFactory)
      Set the SAC DocumentHandlerFactory factory to get SAC ExtendedDocumentHandler handler used by SAC Parser.
    • getConditionFactory

      org.w3c.css.sac.ConditionFactory getConditionFactory()
      Get the SAC ConditionFactory used by SAC Parser.
    • setConditionFactory

      void setConditionFactory(org.w3c.css.sac.ConditionFactory conditionFactory)
      Set the SAC ConditionFactory used by SAC Parser.
    • getSelectorFactory

      org.w3c.css.sac.SelectorFactory getSelectorFactory()
      Get the SAC SelectorFactory used by SAC Parser.
    • setSelectorFactory

      void setSelectorFactory(org.w3c.css.sac.SelectorFactory selectorFactory)
      Set the SAC SelectorFactory used by SAC Parser.