public class CssClassSelectorItem extends Object implements ICssSelectorItem
ICssSelectorItem
implementation for class selectors.
Constructor and Description |
---|
CssClassSelectorItem(String className)
Creates a new CssClassSelectorItem instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getSpecificity()
Gets the specificity.
|
boolean |
matches(INode node)
Checks if the selector matches an element.
|
String |
toString() |
public CssClassSelectorItem(String className)
CssClassSelectorItem
instance.
className
- the class name
public int getSpecificity()
ICssSelectorItem
getSpecificity
in interface ICssSelectorItem
public boolean matches(INode node)
ICssSelectorItem
matches
in interface ICssSelectorItem
node
- the element
Copyright © 1998–2023 iText Group NV. All rights reserved.