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

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