Class StringQuotingChecker.Default
java.lang.Object
tools.jackson.dataformat.yaml.util.StringQuotingChecker
tools.jackson.dataformat.yaml.util.StringQuotingChecker.Default
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StringQuotingChecker
public static class StringQuotingChecker.Default
extends StringQuotingChecker
implements Serializable
Default
StringQuotingChecker implementation used unless
custom implementation registered.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.dataformat.yaml.util.StringQuotingChecker
StringQuotingChecker.Default -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringQuotingChecker.Defaultinstance()booleanneedToQuoteName(String name) Default implementation will callStringQuotingChecker.isReservedKeyword(String)andStringQuotingChecker.looksLikeYAMLNumber(String)to determine if quoting should be applied.booleanneedToQuoteValue(String value) Default implementation will callStringQuotingChecker.isReservedKeyword(String)andStringQuotingChecker.valueHasQuotableChar(String)to determine if quoting should be applied.Methods inherited from class tools.jackson.dataformat.yaml.util.StringQuotingChecker
_isReservedKeyword, _looksLikeYAMLNumber, followedOnlyByBlank, isBlank, isReservedKeyword, looksLikeYAMLNumber, nameHasQuotableChar, precededOnlyByBlank, valueHasQuotableChar
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
instance
-
needToQuoteName
Default implementation will callStringQuotingChecker.isReservedKeyword(String)andStringQuotingChecker.looksLikeYAMLNumber(String)to determine if quoting should be applied.- Specified by:
needToQuoteNamein classStringQuotingChecker
-
needToQuoteValue
Default implementation will callStringQuotingChecker.isReservedKeyword(String)andStringQuotingChecker.valueHasQuotableChar(String)to determine if quoting should be applied.- Specified by:
needToQuoteValuein classStringQuotingChecker
-