Package org.htmlunit.cssparser.dom
Class CSSCharsetRuleImpl
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
org.htmlunit.cssparser.dom.CSSCharsetRuleImpl
- All Implemented Interfaces:
Serializable
,Locatable
Implementation of CSSCharsetRule.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionCSSCharsetRuleImpl
(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String encoding) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCssText.getEncoding.int
hashCode()
void
setCssText
(String cssText) Sets the css text.toString()
Methods inherited from class org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
getParentRule, getParentStyleSheet, setParentRule, setParentStyleSheet
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
Constructor Details
-
CSSCharsetRuleImpl
public CSSCharsetRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String encoding) Ctor.- Parameters:
parentStyleSheet
- the parent style sheetparentRule
- the parent ruleencoding
- the encoding
-
-
Method Details
-
setCssText
Sets the css text.- Specified by:
setCssText
in classAbstractCSSRuleImpl
- Parameters:
cssText
- the new css text- Throws:
DOMException
-
getEncoding
getEncoding.
- Returns:
- the encoding
-
equals
- Overrides:
equals
in classAbstractCSSRuleImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractCSSRuleImpl
-
toString
-
getCssText
getCssText.
- Specified by:
getCssText
in classAbstractCSSRuleImpl
- Returns:
- the current css text
-