Package org.htmlunit.cssparser.dom
Class CSSImportRuleImpl
- java.lang.Object
-
- org.htmlunit.cssparser.parser.AbstractLocatable
-
- org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
-
- org.htmlunit.cssparser.dom.CSSImportRuleImpl
-
- All Implemented Interfaces:
java.io.Serializable,Locatable
public class CSSImportRuleImpl extends AbstractCSSRuleImpl
Implementation of CSSImportRule.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringhref_private MediaListImplmedia_
-
Constructor Summary
Constructors Constructor Description CSSImportRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, java.lang.String href, MediaListImpl media)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCssText()java.lang.StringgetHref()MediaListImplgetMedia()CSSStyleSheetImplgetStyleSheet()inthashCode()voidsetCssText(java.lang.String cssText)Sets the css text.java.lang.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
-
-
-
-
Field Detail
-
href_
private java.lang.String href_
-
media_
private MediaListImpl media_
-
-
Constructor Detail
-
CSSImportRuleImpl
public CSSImportRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, java.lang.String href, MediaListImpl media)
Ctor.- Parameters:
parentStyleSheet- the parent style sheetparentRule- the parent rulehref- the hrefmedia- the media
-
-
Method Detail
-
getCssText
public java.lang.String getCssText()
- Specified by:
getCssTextin classAbstractCSSRuleImpl- Returns:
- the current css text
-
setCssText
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMExceptionSets the css text.- Specified by:
setCssTextin classAbstractCSSRuleImpl- Parameters:
cssText- the new css text- Throws:
org.w3c.dom.DOMException
-
getHref
public java.lang.String getHref()
- Returns:
- the href
-
getMedia
public MediaListImpl getMedia()
- Returns:
- the media lsit
-
getStyleSheet
public CSSStyleSheetImpl getStyleSheet()
- Returns:
- the parent style sheet
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractCSSRuleImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCSSRuleImpl
-
-