Package org.htmlunit.cssparser.dom
Class CSSStyleSheetListImpl
- java.lang.Object
-
- org.htmlunit.cssparser.dom.CSSStyleSheetListImpl
-
public class CSSStyleSheetListImpl extends java.lang.Object
Implementation of StyleSheetList.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<CSSStyleSheetImpl>
cssStyleSheets_
-
Constructor Summary
Constructors Constructor Description CSSStyleSheetListImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CSSStyleSheetImpl cssStyleSheet)
Adds a CSSStyleSheet.boolean
equals(java.lang.Object obj)
private boolean
equalsStyleSheets(CSSStyleSheetListImpl ssl)
java.util.List<CSSStyleSheetImpl>
getCSSStyleSheets()
int
getLength()
int
hashCode()
CSSStyleSheetImpl
merge()
Merges all StyleSheets in this list into one.
-
-
-
Field Detail
-
cssStyleSheets_
private java.util.List<CSSStyleSheetImpl> cssStyleSheets_
-
-
Method Detail
-
getCSSStyleSheets
public java.util.List<CSSStyleSheetImpl> getCSSStyleSheets()
- Returns:
- the list of style sheets
-
getLength
public int getLength()
- Returns:
- the number of style sheets
-
add
public void add(CSSStyleSheetImpl cssStyleSheet)
Adds a CSSStyleSheet.- Parameters:
cssStyleSheet
- the CSSStyleSheet
-
merge
public CSSStyleSheetImpl merge()
Merges all StyleSheets in this list into one.- Returns:
- the new (merged) StyleSheet
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
equalsStyleSheets
private boolean equalsStyleSheets(CSSStyleSheetListImpl ssl)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-