Class AbstractCSSRuleImpl

java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
All Implemented Interfaces:
Serializable, Locatable
Direct Known Subclasses:
CSSCharsetRuleImpl, CSSFontFaceRuleImpl, CSSImportRuleImpl, CSSMediaRuleImpl, CSSPageRuleImpl, CSSStyleRuleImpl, CSSUnknownRuleImpl

public abstract class AbstractCSSRuleImpl extends AbstractLocatable implements Serializable

Abstract AbstractCSSRuleImpl class.

Author:
Ronald Brill
See Also:
  • Constructor Details

    • AbstractCSSRuleImpl

      public AbstractCSSRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule)
      Ctor.
      Parameters:
      parentStyleSheet - the parent style sheet
      parentRule - the parent rule
  • Method Details

    • getCssText

      public abstract String getCssText()

      getCssText.

      Returns:
      the current css text
    • setCssText

      public abstract void setCssText(String cssText)
      Sets the css text.
      Parameters:
      cssText - the new css text
    • setParentStyleSheet

      public void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
      Sets the parent style sheet.
      Parameters:
      parentStyleSheet - the new parent style sheet
    • setParentRule

      public void setParentRule(AbstractCSSRuleImpl parentRule)
      Sets the parent rule.
      Parameters:
      parentRule - the new parent rule
    • getParentStyleSheet

      public CSSStyleSheetImpl getParentStyleSheet()

      getParentStyleSheet.

      Returns:
      the parent style sheet
    • getParentRule

      public AbstractCSSRuleImpl getParentRule()

      getParentRule.

      Returns:
      the parent rule
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object