Package org.htmlunit.cssparser.dom
Class AbstractCSSRuleImpl
- java.lang.Object
-
- org.htmlunit.cssparser.parser.AbstractLocatable
-
- org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
-
- All Implemented Interfaces:
java.io.Serializable,Locatable
- Direct Known Subclasses:
CSSCharsetRuleImpl,CSSFontFaceRuleImpl,CSSImportRuleImpl,CSSMediaRuleImpl,CSSPageRuleImpl,CSSStyleRuleImpl,CSSUnknownRuleImpl
public abstract class AbstractCSSRuleImpl extends AbstractLocatable implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractCSSRuleImplparentRule_private CSSStyleSheetImplparentStyleSheet_
-
Constructor Summary
Constructors Constructor Description AbstractCSSRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule)Ctor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)abstract java.lang.StringgetCssText()AbstractCSSRuleImplgetParentRule()CSSStyleSheetImplgetParentStyleSheet()inthashCode()abstract voidsetCssText(java.lang.String cssText)Sets the css text.voidsetParentRule(AbstractCSSRuleImpl parentRule)Sets the parent rule.voidsetParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)Sets the parent style sheet.-
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
-
-
-
Field Detail
-
parentStyleSheet_
private CSSStyleSheetImpl parentStyleSheet_
-
parentRule_
private AbstractCSSRuleImpl parentRule_
-
-
Constructor Detail
-
AbstractCSSRuleImpl
public AbstractCSSRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule)
Ctor.- Parameters:
parentStyleSheet- the parent style sheetparentRule- the parent rule
-
-
Method Detail
-
getCssText
public abstract java.lang.String getCssText()
- Returns:
- the current css text
-
setCssText
public abstract void setCssText(java.lang.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()
- Returns:
- the parent style sheet
-
getParentRule
public AbstractCSSRuleImpl getParentRule()
- Returns:
- the parent rule
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-