/** * Method for constructing a new instance with configuration that * uses specified View for filtering. *<p> * Note that the method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectReader withView(Class<?> activeView) { return _with(_config.withView(activeView)); }
/** * Factory method for constructing {@link ObjectReader} that will * deserialize objects using specified JSON View (filter). */ public ObjectReader readerWithView(Class<?> view) { return _newReader(getDeserializationConfig().withView(view)); }
/** * Method for constructing a new instance with configuration that * uses specified View for filtering. *<p> * Note that the method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectReader withView(Class<?> activeView) { return _with(_config.withView(activeView)); }
/** * Method for constructing a new instance with configuration that * uses specified View for filtering. *<p> * Note that the method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectReader withView(Class<?> activeView) { return _with(_config.withView(activeView)); }
/** * Method for constructing a new instance with configuration that * uses specified View for filtering. *<p> * Note that the method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectReader withView(Class<?> activeView) { return _with(_config.withView(activeView)); }
/** * Method for constructing a new instance with configuration that * uses specified View for filtering. *<p> * Note that the method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectReader withView(Class<?> activeView) { return _with(_config.withView(activeView)); }
/** * Method for constructing a new instance with configuration that * uses specified View for filtering. *<p> * Note that the method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectReader withView(Class<?> activeView) { return _with(_config.withView(activeView)); }
/** * Method for constructing a new instance with configuration that * uses specified View for filtering. *<p> * Note that the method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectReader withView(Class<?> activeView) { DeserializationConfig newConfig = _config.withView(activeView); return (newConfig == _config) ? this : new ObjectReader(this, newConfig); }
/** * Factory method for constructing {@link ObjectReader} that will * deserialize objects using specified JSON View (filter). */ public ObjectReader readerWithView(Class<?> view) { return _newReader(getDeserializationConfig().withView(view)); }
/** * Factory method for constructing {@link ObjectReader} that will * deserialize objects using specified JSON View (filter). */ @SuppressWarnings("unchecked") public <T extends ObjectReader> T readerWithView(Class<?> view) { return (T) _newReader(getDeserializationConfig().withView(view)); }
/** * Factory method for constructing {@link ObjectReader} that will * deserialize objects using specified JSON View (filter). */ @SuppressWarnings("unchecked") public <T extends ObjectReader> T readerWithView(Class<?> view) { return (T) _newReader(getDeserializationConfig().withView(view)); }
/** * Factory method for constructing {@link ObjectReader} that will * deserialize objects using specified JSON View (filter). */ public ObjectReader readerWithView(Class<?> view) { return _newReader(getDeserializationConfig().withView(view)); }
/** * Factory method for constructing {@link ObjectReader} that will * deserialize objects using specified JSON View (filter). */ public ObjectReader readerWithView(Class<?> view) { return new ObjectReader(this, getDeserializationConfig().withView(view)); }
/** * Factory method for constructing {@link ObjectReader} that will * deserialize objects using specified JSON View (filter). */ public ObjectReader readerWithView(Class<?> view) { return new ObjectReader(this, getDeserializationConfig().withView(view)); }
public static ObjectMapper withView(final ObjectMapper mapper, final Class<?> view) { mapper.enable(MapperFeature.DEFAULT_VIEW_INCLUSION); mapper.setConfig(mapper.getSerializationConfig().withView(view)); mapper.setConfig(mapper.getDeserializationConfig().withView(view)); return mapper; }
setConfig(getDeserializationConfig().withView(Views.Normal.class));