com.fasterxml.jackson.databind
Class PropertyNamingStrategy.PascalCaseStrategy
java.lang.Object
  
com.fasterxml.jackson.databind.PropertyNamingStrategy
      
com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase
          
com.fasterxml.jackson.databind.PropertyNamingStrategy.PascalCaseStrategy
- Enclosing class:
 - PropertyNamingStrategy
 
public static class PropertyNamingStrategy.PascalCaseStrategy
- extends PropertyNamingStrategy.PropertyNamingStrategyBase
 
A PropertyNamingStrategy that translates typical camelCase Java 
 property names to PascalCase JSON element names (i.e., with a capital
 first letter).  In particular, the following translations are applied by 
 this PropertyNamingStrategy.
 
 
- The first lower-case letter in the Java property name is translated 
 into its equivalent upper-case representation.
 
 
 This rules result in the following example translation from 
 Java property names to JSON element names.
 - "userName" is translated to "UserName"
 
- Since:
 
  - 2.1
 
 
 
 
 
 
| 
Method Summary | 
 String | 
translate(String input)
 
          Converts camelCase to PascalCase
 
 For example, "userName" would be converted to
 "UserName". | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PropertyNamingStrategy.PascalCaseStrategy
public PropertyNamingStrategy.PascalCaseStrategy()
translate
public String translate(String input)
- Converts camelCase to PascalCase
 
 For example, "userName" would be converted to
 "UserName".
- Specified by:
 translate in class PropertyNamingStrategy.PropertyNamingStrategyBase
 
- Parameters:
 input - formatted as camelCase string
- Returns:
 - input converted to PascalCase format
 
 
 
Copyright © 2012 FasterXML. All Rights Reserved.