com.fasterxml.jackson.databind
Class PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy

java.lang.Object
  extended by com.fasterxml.jackson.databind.PropertyNamingStrategy
      extended by com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase
          extended by com.fasterxml.jackson.databind.PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy
Enclosing class:
PropertyNamingStrategy

public static class PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy
extends PropertyNamingStrategy.PropertyNamingStrategyBase

A PropertyNamingStrategy that translates typical camel case Java property names to lower case JSON element names, separated by underscores. This implementation is somewhat lenient, in that it provides some additional translations beyond strictly translating from camel case only. In particular, the following translations are applied by this PropertyNamingStrategy.

These rules result in the following additional example translations from Java property names to JSON element names.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy
PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy, PropertyNamingStrategy.PropertyNamingStrategyBase
 
Field Summary
 
Fields inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy
CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES
 
Constructor Summary
PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy()
           
 
Method Summary
 String translate(String input)
           
 
Methods inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase
nameForConstructorParameter, nameForField, nameForGetterMethod, nameForSetterMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy

public PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy()
Method Detail

translate

public String translate(String input)
Specified by:
translate in class PropertyNamingStrategy.PropertyNamingStrategyBase


Copyright © 2012 fasterxml.com. All Rights Reserved.