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
public class CSSCharsetRuleImpl extends AbstractCSSRuleImpl
Implementation of CSSCharsetRule.- Author:
- Ronald Brill
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CSSCharsetRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String encoding)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCssText()getCssText.StringgetEncoding()getEncoding.inthashCode()voidsetCssText(String cssText)Sets the css text.StringtoString()-
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 Detail
-
CSSCharsetRuleImpl
public CSSCharsetRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String encoding)
Ctor.- Parameters:
parentStyleSheet- the parent style sheetparentRule- the parent ruleencoding- the encoding
-
-
Method Detail
-
setCssText
public void setCssText(String cssText) throws DOMException
Sets the css text.- Specified by:
setCssTextin classAbstractCSSRuleImpl- Parameters:
cssText- the new css text- Throws:
DOMException
-
getEncoding
public String getEncoding()
getEncoding.
- Returns:
- the encoding
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractCSSRuleImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCSSRuleImpl
-
getCssText
public String getCssText()
getCssText.
- Specified by:
getCssTextin classAbstractCSSRuleImpl- Returns:
- the current css text
-
-