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
ICssSelectorItemimplementation for separator selectors.
-
-
Field Summary
Fields Modifier and Type Field Description private charseparatorThe separator character.
-
Constructor Summary
Constructors Constructor Description CssSeparatorSelectorItem(char separator)Creates a newCssSeparatorSelectorIteminstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetSeparator()Gets the separator character.intgetSpecificity()Gets the specificity.booleanmatches(INode node)Checks if the selector matches an element.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CssSeparatorSelectorItem
public CssSeparatorSelectorItem(char separator)
Creates a newCssSeparatorSelectorIteminstance.- Parameters:
separator- the separator character
-
-
Method Detail
-
getSpecificity
public int getSpecificity()
Description copied from interface:ICssSelectorItemGets the specificity.- Specified by:
getSpecificityin interfaceICssSelectorItem- Returns:
- the specificity
-
matches
public boolean matches(INode node)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-