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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCSSCharsetRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String encoding) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetCssText(String cssText) Sets the css text.toString()Methods inherited from class AbstractCSSRuleImpl
getParentRule, getParentStyleSheet, setParentRule, setParentStyleSheetMethods inherited from class AbstractLocatable
getLocator, setLocator
-
Field Details
-
encoding_
-
-
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:
setCssTextin classAbstractCSSRuleImpl- Parameters:
cssText- the new css text- Throws:
DOMException
-
getEncoding
- Returns:
- the encoding
-
equals
- Overrides:
equalsin classAbstractCSSRuleImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractCSSRuleImpl
-
toString
-
getCssText
- Specified by:
getCssTextin classAbstractCSSRuleImpl- Returns:
- the current css text
-