Class CssSeparatorSelectorItem
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.selector.item.CssSeparatorSelectorItem
-
- All Implemented Interfaces:
ICssSelectorItem
public class CssSeparatorSelectorItem extends java.lang.Object implements ICssSelectorItem
ICssSelectorItem
implementation for separator selectors.
-
-
Field Summary
Fields Modifier and Type Field Description private char
separator
The separator character.
-
Constructor Summary
Constructors Constructor Description CssSeparatorSelectorItem(char separator)
Creates a newCssSeparatorSelectorItem
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getSeparator()
Gets the separator character.int
getSpecificity()
Gets the specificity.boolean
matches(INode node)
Checks if the selector matches an element.java.lang.String
toString()
-
-
-
Constructor Detail
-
CssSeparatorSelectorItem
public CssSeparatorSelectorItem(char separator)
Creates a newCssSeparatorSelectorItem
instance.- Parameters:
separator
- the separator character
-
-
Method Detail
-
getSpecificity
public int getSpecificity()
Description copied from interface:ICssSelectorItem
Gets the specificity.- Specified by:
getSpecificity
in interfaceICssSelectorItem
- 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 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-