Class CssClassSelectorItem
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssClassSelectorItem
- All Implemented Interfaces:
ICssSelectorItem
ICssSelectorItem implementation for class selectors.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssClassSelectorItem(String className) Creates a newCssClassSelectorIteminstance. -
Method Summary
Modifier and TypeMethodDescriptionintGets the specificity.booleanChecks if the selector matches an element.toString()
-
Field Details
-
className
The class name.
-
-
Constructor Details
-
CssClassSelectorItem
Creates a newCssClassSelectorIteminstance.- Parameters:
className- the class name
-
-
Method Details
-
getSpecificity
public int getSpecificity()Description copied from interface:ICssSelectorItemGets the specificity.- Specified by:
getSpecificityin interfaceICssSelectorItem- Returns:
- the specificity
-
toString
-
matches
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
-