Class CssPageTypeSelectorItem
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.selector.item.CssPageTypeSelectorItem
-
- All Implemented Interfaces:
ICssSelectorItem
public class CssPageTypeSelectorItem extends java.lang.Object implements ICssSelectorItem
ICssSelectorItem
implementation for page type selectors.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
pageTypeName
The page type name.
-
Constructor Summary
Constructors Constructor Description CssPageTypeSelectorItem(java.lang.String pageTypeName)
Creates a newCssPageTypeSelectorItem
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.
-
-
-
Constructor Detail
-
CssPageTypeSelectorItem
public CssPageTypeSelectorItem(java.lang.String pageTypeName)
Creates a newCssPageTypeSelectorItem
instance.- Parameters:
pageTypeName
- the page type 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
-
-