Java Code Examples for com.fasterxml.jackson.databind.ObjectMapper#readerForUpdating()
The following examples show how to use
com.fasterxml.jackson.databind.ObjectMapper#readerForUpdating() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BarExtSerializer.java From powsybl-core with Mozilla Public License 2.0 | 5 votes |
@Override public BarExt deserializeAndUpdate(JsonParser jsonParser, DeserializationContext deserializationContext, BarExt parameters) throws IOException { ObjectMapper objectMapper = createMapper(); ObjectReader objectReader = objectMapper.readerForUpdating(parameters); BarExt updatedParameters = objectReader.readValue(jsonParser, BarExt.class); return updatedParameters; }
Example 2
Source File: FooExtSerializer.java From powsybl-core with Mozilla Public License 2.0 | 5 votes |
@Override public FooExt deserializeAndUpdate(JsonParser jsonParser, DeserializationContext deserializationContext, FooExt parameters) throws IOException { ObjectMapper objectMapper = createMapper(); ObjectReader objectReader = objectMapper.readerForUpdating(parameters); FooExt updatedParameters = objectReader.readValue(jsonParser, FooExt.class); return updatedParameters; }
Example 3
Source File: LoadFlowParametersTest.java From powsybl-core with Mozilla Public License 2.0 | 5 votes |
@Override public DummyExtension deserializeAndUpdate(JsonParser jsonParser, DeserializationContext deserializationContext, DummyExtension parameters) throws IOException { ObjectMapper objectMapper = createMapper(); ObjectReader objectReader = objectMapper.readerForUpdating(parameters); DummyExtension updatedParameters = objectReader.readValue(jsonParser, DummyExtension.class); return updatedParameters; }
Example 4
Source File: JsonLoadFlowParametersTest.java From powsybl-core with Mozilla Public License 2.0 | 5 votes |
@Override public DummyExtension deserializeAndUpdate(JsonParser jsonParser, DeserializationContext deserializationContext, DummyExtension parameters) throws IOException { ObjectMapper objectMapper = createMapper(); ObjectReader objectReader = objectMapper.readerForUpdating(parameters); DummyExtension updatedParameters = objectReader.readValue(jsonParser, DummyExtension.class); return updatedParameters; }
Example 5
Source File: JsonSecurityAnalysisParametersTest.java From powsybl-core with Mozilla Public License 2.0 | 5 votes |
@Override public DummyExtension deserializeAndUpdate(JsonParser jsonParser, DeserializationContext deserializationContext, DummyExtension parameters) throws IOException { ObjectMapper objectMapper = createMapper(); ObjectReader objectReader = objectMapper.readerForUpdating(parameters); DummyExtension updatedParameters = objectReader.readValue(jsonParser, DummyExtension.class); return updatedParameters; }
Example 6
Source File: JsonSensitivityComputationParametersTest.java From powsybl-core with Mozilla Public License 2.0 | 5 votes |
@Override public DummyExtension deserializeAndUpdate(JsonParser jsonParser, DeserializationContext deserializationContext, DummyExtension parameters) throws IOException { ObjectMapper objectMapper = createMapper(); ObjectReader objectReader = objectMapper.readerForUpdating(parameters); DummyExtension updatedParameters = objectReader.readValue(jsonParser, DummyExtension.class); return updatedParameters; }