Example usage for com.fasterxml.jackson.dataformat.yaml YAMLMapper setPropertyNamingStrategy

List of usage examples for com.fasterxml.jackson.dataformat.yaml YAMLMapper setPropertyNamingStrategy

Introduction

In this page you can find the example usage for com.fasterxml.jackson.dataformat.yaml YAMLMapper setPropertyNamingStrategy.

Prototype

public ObjectMapper setPropertyNamingStrategy(PropertyNamingStrategy s) 

Source Link

Document

Method for setting custom property naming strategy to use.

Usage

From source file:com.memtrip.gear2nd.parser.Deserialization.java

private static YAMLMapper getYAMLMapper() {
    YAMLMapper yamlMapper = new YAMLMapper();
    yamlMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
    yamlMapper.setPropertyNamingStrategy(PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES);
    return yamlMapper;
}