Package com.openhtmltopdf.css.sheet
Class Ruleset
- java.lang.Object
-
- com.openhtmltopdf.css.sheet.Ruleset
-
public class Ruleset extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Selector>
_fsSelectors
private java.util.List<InvalidPropertyDeclaration>
_invalidProperties
private int
_origin
private java.util.List<PropertyDeclaration>
_props
-
Constructor Summary
Constructors Constructor Description Ruleset(int orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllProperties(java.util.List<PropertyDeclaration> props)
void
addFSSelector(Selector selector)
void
addInvalidProperty(InvalidPropertyDeclaration invalidPropertyDeclaration)
void
addProperty(PropertyDeclaration decl)
java.util.List<Selector>
getFSSelectors()
java.util.List<InvalidPropertyDeclaration>
getInvalidPropertyDeclarations()
int
getOrigin()
java.util.List<PropertyDeclaration>
getPropertyDeclarations()
Returns an Iterator of PropertyDeclarations pulled from this CSSStyleRule.void
toCSS(java.lang.StringBuilder sb)
-
-
-
Field Detail
-
_origin
private final int _origin
-
_props
private final java.util.List<PropertyDeclaration> _props
-
_fsSelectors
private final java.util.List<Selector> _fsSelectors
-
_invalidProperties
private java.util.List<InvalidPropertyDeclaration> _invalidProperties
-
-
Method Detail
-
getPropertyDeclarations
public java.util.List<PropertyDeclaration> getPropertyDeclarations()
Returns an Iterator of PropertyDeclarations pulled from this CSSStyleRule.- Returns:
- The propertyDeclarations value
-
addProperty
public void addProperty(PropertyDeclaration decl)
-
addAllProperties
public void addAllProperties(java.util.List<PropertyDeclaration> props)
-
addFSSelector
public void addFSSelector(Selector selector)
-
getFSSelectors
public java.util.List<Selector> getFSSelectors()
-
getOrigin
public int getOrigin()
-
toCSS
public void toCSS(java.lang.StringBuilder sb)
-
addInvalidProperty
public void addInvalidProperty(InvalidPropertyDeclaration invalidPropertyDeclaration)
-
getInvalidPropertyDeclarations
public java.util.List<InvalidPropertyDeclaration> getInvalidPropertyDeclarations()
-
-