Package org.apache.batik.css.engine
Class StyleRule
java.lang.Object
org.apache.batik.css.engine.StyleRule
- All Implemented Interfaces:
Rule
This class represents a style rule.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.w3c.css.sac.SelectorList
The selector list.protected StyleDeclaration
The style declaration.static final short
The type constant. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.css.sac.SelectorList
Returns the selector list.Returns the style declaration.short
getType()
Returns a constant identifying the rule type.void
setSelectorList
(org.w3c.css.sac.SelectorList sl) Sets the selector list.void
Sets the style map.Returns a printable representation of this style rule.
-
Field Details
-
TYPE
public static final short TYPEThe type constant.- See Also:
-
selectorList
protected org.w3c.css.sac.SelectorList selectorListThe selector list. -
styleDeclaration
The style declaration.
-
-
Constructor Details
-
StyleRule
public StyleRule()
-
-
Method Details
-
getType
public short getType()Returns a constant identifying the rule type. -
setSelectorList
public void setSelectorList(org.w3c.css.sac.SelectorList sl) Sets the selector list. -
getSelectorList
public org.w3c.css.sac.SelectorList getSelectorList()Returns the selector list. -
setStyleDeclaration
Sets the style map. -
getStyleDeclaration
Returns the style declaration. -
toString
Returns a printable representation of this style rule.
-