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