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, nameHasQuotableChar, valueHasQuotableChar
public 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 StringQuotingChecker
public boolean needToQuoteValue(String value)
StringQuotingChecker.isReservedKeyword(String)
and StringQuotingChecker.valueHasQuotableChar(String)
to determine
if quoting should be applied.needToQuoteValue
in class StringQuotingChecker
Copyright © 2022 FasterXML. All rights reserved.