public class CssTagSelectorItem extends Object implements ICssSelectorItem
ICssSelectorItem implementation for tag selectors.| Constructor and Description |
|---|
CssTagSelectorItem(String tagName)
Creates a new
CssTagSelectorItem 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 CssTagSelectorItem(String tagName)
CssTagSelectorItem instance.tagName - the tag namepublic int getSpecificity()
ICssSelectorItemgetSpecificity in interface ICssSelectorItempublic boolean matches(INode node)
ICssSelectorItemmatches in interface ICssSelectorItemnode - the elementCopyright © 1998–2023 iText Group NV. All rights reserved.