public class CSSCharsetRuleImpl extends java.lang.Object implements CSSCharsetRule, java.io.Serializable
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE| Constructor and Description |
|---|
CSSCharsetRuleImpl(CSSStyleSheetImpl parentStyleSheet,
CSSRule parentRule,
java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCssText()
The parsable textual representation of the rule.
|
java.lang.String |
getEncoding()
The encoding information used in this
@charset rule. |
CSSRule |
getParentRule()
If this rule is contained inside another rule (e.g.
|
CSSStyleSheet |
getParentStyleSheet()
The style sheet that contains this rule.
|
short |
getType()
The type of the rule, as defined above.
|
void |
setCssText(java.lang.String cssText) |
void |
setEncoding(java.lang.String encoding) |
public CSSCharsetRuleImpl(CSSStyleSheetImpl parentStyleSheet, CSSRule parentRule, java.lang.String encoding)
public short getType()
CSSRuleCSSRule interface to the specific
derived interface implied by the type.public java.lang.String getCssText()
CSSRulegetCssText in interface CSSRulepublic void setCssText(java.lang.String cssText)
throws org.w3c.dom.DOMException
setCssText in interface CSSRuleorg.w3c.dom.DOMExceptionpublic CSSStyleSheet getParentStyleSheet()
CSSRulegetParentStyleSheet in interface CSSRulepublic CSSRule getParentRule()
CSSRulenull.getParentRule in interface CSSRulepublic java.lang.String getEncoding()
CSSCharsetRule@charset rule.getEncoding in interface CSSCharsetRulepublic void setEncoding(java.lang.String encoding)
throws org.w3c.dom.DOMException
setEncoding in interface CSSCharsetRuleorg.w3c.dom.DOMException