Class CssSeparatorSelectorItem
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssSeparatorSelectorItem
- All Implemented Interfaces:
-
ICssSelectorItem
ICssSelectorItem
implementation for separator selectors.
-
Constructor Summary
ConstructorsConstructorDescriptionCssSeparatorSelectorItem
(char separator) Creates a newCssSeparatorSelectorItem
instance. -
Method Summary
Modifier and TypeMethodDescriptionchar
Gets the separator character.int
Gets the specificity.boolean
Checks if the selector matches an element.toString()
-
Constructor Details
-
CssSeparatorSelectorItem
public CssSeparatorSelectorItem(char separator) Creates a newCssSeparatorSelectorItem
instance.- Parameters:
-
separator
- the separator character
-
-
Method Details
-
getSpecificity
public int getSpecificity()Description copied from interface:ICssSelectorItem
Gets the specificity.- Specified by:
-
getSpecificity
in interfaceICssSelectorItem
- Returns:
- the specificity
-
matches
Description copied from interface:ICssSelectorItem
Checks if the selector matches an element.- Specified by:
-
matches
in interfaceICssSelectorItem
- Parameters:
-
node
- the element - Returns:
- true, if there's a match
-
getSeparator
public char getSeparator()Gets the separator character.- Returns:
- the separator character
-
toString
-