com.fasterxml.jackson.databind

## Class PropertyNamingStrategy.UpperCamelCaseStrategy

- java.lang.Object
- - com.fasterxml.jackson.databind.PropertyNamingStrategy
  - - com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase
    - - com.fasterxml.jackson.databind.PropertyNamingStrategy.UpperCamelCaseStrategy

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    PropertyNamingStrategy.PascalCaseStrategy
  Enclosing class:
    PropertyNamingStrategy

      public static class PropertyNamingStrategy.UpperCamelCaseStrategy
      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.7 (was formerly called `PropertyNamingStrategy.PascalCaseStrategy`)
  See Also:
    Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy

      `PropertyNamingStrategy.KebabCaseStrategy, PropertyNamingStrategy.LowerCaseStrategy, PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy, PropertyNamingStrategy.LowerDotCaseStrategy, PropertyNamingStrategy.PascalCaseStrategy, PropertyNamingStrategy.PropertyNamingStrategyBase, PropertyNamingStrategy.SnakeCaseStrategy, PropertyNamingStrategy.UpperCamelCaseStrategy`

  - ### Field Summary

    - ### Fields inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy

      `CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES, KEBAB_CASE, LOWER_CAMEL_CASE, LOWER_CASE, LOWER_DOT_CASE, PASCAL_CASE_TO_CAMEL_CASE, SNAKE_CASE, UPPER_CAMEL_CASE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UpperCamelCaseStrategy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `translate(String input)` Converts camelCase to PascalCase For example, "userName" would be converted to "UserName".

    - ### Methods inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase

      `nameForConstructorParameter, nameForField, nameForGetterMethod, nameForSetterMethod, translateLowerCaseWithSeparator`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UpperCamelCaseStrategy

          public UpperCamelCaseStrategy()

  - ### Method Detail

    - #### 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 © 2008–2020 FasterXML. All rights reserved.