Class CssTagSelectorItem
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssTagSelectorItem
- All Implemented Interfaces:
ICssSelectorItem
ICssSelectorItem implementation for tag selectors.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIndicates if the selector is universally valid.private StringThe tag name. -
Constructor Summary
ConstructorsConstructorDescriptionCssTagSelectorItem(String tagName) Creates a newCssTagSelectorIteminstance. -
Method Summary
Modifier and TypeMethodDescriptionintGets the specificity.booleanChecks if the selector matches an element.toString()
-
Field Details
-
tagName
The tag name. -
isUniversal
private boolean isUniversalIndicates if the selector is universally valid.
-
-
Constructor Details
-
CssTagSelectorItem
Creates a newCssTagSelectorIteminstance.- Parameters:
tagName- the tag name
-
-
Method Details
-
getSpecificity
public int getSpecificity()Description copied from interface:ICssSelectorItemGets the specificity.- Specified by:
getSpecificityin interfaceICssSelectorItem- Returns:
- the specificity
-
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
-
toString
-