1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (1.8.0_162) on Tue Mar 24 10:51:53 PDT 2020 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>JsonEnumDefaultValue (Jackson-annotations 2.11.0.rc1 API)</title> 8<meta name="date" content="2020-03-24"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="JsonEnumDefaultValue (Jackson-annotations 2.11.0.rc1 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22</script> 23<noscript> 24<div>JavaScript is disabled on your browser.</div> 25</noscript> 26<!-- ========= START OF TOP NAVBAR ======= --> 27<div class="topNav"><a name="navbar.top"> 28<!-- --> 29</a> 30<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 31<a name="navbar.top.firstrow"> 32<!-- --> 33</a> 34<ul class="navList" title="Navigation"> 35<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li> 36<li class="navBarCell1Rev">Class</li> 37<li><a href="class-use/JsonEnumDefaultValue.html">Use</a></li> 38<li><a href="package-tree.html">Tree</a></li> 39<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 40<li><a href="../../../../index-all.html">Index</a></li> 41<li><a href="../../../../help-doc.html">Help</a></li> 42</ul> 43</div> 44<div class="subNav"> 45<ul class="navList"> 46<li><a href="../../../../com/fasterxml/jackson/annotation/JsonCreator.Mode.html" title="enum in com.fasterxml.jackson.annotation"><span class="typeNameLink">Prev Class</span></a></li> 47<li><a href="../../../../com/fasterxml/jackson/annotation/JsonFilter.html" title="annotation in com.fasterxml.jackson.annotation"><span class="typeNameLink">Next Class</span></a></li> 48</ul> 49<ul class="navList"> 50<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/JsonEnumDefaultValue.html" target="_top">Frames</a></li> 51<li><a href="JsonEnumDefaultValue.html" target="_top">No Frames</a></li> 52</ul> 53<ul class="navList" id="allclasses_navbar_top"> 54<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 55</ul> 56<div> 57<script type="text/javascript"><!-- 58 allClassesLink = document.getElementById("allclasses_navbar_top"); 59 if(window==top) { 60 allClassesLink.style.display = "block"; 61 } 62 else { 63 allClassesLink.style.display = "none"; 64 } 65 //--> 66</script> 67</div> 68<div> 69<ul class="subNavList"> 70<li>Summary: </li> 71<li>Field | </li> 72<li>Required | </li> 73<li>Optional</li> 74</ul> 75<ul class="subNavList"> 76<li>Detail: </li> 77<li>Field | </li> 78<li>Element</li> 79</ul> 80</div> 81<a name="skip.navbar.top"> 82<!-- --> 83</a></div> 84<!-- ========= END OF TOP NAVBAR ========= --> 85<!-- ======== START OF CLASS DATA ======== --> 86<div class="header"> 87<div class="subTitle">com.fasterxml.jackson.annotation</div> 88<h2 title="Annotation Type JsonEnumDefaultValue" class="title">Annotation Type JsonEnumDefaultValue</h2> 89</div> 90<div class="contentContainer"> 91<div class="description"> 92<ul class="blockList"> 93<li class="blockList"> 94<hr> 95<br> 96<pre><a href="https://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Target.html?is-external=true" title="class or interface in java.lang.annotation">@Target</a>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Target.html?is-external=true#value--" title="class or interface in java.lang.annotation">value</a>=<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/annotation/ElementType.html?is-external=true#FIELD" title="class or interface in java.lang.annotation">FIELD</a>) 97 <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Retention.html?is-external=true" title="class or interface in java.lang.annotation">@Retention</a>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/annotation/Retention.html?is-external=true#value--" title="class or interface in java.lang.annotation">value</a>=<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/annotation/RetentionPolicy.html?is-external=true#RUNTIME" title="class or interface in java.lang.annotation">RUNTIME</a>) 98public @interface <span class="memberNameLabel">JsonEnumDefaultValue</span></pre> 99<div class="block">Marker annotation that can be used to define a default value 100 used when trying to deserialize unknown Enum values. 101 <p> 102 This annotation is only applicable when the <code>@READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE</code> 103 deserialization feature is enabled. 104 <p> 105 If the more than one enum value is marked with this annotation, 106 the first one to be detected will be used. Which one exactly is undetermined.</div> 107</li> 108</ul> 109</div> 110</div> 111<!-- ========= END OF CLASS DATA ========= --> 112<!-- ======= START OF BOTTOM NAVBAR ====== --> 113<div class="bottomNav"><a name="navbar.bottom"> 114<!-- --> 115</a> 116<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 117<a name="navbar.bottom.firstrow"> 118<!-- --> 119</a> 120<ul class="navList" title="Navigation"> 121<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li> 122<li class="navBarCell1Rev">Class</li> 123<li><a href="class-use/JsonEnumDefaultValue.html">Use</a></li> 124<li><a href="package-tree.html">Tree</a></li> 125<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 126<li><a href="../../../../index-all.html">Index</a></li> 127<li><a href="../../../../help-doc.html">Help</a></li> 128</ul> 129</div> 130<div class="subNav"> 131<ul class="navList"> 132<li><a href="../../../../com/fasterxml/jackson/annotation/JsonCreator.Mode.html" title="enum in com.fasterxml.jackson.annotation"><span class="typeNameLink">Prev Class</span></a></li> 133<li><a href="../../../../com/fasterxml/jackson/annotation/JsonFilter.html" title="annotation in com.fasterxml.jackson.annotation"><span class="typeNameLink">Next Class</span></a></li> 134</ul> 135<ul class="navList"> 136<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/JsonEnumDefaultValue.html" target="_top">Frames</a></li> 137<li><a href="JsonEnumDefaultValue.html" target="_top">No Frames</a></li> 138</ul> 139<ul class="navList" id="allclasses_navbar_bottom"> 140<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 141</ul> 142<div> 143<script type="text/javascript"><!-- 144 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 145 if(window==top) { 146 allClassesLink.style.display = "block"; 147 } 148 else { 149 allClassesLink.style.display = "none"; 150 } 151 //--> 152</script> 153</div> 154<div> 155<ul class="subNavList"> 156<li>Summary: </li> 157<li>Field | </li> 158<li>Required | </li> 159<li>Optional</li> 160</ul> 161<ul class="subNavList"> 162<li>Detail: </li> 163<li>Field | </li> 164<li>Element</li> 165</ul> 166</div> 167<a name="skip.navbar.bottom"> 168<!-- --> 169</a></div> 170<!-- ======== END OF BOTTOM NAVBAR ======= --> 171<p class="legalCopy"><small>Copyright © 2008–2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 172</body> 173</html> 174