Class CssAttributeSelectorItem
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.selector.item.CssAttributeSelectorItem
-
- All Implemented Interfaces:
ICssSelectorItem
public class CssAttributeSelectorItem extends java.lang.Object implements ICssSelectorItem
ICssSelectorItem
implementation for attribute selectors.
-
-
Field Summary
Fields Modifier and Type Field Description private char
matchSymbol
The match symbol.private java.lang.String
property
The property.private java.lang.String
value
The value.
-
Constructor Summary
Constructors Constructor Description CssAttributeSelectorItem(java.lang.String attrSelector)
Creates a newCssAttributeSelectorItem
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSpecificity()
Gets the specificity.boolean
matches(INode node)
Checks if the selector matches an element.java.lang.String
toString()
-
-
-
Constructor Detail
-
CssAttributeSelectorItem
public CssAttributeSelectorItem(java.lang.String attrSelector)
Creates a newCssAttributeSelectorItem
instance.- Parameters:
attrSelector
- the attribute
-
-
Method Detail
-
getSpecificity
public int getSpecificity()
Description copied from interface:ICssSelectorItem
Gets the specificity.- Specified by:
getSpecificity
in interfaceICssSelectorItem
- Returns:
- the specificity
-
matches
public boolean matches(INode node)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-