public interface ICSSWriterSettings
| Modifier and Type | Method and Description |
|---|---|
void |
checkVersionRequirements(ICSSVersionAware aCSSObject)
Check if the passed object matches the version requirements defined be this
settings.
|
ECSSVersion |
getCSSVersion() |
String |
getIndent(int nCount)
Get the indentation for an arbitrary number of levels.
|
com.helger.commons.system.ENewLineMode |
getNewLineMode() |
String |
getNewLineString() |
default ECSSVersion |
getVersion()
Deprecated.
Use
getCSSVersion() instead |
boolean |
isOptimizedOutput() |
boolean |
isQuoteURLs() |
boolean |
isRemoveUnnecessaryCode() |
boolean |
isWriteFontFaceRules() |
boolean |
isWriteKeyframesRules() |
boolean |
isWriteMediaRules() |
boolean |
isWriteNamespaceRules() |
boolean |
isWritePageRules() |
boolean |
isWriteSupportsRules() |
boolean |
isWriteUnknownRules() |
boolean |
isWriteViewportRules() |
@Nonnull ECSSVersion getCSSVersion()
null.@Nonnull @Deprecated default ECSSVersion getVersion()
getCSSVersion() insteadnull.boolean isOptimizedOutput()
true if all unnecessary whitespaces should be ignored
when writing.boolean isRemoveUnnecessaryCode()
true if all unnecessary elements (like empty style
declarations) should be removed. This will than potentially lead to
CSS that is not equal to the original CSS!@Nonnull com.helger.commons.system.ENewLineMode getNewLineMode()
@Nonnull @Nonempty String getNewLineString()
getNewLineMode()@Nonnull String getIndent(@Nonnegative int nCount)
nCount - The number of indentations desired. Always ≥ 0.null
but may be empty.boolean isQuoteURLs()
true if all URL values should be quoted,
false if URL quoting should only be applied if
absolutely necessary.boolean isWriteNamespaceRules()
true if @namespace rules should be written,
false if notboolean isWriteFontFaceRules()
true if @font-face rules should be written,
false if notboolean isWriteKeyframesRules()
true if @keyframes rules should be written,
false if notboolean isWriteMediaRules()
true if @media rules should be written,
false if notboolean isWritePageRules()
true if @page rules should be written,
false if notboolean isWriteViewportRules()
true if @viewport rules should be written,
false if notboolean isWriteSupportsRules()
true if @supports rules should be written,
false if notboolean isWriteUnknownRules()
true if unknown @ rules should be written,
false if notvoid checkVersionRequirements(@Nonnull ICSSVersionAware aCSSObject) throws IllegalStateException
aCSSObject - The object to be checked.IllegalStateException - In case the version does not matchgetVersion()Copyright © 2014–2022 Philip Helger. All rights reserved.