Class CssAttributeSelectorItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private char matchSymbol
      The match symbol.
      private java.lang.String property
      The property.
      private java.lang.String value
      The value.
    • 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

      • property

        private java.lang.String property
        The property.
      • matchSymbol

        private char matchSymbol
        The match symbol.
      • value

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

      • CssAttributeSelectorItem

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