org.apache.batik.css
Class AbstractCSSRule

java.lang.Object
  |
  +--org.apache.batik.css.AbstractCSSRule
All Implemented Interfaces:
CSSRule
Direct Known Subclasses:
CSSOMImportRule, CSSOMMediaRule, CSSOMStyleRule, CSSOMUnknownRule

public abstract class AbstractCSSRule
extends java.lang.Object
implements CSSRule

This class implements the CSSRule interface.


Field Summary
static ConditionFactory CONDITION_FACTORY
          The condition factory.
protected  CSSRule parentRule
          The parent rule.
protected  CSSStyleSheet parentStyleSheet
          The parent StyleSheet.
static SelectorFactory SELECTOR_FACTORY
          The selector factory.
 
Fields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE
 
Constructor Summary
protected AbstractCSSRule(CSSStyleSheet ss, CSSRule pr)
          Creates a new AbstractCSSRule object.
 
Method Summary
 CSSRule getParentRule()
          DOM: Implements CSSRule.getParentRule().
 CSSStyleSheet getParentStyleSheet()
          DOM: Implements CSSRule.getParentStyleSheet().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.css.CSSRule
getCssText, getType, setCssText
 

Field Detail

SELECTOR_FACTORY

public static final SelectorFactory SELECTOR_FACTORY
The selector factory.

CONDITION_FACTORY

public static final ConditionFactory CONDITION_FACTORY
The condition factory.

parentStyleSheet

protected CSSStyleSheet parentStyleSheet
The parent StyleSheet.

parentRule

protected CSSRule parentRule
The parent rule.
Constructor Detail

AbstractCSSRule

protected AbstractCSSRule(CSSStyleSheet ss,
                          CSSRule pr)
Creates a new AbstractCSSRule object.
Method Detail

getParentStyleSheet

public CSSStyleSheet getParentStyleSheet()
DOM: Implements CSSRule.getParentStyleSheet().
Specified by:
getParentStyleSheet in interface CSSRule
Returns:
parentStyleSheet.

getParentRule

public CSSRule getParentRule()
DOM: Implements CSSRule.getParentRule().
Specified by:
getParentRule in interface CSSRule
Returns:
parentRule.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.