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:
java.io.Serializable
,Locatable
public class CSSCharsetRuleImpl extends AbstractCSSRuleImpl
Implementation of CSSCharsetRule.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
encoding_
-
Constructor Summary
Constructors Constructor Description CSSCharsetRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, java.lang.String encoding)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCssText()
java.lang.String
getEncoding()
int
hashCode()
void
setCssText(java.lang.String cssText)
Sets the css text.java.lang.String
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 Detail
-
CSSCharsetRuleImpl
public CSSCharsetRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, java.lang.String encoding)
Ctor.- Parameters:
parentStyleSheet
- the parent style sheetparentRule
- the parent ruleencoding
- the encoding
-
-
Method Detail
-
setCssText
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException
Sets the css text.- Specified by:
setCssText
in classAbstractCSSRuleImpl
- Parameters:
cssText
- the new css text- Throws:
org.w3c.dom.DOMException
-
getEncoding
public java.lang.String getEncoding()
- Returns:
- the encoding
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractCSSRuleImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractCSSRuleImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCssText
public java.lang.String getCssText()
- Specified by:
getCssText
in classAbstractCSSRuleImpl
- Returns:
- the current css text
-
-