Class CssSeparatorSelectorItem

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

public class CssSeparatorSelectorItem extends Object implements ICssSelectorItem
ICssSelectorItem implementation for separator selectors.
  • Constructor Details

    • CssSeparatorSelectorItem

      public CssSeparatorSelectorItem (char separator)
      Creates a new CssSeparatorSelectorItem instance.
      Parameters:
      separator - the separator character
  • 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
    • getSeparator

      public char getSeparator()
      Gets the separator character.
      Returns:
      the separator character
    • toString

      public String toString()
      Overrides:
      toString in class Object