Package org.htmlunit.cssparser.dom
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
Abstract AbstractCSSRuleImpl class.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionAbstractCSSRuleImpl
(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract String
getCssText.getParentRule.getParentStyleSheet.int
hashCode()
abstract void
setCssText
(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
-
Constructor Details
-
AbstractCSSRuleImpl
Ctor.- Parameters:
parentStyleSheet
- the parent style sheetparentRule
- the parent rule
-
-
Method Details
-
getCssText
getCssText.
- Returns:
- the current css text
-
setCssText
Sets the css text.- Parameters:
cssText
- the new css text
-
setParentStyleSheet
Sets the parent style sheet.- Parameters:
parentStyleSheet
- the new parent style sheet
-
setParentRule
Sets the parent rule.- Parameters:
parentRule
- the new parent rule
-
getParentStyleSheet
getParentStyleSheet.
- Returns:
- the parent style sheet
-
getParentRule
getParentRule.
- Returns:
- the parent rule
-
equals
-
hashCode
public int hashCode()
-