Interface ICSSWriteable

All Known Subinterfaces:
ICSSExpressionMathMember, ICSSExpressionMember, ICSSMultiValue, ICSSPageRuleMember, ICSSSelectorMember, ICSSSupportsConditionMember, ICSSTopLevelRule, ICSSValue, IHasCSSDeclarations<IMPLTYPE>
All Known Implementing Classes:
CSSDeclaration, CSSDeclarationContainer, CSSDeclarationList, CSSExpression, CSSExpressionMemberFunction, CSSExpressionMemberLineNames, CSSExpressionMemberMath, CSSExpressionMemberMathProduct, CSSExpressionMemberMathUnitProduct, CSSExpressionMemberMathUnitSimple, CSSExpressionMemberTermSimple, CSSExpressionMemberTermURI, CSSFontFaceRule, CSSHSL, CSSHSLA, CSSImportRule, CSSKeyframesBlock, CSSKeyframesRule, CSSMediaExpression, CSSMediaQuery, CSSMediaRule, CSSNamespaceRule, CSSPageMarginBlock, CSSPageRule, CSSRect, CSSRGB, CSSRGBA, CSSSelector, CSSSelectorAttribute, CSSSelectorMemberFunctionLike, CSSSelectorMemberHost, CSSSelectorMemberHostContext, CSSSelectorMemberNot, CSSSelectorMemberPseudoHas, CSSSelectorMemberPseudoIs, CSSSelectorMemberPseudoWhere, CSSSelectorMemberSlotted, CSSSelectorSimpleMember, CSSStyleRule, CSSSupportsConditionDeclaration, CSSSupportsConditionNegation, CSSSupportsConditionNested, CSSSupportsRule, CSSUnknownRule, CSSURI, CSSValue, CSSValueList, CSSValueMultiProperty, CSSValueMultiValue, CSSViewportRule, CSSWritableList, ECSSAttributeOperator, ECSSExpressionOperator, ECSSMathOperator, ECSSSelectorCombinator, ECSSSupportsConditionOperator

public interface ICSSWriteable
Interface for objects that can be written to CSS.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Get the contents of this object as a serialized CSS string for writing to an output using the default writer settings.
    default String
    Get the contents of this object as a serialized CSS string for writing to an output.
    getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)
    Get the contents of this object as a serialized CSS string for writing to an output.
  • Method Details

    • getAsCSSString

      @Nonnull default String getAsCSSString()
      Get the contents of this object as a serialized CSS string for writing to an output using the default writer settings.
      Returns:
      The content of this object as CSS string. Never null.
      Since:
      6.0.0
      See Also:
    • getAsCSSString

      @Nonnull default String getAsCSSString(@Nonnull ICSSWriterSettings aSettings)
      Get the contents of this object as a serialized CSS string for writing to an output.
      Parameters:
      aSettings - The settings to be used to format the output. May not be null.
      Returns:
      The content of this object as CSS string. Never null.
      Since:
      5.0.4
      See Also:
    • getAsCSSString

      @Nonnull String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
      Get the contents of this object as a serialized CSS string for writing to an output.
      Parameters:
      aSettings - The settings to be used to format the output. May not be null.
      nIndentLevel - The current indentation level
      Returns:
      The content of this object as CSS string. Never null.