Class Rule
- java.lang.Object
-
- io.guise.framework.platform.web.css.Rule
-
public class Rule extends java.lang.Object
A CSS rule, consisting of one or more selectors and a declaration.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<com.globalmentor.model.NameValuePair<java.lang.String,java.lang.String>>
getDeclarations()
java.util.List<Selector>
getSelectors()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Rule
public Rule(Selector... selectors)
Selectors constructor.- Parameters:
selectors
- any selectors to add to the rule.
-
-
Method Detail
-
getSelectors
public java.util.List<Selector> getSelectors()
- Returns:
- The list of selectors.
-
getDeclarations
public java.util.List<com.globalmentor.model.NameValuePair<java.lang.String,java.lang.String>> getDeclarations()
- Returns:
- The list of declarations.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-