Interface IRegexQuoteType
-
- All Superinterfaces:
IQuoteType
- All Known Implementing Classes:
RegexQuoteType
,SedRegexQuoteType
public interface IRegexQuoteType extends IQuoteType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getQuoteRegex()
Get the regex pattern for character sequences whose presence indicate that a string must be quoted.default boolean
isQuoteNeeded(CharSequence string)
-
Methods inherited from interface com.g2forge.alexandria.java.text.quote.IQuoteType
escape, getEscapeType, getPostfix, getPrefix, isQuoted, quote, unescape, unquote
-
-
-
-
Method Detail
-
getQuoteRegex
String getQuoteRegex()
Get the regex pattern for character sequences whose presence indicate that a string must be quoted.- Returns:
- A regex pattern to determine whether a string must be quoted.
-
isQuoteNeeded
default boolean isQuoteNeeded(CharSequence string)
- Specified by:
isQuoteNeeded
in interfaceIQuoteType
-
-