Class CssTagSelectorItem
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.selector.item.CssTagSelectorItem
-
- All Implemented Interfaces:
ICssSelectorItem
public class CssTagSelectorItem extends java.lang.Object implements ICssSelectorItem
ICssSelectorItem
implementation for tag selectors.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isUniversal
Indicates if the selector is universally valid.private java.lang.String
tagName
The tag name.
-
Constructor Summary
Constructors Constructor Description CssTagSelectorItem(java.lang.String tagName)
Creates a newCssTagSelectorItem
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
-
CssTagSelectorItem
public CssTagSelectorItem(java.lang.String tagName)
Creates a newCssTagSelectorItem
instance.- Parameters:
tagName
- the tag name
-
-
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
-
-