Package com.helger.css.decl
Interface ICSSTopLevelRule
- All Superinterfaces:
ICSSWriteable
- All Known Implementing Classes:
CSSFontFaceRule,CSSKeyframesRule,CSSMediaRule,CSSPageRule,CSSStyleRule,CSSSupportsRule,CSSUnknownRule,CSSViewportRule
Marker interface for all top level CSS elements that can occur in any order
- font face rules -
CSSFontFaceRule - keyframes rules -
CSSKeyframesRule - media rules -
CSSMediaRule - page rules -
CSSPageRule - style rules -
CSSStyleRule - supports rules -
CSSSupportsRule - unknown rules -
CSSUnknownRule - viewport rules -
CSSViewportRule
To easily iterate over all rules contained in a CascadingStyleSheet
you can use the
CSSVisitor.visitCSS(CascadingStyleSheet, com.helger.css.decl.visit.ICSSVisitor)
method. An empty stub implementation of
ICSSVisitor is the class
DefaultCSSVisitor which is a good basis for
your own implementations.
- Author:
- Philip Helger
-
Method Summary
Methods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSString, getAsCSSString