Package com.helger.css.decl
Interface ICSSTopLevelRule
-
- All Superinterfaces:
ICSSWriteable
- All Known Implementing Classes:
CSSFontFaceRule
,CSSKeyframesRule
,CSSMediaRule
,CSSPageRule
,CSSStyleRule
,CSSSupportsRule
,CSSUnknownRule
,CSSViewportRule
@MustImplementEqualsAndHashcode public interface ICSSTopLevelRule extends ICSSWriteable
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 theCSSVisitor.visitCSS(CascadingStyleSheet, com.helger.css.decl.visit.ICSSVisitor)
method. An empty stub implementation ofICSSVisitor
is the classDefaultCSSVisitor
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
-
-