Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Jackson Data Binding Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Databind Source Code files are provided in the source packge (jackson-databind-2.14.0-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Databind Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/databind/ser/PropertyFilter.java
package com.fasterxml.jackson.databind.ser; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor; import com.fasterxml.jackson.databind.node.ObjectNode; /** * Interface that defines API for filter objects use (as configured * using {@link com.fasterxml.jackson.annotation.JsonFilter}) * for filtering bean properties to serialize. *<p> * Note that this is the replacement for <code>BeanPropertyFilter</code>, * which is replaced because it was too closely bound to Bean properties * and would not work with {@link java.util.Map}s or "any getters". *<p> * Note that since this is an interface, it is * strongly recommended that custom implementations extend * {@link com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter}, * to avoid backwards compatibility issues in case interface needs to change. * * @since 2.3 */ public interface PropertyFilter { /** * Method called by {@link BeanSerializer} to let the filter decide what to do with * given bean property value: * the usual choices are to either filter out (i.e. * do nothing) or write using given {@link PropertyWriter}, although filters * can choose other to do something different altogether. *<p> * Typical implementation is something like: *<pre> * if (include(writer)) { * writer.serializeAsField(pojo, gen, prov); * } *</pre> * * @param pojo Object that contains property value to serialize * @param gen Generator use for serializing value * @param prov Provider that can be used for accessing dynamic aspects of serialization * processing * @param writer Object called to do actual serialization of the field, if not filtered out */ public void serializeAsField(Object pojo, JsonGenerator gen, SerializerProvider prov, PropertyWriter writer) throws Exception; /** * Method called by container to let the filter decide what to do with given element * value: * the usual choices are to either filter out (i.e. * do nothing) or write using given {@link PropertyWriter}, although filters * can choose other to do something different altogether. *<p> * Typical implementation is something like: *<pre> * if (include(writer)) { * writer.serializeAsElement(pojo, gen, prov); * } *</pre> * * @param elementValue Element value being serializerd * @param gen Generator use for serializing value * @param prov Provider that can be used for accessing dynamic aspects of serialization * processing * @param writer Object called to do actual serialization of the field, if not filtered out */ public void serializeAsElement(Object elementValue, JsonGenerator gen, SerializerProvider prov, PropertyWriter writer) throws Exception; /** * Method called by {@link BeanSerializer} to let the filter determine whether, and in what * form the given property exist within the parent, or root, schema. Filters can omit * adding the property to the node, or choose the form of the schema value for the property. *<p> * Typical implementation is something like: *<pre> * if (include(writer)) { * writer.depositSchemaProperty(propertiesNode, provider); * } *</pre> * * @param writer Bean property writer to use to create schema value * @param propertiesNode Node which the given property would exist within * @param provider Provider that can be used for accessing dynamic aspects of serialization * processing * * @deprecated Since 2.3: new code should use the alternative <code>depositSchemaProperty</code> * method */ @Deprecated public void depositSchemaProperty(PropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider) throws JsonMappingException; /** * Method called by {@link BeanSerializer} to let the filter determine whether, and in what * form the given property exist within the parent, or root, schema. Filters can omit * adding the property to the node, or choose the form of the schema value for the property *<p> * Typical implementation is something like: *<pre> * if (include(writer)) { * writer.depositSchemaProperty(objectVisitor, provider); * } *</pre> * * @param writer Bean property serializer to use to create schema value * @param objectVisitor JsonObjectFormatVisitor which should be aware of * the property's existence * @param provider Provider that can be used for accessing dynamic aspects of serialization * processing */ public void depositSchemaProperty(PropertyWriter writer, JsonObjectFormatVisitor objectVisitor, SerializerProvider provider) throws JsonMappingException; }
⏎ com/fasterxml/jackson/databind/ser/PropertyFilter.java
Or download all of them as a single archive file:
File name: jackson-databind-2.14.0-sources.jar File size: 1187952 bytes Release date: 2022-11-05 Download
⇒ Jackson Annotations Source Code
⇐ Download and Install Jackson Binary Package
2022-03-29, 109455👍, 0💬
Popular Posts:
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
JasperReports, the world's most popular open source business intelligence and reporting engine and J...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...