Class StyleRule

java.lang.Object
org.apache.batik.css.engine.StyleRule
All Implemented Interfaces:
Rule

public class StyleRule extends Object implements Rule
This class represents a style rule.
Version:
$Id: StyleRule.java 1831630 2018-05-15 12:56:55Z ssteiner $
  • Field Details

    • TYPE

      public static final short TYPE
      The type constant.
      See Also:
    • selectorList

      protected org.w3c.css.sac.SelectorList selectorList
      The selector list.
    • styleDeclaration

      protected StyleDeclaration styleDeclaration
      The style declaration.
  • Constructor Details

    • StyleRule

      public StyleRule()
  • Method Details

    • getType

      public short getType()
      Returns a constant identifying the rule type.
      Specified by:
      getType in interface Rule
    • 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

      public void setStyleDeclaration(StyleDeclaration sd)
      Sets the style map.
    • getStyleDeclaration

      public StyleDeclaration getStyleDeclaration()
      Returns the style declaration.
    • toString

      public String toString(CSSEngine eng)
      Returns a printable representation of this style rule.
      Specified by:
      toString in interface Rule