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 ICSSWriteable
Interface for objects that can be written to CSS.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringGet 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.getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel) Get the contents of this object as a serialized CSS string for writing to an output.
-
Method Details
-
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
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
@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.
-