public static class StringQuotingChecker.Default extends StringQuotingChecker implements Serializable
StringQuotingChecker implementation used unless
custom implementation registered.StringQuotingChecker.Default| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
static StringQuotingChecker.Default |
instance() |
boolean |
needToQuoteName(String name)
Default implementation will call
StringQuotingChecker.isReservedKeyword(String) and
StringQuotingChecker.looksLikeYAMLNumber(String) to determine
if quoting should be applied. |
boolean |
needToQuoteValue(String value)
Default implementation will call
StringQuotingChecker.isReservedKeyword(String)
and StringQuotingChecker.valueHasQuotableChar(String) to determine
if quoting should be applied. |
_isReservedKeyword, _looksLikeYAMLNumber, isReservedKeyword, looksLikeYAMLNumber, valueHasQuotableCharpublic static StringQuotingChecker.Default instance()
public boolean needToQuoteName(String name)
StringQuotingChecker.isReservedKeyword(String) and
StringQuotingChecker.looksLikeYAMLNumber(String) to determine
if quoting should be applied.needToQuoteName in class StringQuotingCheckerpublic boolean needToQuoteValue(String value)
StringQuotingChecker.isReservedKeyword(String)
and StringQuotingChecker.valueHasQuotableChar(String) to determine
if quoting should be applied.needToQuoteValue in class StringQuotingCheckerCopyright © 2021 FasterXML. All rights reserved.