Home
last modified time | relevance | path

Searched refs:PropertyNamingStrategy (Results 1 – 19 of 19) sorted by relevance

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/
DTestNamingStrategyStd.java80 @JsonNaming(PropertyNamingStrategy.LowerCaseStrategy.class)
182 _lcWithUndescoreMapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); in setUp()
199 String translatedJavaName = PropertyNamingStrategy.SNAKE_CASE.nameForField(null, null, in testLowerCaseStrategyStandAlone()
273 …assertEquals("UserName", PropertyNamingStrategy.UPPER_CAMEL_CASE.nameForField(null, null, "userNam… in testPascalCaseStandAlone()
274 … assertEquals("User", PropertyNamingStrategy.UPPER_CAMEL_CASE.nameForField(null, null, "User")); in testPascalCaseStandAlone()
275 … assertEquals("User", PropertyNamingStrategy.UPPER_CAMEL_CASE.nameForField(null, null, "user")); in testPascalCaseStandAlone()
276 assertEquals("X", PropertyNamingStrategy.UPPER_CAMEL_CASE.nameForField(null, null, "x")); in testPascalCaseStandAlone()
278 …assertEquals("BADPublicName", PropertyNamingStrategy.UPPER_CAMEL_CASE.nameForField(null, null, "bA… in testPascalCaseStandAlone()
279 …assertEquals("BADPublicName", PropertyNamingStrategy.UPPER_CAMEL_CASE.nameForGetterMethod(null, nu… in testPascalCaseStandAlone()
286 .setPropertyNamingStrategy(PropertyNamingStrategy.UPPER_CAMEL_CASE) in testIssue428PascalWithOverrides()
[all …]
DTestNamingStrategyCustom.java9 import com.fasterxml.jackson.databind.PropertyNamingStrategy;
27 static class PrefixStrategy extends PropertyNamingStrategy
51 static class CStyleStrategy extends PropertyNamingStrategy
140 static class LcStrategy extends PropertyNamingStrategy.PropertyNamingStrategyBase
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DPropertyNamingStrategy.java30 public class PropertyNamingStrategy // NOTE: was abstract until 2.7 class
40 public static final PropertyNamingStrategy SNAKE_CASE = new SnakeCaseStrategy();
49 public static final PropertyNamingStrategy UPPER_CAMEL_CASE = new UpperCamelCaseStrategy();
59 public static final PropertyNamingStrategy LOWER_CAMEL_CASE = new PropertyNamingStrategy();
68 public static final PropertyNamingStrategy LOWER_CASE = new LowerCaseStrategy();
77 public static final PropertyNamingStrategy KEBAB_CASE = new KebabCaseStrategy();
86 public static final PropertyNamingStrategy LOWER_DOT_CASE = new LowerDotCaseStrategy();
178 public static abstract class PropertyNamingStrategyBase extends PropertyNamingStrategy
438 … public static final PropertyNamingStrategy CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES = SNAKE_CASE;
444 public static final PropertyNamingStrategy PASCAL_CASE_TO_CAMEL_CASE = UPPER_CAMEL_CASE;
DModule.java357 public void setNamingStrategy(PropertyNamingStrategy naming); in setNamingStrategy()
DObjectMapper.java990 public void setNamingStrategy(PropertyNamingStrategy naming) { in registerModule()
1655 public ObjectMapper setPropertyNamingStrategy(PropertyNamingStrategy s) {
1664 public PropertyNamingStrategy getPropertyNamingStrategy() {
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/annotation/
DJsonNaming.java5 import com.fasterxml.jackson.databind.PropertyNamingStrategy;
27 public Class<? extends PropertyNamingStrategy> value() default PropertyNamingStrategy.class; in value()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DBaseSettings.java58 protected final PropertyNamingStrategy _propertyNamingStrategy;
146 PropertyNamingStrategy pns, TypeFactory tf, in BaseSettings()
166 PropertyNamingStrategy pns, TypeFactory tf, in BaseSettings()
236 public BaseSettings withPropertyNamingStrategy(PropertyNamingStrategy pns) { in withPropertyNamingStrategy()
356 public PropertyNamingStrategy getPropertyNamingStrategy() { in getPropertyNamingStrategy()
DHandlerInstantiator.java139 public PropertyNamingStrategy namingStrategyInstance(MapperConfig<?> config, in namingStrategyInstance()
DMapperConfig.java245 public final PropertyNamingStrategy getPropertyNamingStrategy() { in getPropertyNamingStrategy()
DMapperBuilder.java382 public B propertyNamingStrategy(PropertyNamingStrategy s) {
DMapperConfigBase.java456 public final T with(PropertyNamingStrategy pns) { in with()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DPOJOPropertiesCollector.java350 PropertyNamingStrategy naming = _findNamingStrategy(); in collectAll()
894 PropertyNamingStrategy naming) in _renameUsing()
1147 private PropertyNamingStrategy _findNamingStrategy() in _findNamingStrategy()
1153 if (namingDef instanceof PropertyNamingStrategy) { in _findNamingStrategy()
1154 return (PropertyNamingStrategy) namingDef; in _findNamingStrategy()
1165 if (namingClass == PropertyNamingStrategy.class) { in _findNamingStrategy()
1169 if (!PropertyNamingStrategy.class.isAssignableFrom(namingClass)) { in _findNamingStrategy()
1175 PropertyNamingStrategy pns = hi.namingStrategyInstance(_config, _classDef, namingClass); in _findNamingStrategy()
1180 return (PropertyNamingStrategy) ClassUtil.createInstance(namingClass, in _findNamingStrategy()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/
DImplicitParamsForCreator806Test.java42 .setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE)
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DCreatorWithNamingStrategyTest.java42 .setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE)
DTestCreatorWithNamingStrategy556.java61 .setPropertyNamingStrategy(PropertyNamingStrategy.UPPER_CAMEL_CASE)
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/module/
DSimpleModule.java92 protected PropertyNamingStrategy _namingStrategy = null;
258 protected SimpleModule setNamingStrategy(PropertyNamingStrategy naming) { in setNamingStrategy()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/format/
DEnumFormatShapeTest.java149 .propertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE) in testEnumWithNamingStrategy()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/
DExternalTypeCustomResolverTest.java416 .propertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE)
/external/jackson-databind/release-notes/
DVERSION-2.x1101 #909: Rename PropertyNamingStrategy CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES as SNAKE_CASE,
1337 #815: Presence of PropertyNamingStrategy Makes Deserialization fail
1604 #428: `PropertyNamingStrategy` will rename even explicit name from `@JsonProperty`
1617 #461: Add new standard naming strategy, `PropertyNamingStrategy.LowerCaseStrategy`
1964 * [Issue#64]: Add new "standard" PropertyNamingStrategy, PascalCaseStrategy
1965 (PropertyNamingStrategy.PASCAL_CASE_TO_CAMEL_CASE)
1994 * [Issue#45]: Add '@JsonNaming' annotation to define per-class PropertyNamingStrategy