Class StringQuotingChecker.Default
java.lang.Object
com.fasterxml.jackson.dataformat.yaml.util.StringQuotingChecker
com.fasterxml.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.- Since:
- 2.12
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class StringQuotingChecker
StringQuotingChecker.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringQuotingChecker.Defaultprivate static final long -
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 StringQuotingChecker
_isReservedKeyword, _looksLikeYAMLNumber, followedOnlyByBlank, isBlank, isReservedKeyword, looksLikeYAMLNumber, nameHasQuotableChar, precededOnlyByBlank, valueHasQuotableChar
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
-
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
-