Package de.xima.fc.css.builder
Class CssRuleListBuilder
- java.lang.Object
-
- de.xima.fc.css.builder.CssRuleListBuilder
-
public final class CssRuleListBuilder extends Object
Simple builder for creating a CSS rule list string, e.g..foo { color: red; }
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description CssRuleListBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
CssRuleListBuilder
rule(Object selector, Object declarationList)
.foo { color: red; }
String
toString()
-
-
-
Method Detail
-
build
public String build()
- Returns:
- The string representing the CSS rule list.
-
rule
public CssRuleListBuilder rule(Object selector, Object declarationList)
.foo { color: red; }
Adds a qualified rule to the list of rules.
- Parameters:
selector
- Selector to which the declarations apply.declarationList
- A list of declarations applied to all elements matching the selector.- Returns:
- This builder instance for chaining method calls.
- See Also:
, for an easy way to create a declaration.
-
-