Class CssSeparatorSelectorItem
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssSeparatorSelectorItem
- All Implemented Interfaces:
ICssSelectorItem
ICssSelectorItem implementation for separator selectors.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssSeparatorSelectorItem(char separator) Creates a newCssSeparatorSelectorIteminstance. -
Method Summary
Modifier and TypeMethodDescriptioncharGets the separator character.intGets the specificity.booleanChecks if the selector matches an element.toString()
-
Field Details
-
separator
private char separatorThe separator character.
-
-
Constructor Details
-
CssSeparatorSelectorItem
public CssSeparatorSelectorItem(char separator) Creates a newCssSeparatorSelectorIteminstance.- Parameters:
separator- the separator character
-
-
Method Details
-
getSpecificity
public int getSpecificity()Description copied from interface:ICssSelectorItemGets the specificity.- Specified by:
getSpecificityin interfaceICssSelectorItem- Returns:
- the specificity
-
matches
Description copied from interface:ICssSelectorItemChecks if the selector matches an element.- Specified by:
matchesin 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
-