Class CssAttributeSelectorItem
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssAttributeSelectorItem
- All Implemented Interfaces:
ICssSelectorItem
ICssSelectorItem
implementation for attribute selectors.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssAttributeSelectorItem
(String attrSelector) Creates a newCssAttributeSelectorItem
instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the specificity.boolean
Checks if the selector matches an element.toString()
-
Field Details
-
property
The property. -
matchSymbol
private char matchSymbolThe match symbol. -
value
The value.
-
-
Constructor Details
-
CssAttributeSelectorItem
Creates a newCssAttributeSelectorItem
instance.- Parameters:
attrSelector
- the attribute
-
-
Method Details
-
getSpecificity
public int getSpecificity()Description copied from interface:ICssSelectorItem
Gets the specificity.- Specified by:
getSpecificity
in interfaceICssSelectorItem
- Returns:
- the specificity
-
matches
Description copied from interface:ICssSelectorItem
Checks if the selector matches an element.- Specified by:
matches
in interfaceICssSelectorItem
- Parameters:
node
- the element- Returns:
- true, if there's a match
-
toString
-