Class CssQuotes
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.CssQuotes
Helper class to deal with quoted values in strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CssQuotes
Creates the defaultCssQuotes
instance.static CssQuotes
createQuotes
(String quotesString, boolean fallbackToDefault) Creates aCssQuotes
instance.resolveQuote
(String value, AbstractCssContext context) Resolves quotes.
-
Method Details
-
createQuotes
Creates aCssQuotes
instance.- Parameters:
-
quotesString
- the quotes string -
fallbackToDefault
- indicates whether it's OK to fall back to the default - Returns:
-
the resulting
CssQuotes
instance
-
createDefaultQuotes
Creates the defaultCssQuotes
instance.- Returns:
-
the
CssQuotes
instance
-
resolveQuote
Resolves quotes.- Parameters:
-
value
- the value -
context
- the CSS context - Returns:
- the quote string
-