Home
last modified time | relevance | path

Searched refs:withRootName (Results 1 – 10 of 10) sorted by relevance

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DTestRootName.java162 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()
DObjectWriterTest.java207 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()
DObjectReaderTest.java266 newR = newR.withRootName(PropertyName.construct("foo")); in testDeprecatedSettings()
268 assertSame(newR, newR.withRootName(PropertyName.construct("foo"))); in testDeprecatedSettings()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/cfg/
DDeserializationConfigTest.java114 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()
DSerConfigTest.java38 assertSame(config, config.withRootName((PropertyName) null)); // defaults to 'none' in testSerConfig()
40 newConfig = config.withRootName(PropertyName.construct("foobar")); in testSerConfig()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DMapperConfigBase.java529 public abstract T withRootName(PropertyName rootName); in withRootName() method in MapperConfigBase
531 public T withRootName(String rootName) { in withRootName() method in MapperConfigBase
533 return withRootName((PropertyName) null); in withRootName()
535 return withRootName(PropertyName.construct(rootName)); in withRootName()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DObjectWriter.java527 public ObjectWriter withRootName(String rootName) { in withRootName() method in ObjectWriter
528 return _new(this, _config.withRootName(rootName)); in withRootName()
534 public ObjectWriter withRootName(PropertyName rootName) { in withRootName() method in ObjectWriter
535 return _new(this, _config.withRootName(rootName)); in withRootName()
549 return _new(this, _config.withRootName(PropertyName.NO_NAME)); in withoutRootName()
DObjectReader.java665 public ObjectReader withRootName(String rootName) { in withRootName() method in ObjectReader
666 return _with(_config.withRootName(rootName)); in withRootName()
672 public ObjectReader withRootName(PropertyName rootName) { in withRootName() method in ObjectReader
673 return _with(_config.withRootName(rootName)); in withRootName()
687 return _with(_config.withRootName(PropertyName.NO_NAME)); in withoutRootName()
DSerializationConfig.java305 public SerializationConfig withRootName(PropertyName rootName) { in withRootName() method in SerializationConfig
DDeserializationConfig.java326 public DeserializationConfig withRootName(PropertyName rootName) { in withRootName() method in DeserializationConfig