Class CssParsingConfig


  • public class CssParsingConfig
    extends Object
    This class holds the CSS parsing configuration.
    Author:
    nhant01, GeorgeLuo
    • Constructor Detail

      • CssParsingConfig

        public CssParsingConfig​(@Nonnull
                                Map<String,​CssSpecUtils.BlockType> atRuleSpec,
                                @Nonnull
                                CssSpecUtils.BlockType defaultSpec)
        Constructor for CssParsingConfig.
        Parameters:
        atRuleSpec - the AtRule spec to validate against
        defaultSpec - the default blocktype to validate for
    • Method Detail

      • computeCssParsingConfig

        public static CssParsingConfig computeCssParsingConfig()
        Generates a CssParsingConfig from a CssSpec.
        Returns:
        a CssParsingConfig representing the CssSpec
      • getDefaultSpec

        public CssSpecUtils.BlockType getDefaultSpec()
        Getter for underlying default spec default spec.
        Returns:
        the default spec blocktype
      • setDefaultSpec

        public void setDefaultSpec​(@Nonnull
                                   CssSpecUtils.BlockType defaultSpec)
        Setter for underlying default spec blocktype spec.
        Parameters:
        defaultSpec - the value to set default spec to.