org.codehaus.jackson.map
Class PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy

java.lang.Object
  extended by org.codehaus.jackson.map.PropertyNamingStrategy
      extended by org.codehaus.jackson.map.PropertyNamingStrategy.PropertyNamingStrategyBase
          extended by org.codehaus.jackson.map.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.

Since:
1.9

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.PropertyNamingStrategy
PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy, PropertyNamingStrategy.PropertyNamingStrategyBase
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.map.PropertyNamingStrategy
CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES
 
Constructor Summary
PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy()
           
 
Method Summary
 String translate(String input)
           
 
Methods inherited from class org.codehaus.jackson.map.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