Class CssPageTypeSelectorItem

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

public class CssPageTypeSelectorItem extends Object implements ICssSelectorItem
ICssSelectorItem implementation for page type selectors.
  • Constructor Details

    • CssPageTypeSelectorItem

      public CssPageTypeSelectorItem (String pageTypeName)
      Creates a new CssPageTypeSelectorItem instance.
      Parameters:
      pageTypeName - the page type 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