org.apache.batik.css.engine

Class StyleRule

public class StyleRule extends Object implements Rule

This class represents a style rule.
Field Summary
protected SelectorListselectorList
The selector list.
protected StyleDeclarationstyleDeclaration
The style declaration.
static shortTYPE
The type constant.
Method Summary
SelectorListgetSelectorList()
Returns the selector list.
StyleDeclarationgetStyleDeclaration()
Returns the style declaration.
shortgetType()
Returns a constant identifying the rule type.
voidsetSelectorList(SelectorList sl)
Sets the selector list.
voidsetStyleDeclaration(StyleDeclaration sd)
Sets the style map.
StringtoString(CSSEngine eng)
Returns a printable representation of this style rule.

Field Detail

selectorList

protected SelectorList selectorList
The selector list.

styleDeclaration

protected StyleDeclaration styleDeclaration
The style declaration.

TYPE

public static final short TYPE
The type constant.

Method Detail

getSelectorList

public SelectorList getSelectorList()
Returns the selector list.

getStyleDeclaration

public StyleDeclaration getStyleDeclaration()
Returns the style declaration.

getType

public short getType()
Returns a constant identifying the rule type.

setSelectorList

public void setSelectorList(SelectorList sl)
Sets the selector list.

setStyleDeclaration

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

toString

public String toString(CSSEngine eng)
Returns a printable representation of this style rule.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.