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 Annotations Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Annotations Source Code files are provided in the source packge (jackson-annotations-2.14.0-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Annotations Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/annotation/JsonSubTypes.java
package com.fasterxml.jackson.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotation used with {@link JsonTypeInfo} to indicate subtypes of serializable * polymorphic types, and to associate logical names used within JSON content * (which is more portable than using physical Java class names). *<p> * Note that just annotating a property or base type with this annotation does * NOT enable polymorphic type handling: in addition, {@link JsonTypeInfo} * or equivalent (such as enabling of so-called "default typing") annotation * is needed, and only in such case is subtype information used. */ @Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) @JacksonAnnotation public @interface JsonSubTypes { /** * Subtypes of the annotated type (annotated class, or property value type * associated with the annotated method). These will be checked recursively * so that types can be defined by only including direct subtypes. */ public Type[] value(); /** * Subtypes of the annotated type may have logical type name and names properties. * When set to true, logical type name and names are going to be checked * for repeated values. Repeated values are considered a definition violation * during that check. * * @since 2.14 */ public boolean failOnRepeatedNames() default false; /** * Definition of a subtype, along with optional name(s). If no name is defined * (empty Strings are ignored), class of the type will be checked for {@link JsonTypeName} * annotation; and if that is also missing or empty, a default * name will be constructed by type id mechanism. * Default name is usually based on class name. */ public @interface Type { /** * Class of the subtype */ public Class<?> value(); /** * Logical type name used as the type identifier for the class, if defined; empty * String means "not defined". Used unless {@link #names} is defined as non-empty. */ public String name() default ""; /** * (optional) Logical type names used as the type identifier for the class: used if * more than one type name should be associated with the same type. * * @since 2.12 */ public String[] names() default {}; } }
⏎ com/fasterxml/jackson/annotation/JsonSubTypes.java
Or download all of them as a single archive file:
File name: jackson-annotations-2.14.0-sources.jar File size: 80402 bytes Release date: 2022-11-05 Download
⇒ Jackson Dataformat Extensions
⇐ Jackson Data Binding Source Code
2022-02-19, 57378👍, 0💬
Popular Posts:
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
How to run "javac" command from JDK tools.jar file? "javac" is the Java compiler command that allows...
Saxon-HE (home edition) is an open source product available under the Mozilla Public License. It pro...
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...