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 AbstractCSSRuleImpl
parentRule_
private CSSStyleSheetImpl
parentStyleSheet_
-
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 boolean
equals(java.lang.Object obj)
abstract java.lang.String
getCssText()
AbstractCSSRuleImpl
getParentRule()
CSSStyleSheetImpl
getParentStyleSheet()
int
hashCode()
abstract void
setCssText(java.lang.String cssText)
Sets the css text.void
setParentRule(AbstractCSSRuleImpl parentRule)
Sets the parent rule.void
setParentStyleSheet(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-