java.lang.Object
tools.jackson.databind.ObjectMapper
tools.jackson.dataformat.yaml.YAMLMapper
All Implemented Interfaces:
Serializable, tools.jackson.core.TreeCodec, tools.jackson.core.Versioned

public class YAMLMapper extends tools.jackson.databind.ObjectMapper
Convenience version of ObjectMapper which is configured with YAMLFactory.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Base implementation for "Vanilla" ObjectMapper, used with YAML backend.
  • Field Summary

    Fields inherited from class tools.jackson.databind.ObjectMapper

    _deserializationConfig, _deserializationContexts, _injectableValues, _rootDeserializers, _savedBuilderState, _serializationConfig, _serializationContexts, _streamFactory, _typeFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    builder(YAMLFactory streamFactory)
     
    protected Object
     
     
    static YAMLMapper
    Accessor method for getting globally shared "default" YAMLMapper instance: one that has default configuration, no modules registered, no config overrides.
    Overridden with more specific type, since factory we have is always of type YAMLFactory
    tools.jackson.core.Version
     
    protected Object
     

    Methods inherited from class tools.jackson.databind.ObjectMapper

    _assertNotNull, _configAndWriteValue, _convert, _deserializationContext, _deserializationContext, _deserializationContext, _findRootDeserializer, _initForReading, _newReader, _newReader, _newWriter, _newWriter, _newWriter, _readMapAndClose, _readTreeAndClose, _readValue, _serializationContext, _serializationContext, _verifyNoTrailingTokens, _verifySchemaType, _writeCloseableValue, acceptJsonFormatVisitor, acceptJsonFormatVisitor, acceptJsonFormatVisitor, booleanNode, clearCaches, constructType, constructType, convertValue, convertValue, convertValue, createArrayNode, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createNonBlockingByteArrayParser, createNonBlockingByteBufferParser, createObjectNode, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, deserializationConfig, getInjectableValues, getNodeFactory, getTypeFactory, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, missingNode, nullNode, reader, reader, reader, reader, reader, reader, reader, reader, reader, readerFor, readerFor, readerFor, readerForArrayOf, readerForListOf, readerForMapOf, readerForUpdating, readerWithView, readTree, readTree, readTree, readTree, readTree, readTree, readTree, readTree, readTree, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValues, readValues, readValues, registeredModules, serializationConfig, stringNode, treeAsTokens, treeToValue, treeToValue, treeToValue, updateValue, valueToTree, writer, writer, writer, writer, writer, writer, writer, writer, writer, writer, writerFor, writerFor, writerFor, writerWithDefaultPrettyPrinter, writerWithView, writeTree, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValueAsBytes, writeValueAsString, writeValueIntoBuffer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • builder

      public static YAMLMapper.Builder builder()
    • builder

      public static YAMLMapper.Builder builder(YAMLFactory streamFactory)
    • rebuild

      public YAMLMapper.Builder rebuild()
      Overrides:
      rebuild in class tools.jackson.databind.ObjectMapper
    • shared

      public static YAMLMapper shared()
      Accessor method for getting globally shared "default" YAMLMapper instance: one that has default configuration, no modules registered, no config overrides. Usable mostly when dealing "untyped" or Tree-style content reading and writing.
    • writeReplace

      protected Object writeReplace()
      Overrides:
      writeReplace in class tools.jackson.databind.ObjectMapper
    • readResolve

      protected Object readResolve()
      Overrides:
      readResolve in class tools.jackson.databind.ObjectMapper
    • version

      public tools.jackson.core.Version version()
      Specified by:
      version in interface tools.jackson.core.Versioned
      Overrides:
      version in class tools.jackson.databind.ObjectMapper
    • tokenStreamFactory

      public final YAMLFactory tokenStreamFactory()
      Overridden with more specific type, since factory we have is always of type YAMLFactory
      Overrides:
      tokenStreamFactory in class tools.jackson.databind.ObjectMapper