Package com.helger.css
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,CSSSelectorMemberSlotted,CSSSelectorSimpleMember,CSSStyleRule,CSSSupportsConditionDeclaration,CSSSupportsConditionNegation,CSSSupportsConditionNested,CSSSupportsRule,CSSUnknownRule,CSSURI,CSSValue,CSSValueList,CSSValueMultiProperty,CSSValueMultiValue,CSSViewportRule,CSSWritableList,ECSSAttributeOperator,ECSSExpressionOperator,ECSSMathOperator,ECSSSelectorCombinator,ECSSSupportsConditionOperator
public interface ICSSWriteableInterface for objects that can be written to CSS.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetAsCSSString()Get the contents of this object as a serialized CSS string for writing to an output using the default writer settings.default StringgetAsCSSString(ICSSWriterSettings aSettings)Get the contents of this object as a serialized CSS string for writing to an output.StringgetAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)Get the contents of this object as a serialized CSS string for writing to an output.
-
-
-
Method Detail
-
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(ICSSWriterSettings, int)
-
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 benull.- Returns:
- The content of this object as CSS string. Never
null. - Since:
- 5.0.4
- See Also:
getAsCSSString(ICSSWriterSettings, int)
-
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 benull.nIndentLevel- The current indentation level- Returns:
- The content of this object as CSS string. Never
null.
-
-