Class CssClassSelectorItem
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.selector.item.CssClassSelectorItem
-
- All Implemented Interfaces:
ICssSelectorItem
public class CssClassSelectorItem extends java.lang.Object implements ICssSelectorItem
ICssSelectorItemimplementation for class selectors.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringclassNameThe class name.
-
Constructor Summary
Constructors Constructor Description CssClassSelectorItem(java.lang.String className)Creates a newCssClassSelectorIteminstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSpecificity()Gets the specificity.booleanmatches(INode node)Checks if the selector matches an element.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CssClassSelectorItem
public CssClassSelectorItem(java.lang.String className)
Creates a newCssClassSelectorIteminstance.- Parameters:
className- the class name
-
-
Method Detail
-
getSpecificity
public int getSpecificity()
Description copied from interface:ICssSelectorItemGets the specificity.- Specified by:
getSpecificityin interfaceICssSelectorItem- Returns:
- the specificity
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
matches
public boolean matches(INode node)
Description copied from interface:ICssSelectorItemChecks if the selector matches an element.- Specified by:
matchesin interfaceICssSelectorItem- Parameters:
node- the element- Returns:
- true, if there's a match
-
-