Searched refs:withRootName (Results 1 – 10 of 10) sorted by relevance
162 ObjectWriter writer = mapper.writer().withRootName("wrapper"); in testRootUsingExplicitConfig()166 ObjectReader reader = mapper.readerFor(Bean.class).withRootName("wrapper"); in testRootUsingExplicitConfig()172 json = wrapping.writer().withRootName("something").writeValueAsString(new Bean()); in testRootUsingExplicitConfig()174 json = wrapping.writer().withRootName("").writeValueAsString(new Bean()); in testRootUsingExplicitConfig()181 bean = wrapping.readerFor(Bean.class).withRootName("").readValue(json); in testRootUsingExplicitConfig()
207 ObjectWriter newW = w.withRootName("foo"); in testRootValueSettings()209 assertSame(newW, newW.withRootName(PropertyName.construct("foo"))); in testRootValueSettings()211 newW = w.withRootName((String) null); in testRootValueSettings()213 assertSame(newW, newW.withRootName((PropertyName) null)); in testRootValueSettings()
266 newR = newR.withRootName(PropertyName.construct("foo")); in testDeprecatedSettings()268 assertSame(newR, newR.withRootName(PropertyName.construct("foo"))); in testDeprecatedSettings()
114 assertSame(config, config.withRootName((PropertyName) null)); // defaults to 'none' in testMisc()116 DeserializationConfig newConfig = config.withRootName(PropertyName.construct("foobar")); in testMisc()119 assertSame(config, config.withRootName(PropertyName.construct("foobar"))); in testMisc()
38 assertSame(config, config.withRootName((PropertyName) null)); // defaults to 'none' in testSerConfig()40 newConfig = config.withRootName(PropertyName.construct("foobar")); in testSerConfig()
529 public abstract T withRootName(PropertyName rootName); in withRootName() method in MapperConfigBase531 public T withRootName(String rootName) { in withRootName() method in MapperConfigBase533 return withRootName((PropertyName) null); in withRootName()535 return withRootName(PropertyName.construct(rootName)); in withRootName()
527 public ObjectWriter withRootName(String rootName) { in withRootName() method in ObjectWriter528 return _new(this, _config.withRootName(rootName)); in withRootName()534 public ObjectWriter withRootName(PropertyName rootName) { in withRootName() method in ObjectWriter535 return _new(this, _config.withRootName(rootName)); in withRootName()549 return _new(this, _config.withRootName(PropertyName.NO_NAME)); in withoutRootName()
665 public ObjectReader withRootName(String rootName) { in withRootName() method in ObjectReader666 return _with(_config.withRootName(rootName)); in withRootName()672 public ObjectReader withRootName(PropertyName rootName) { in withRootName() method in ObjectReader673 return _with(_config.withRootName(rootName)); in withRootName()687 return _with(_config.withRootName(PropertyName.NO_NAME)); in withoutRootName()
305 public SerializationConfig withRootName(PropertyName rootName) { in withRootName() method in SerializationConfig
326 public DeserializationConfig withRootName(PropertyName rootName) { in withRootName() method in DeserializationConfig