Class CssPageTypeSelectorItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String pageTypeName
      The page type name.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pageTypeName

        private java.lang.String pageTypeName
        The page type name.
    • Constructor Detail

      • CssPageTypeSelectorItem

        public CssPageTypeSelectorItem​(java.lang.String pageTypeName)
        Creates a new CssPageTypeSelectorItem instance.
        Parameters:
        pageTypeName - the page type name
    • Method Detail

      • 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