Class CssIdSelectorItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String id
      The id.
    • 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.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • id

        private java.lang.String id
        The id.
    • Constructor Detail

      • CssIdSelectorItem

        public CssIdSelectorItem​(java.lang.String id)
        Creates a new CssIdSelectorItem instance.
        Parameters:
        id - the id
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object