Class CssPagePseudoClassSelectorItem

java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssPagePseudoClassSelectorItem
All Implemented Interfaces:
ICssSelectorItem

public class CssPagePseudoClassSelectorItem extends Object implements ICssSelectorItem
ICssSelectorItem implementation for page pseudo classes selectors.
  • Constructor Details

    • CssPagePseudoClassSelectorItem

      public CssPagePseudoClassSelectorItem (String pagePseudoClass)
      Creates a new CssPagePseudoClassSelectorItem instance.
      Parameters:
      pagePseudoClass - the page pseudo class name
  • Method Details

    • getSpecificity

      public int getSpecificity()
      Description copied from interface: ICssSelectorItem
      Gets the specificity.
      Specified by:
      getSpecificity in interface ICssSelectorItem
      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 interface ICssSelectorItem
      Parameters:
      node - the element
      Returns:
      true, if there's a match