Class CssPageTypeSelectorItem
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssPageTypeSelectorItem
- All Implemented Interfaces:
ICssSelectorItem
ICssSelectorItem implementation for page type selectors.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssPageTypeSelectorItem(String pageTypeName) Creates a newCssPageTypeSelectorIteminstance. -
Method Summary
Modifier and TypeMethodDescriptionintGets the specificity.booleanChecks if the selector matches an element.
-
Field Details
-
pageTypeName
The page type name.
-
-
Constructor Details
-
CssPageTypeSelectorItem
Creates a newCssPageTypeSelectorIteminstance.- Parameters:
pageTypeName- the page type 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
-