http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/fe5928f7/content/site/apidocs/org/apache/juneau/ObjectMap.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/ObjectMap.html b/content/site/apidocs/org/apache/juneau/ObjectMap.html index fbde366..7ec80bb 100644 --- a/content/site/apidocs/org/apache/juneau/ObjectMap.html +++ b/content/site/apidocs/org/apache/juneau/ObjectMap.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -131,7 +131,7 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public class <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.103">ObjectMap</a> +<pre>public class <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.104">ObjectMap</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></pre> <div class="block">Java implementation of a JSON object. @@ -435,215 +435,242 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa </td> </tr> <tr id="i20" class="altColor"> -<td class="colFirst"><code><T> T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.Class-java.lang.String-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type.</div> -</td> +<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.Object-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> key)</code> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code><T> T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.Class-java.lang.String-T-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, - T def)</code> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Class-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code> <div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code><T> T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-org.apache.juneau.ClassMeta-java.lang.String-">get</a></span>(<a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type.</div> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Class-"><code>get(String,Class)</code></a>, but allows for complex data types consisting of collections or maps.</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code><T> T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-org.apache.juneau.ClassMeta-java.lang.String-T-">get</a></span>(<a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, - T def)</code> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type.</div> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getAt-java.lang.String-java.lang.Class-">getAt</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Class-"><code>get(String,Class)</code></a>, but the key is a slash-delimited path used to traverse + entries in this POJO.</div> </td> </tr> <tr id="i24" class="altColor"> -<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.Object-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> key)</code> </td> -</tr> -<tr id="i25" class="rowColor"> <td class="colFirst"><code><T> T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-org.apache.juneau.transform.PojoSwap-java.lang.String-">get</a></span>(<a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</a><T,?> pojoSwap, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but converts the raw value to the specified class type using the specified - beanFilter.</div> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getAt-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-">getAt</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#getAt-java.lang.String-java.lang.Class-"><code>getAt(String,Class)</code></a>, but allows for conversion to complex maps and collections.</div> </td> </tr> -<tr id="i26" class="altColor"> -<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Object-">get</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> def)</code> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but returns the default value if the key could not be found.</div> -</td> -</tr> -<tr id="i27" class="rowColor"> -<td class="colFirst"><code><T> T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getAt-java.lang.Class-java.lang.String-">getAt</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</code> -<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.Class-java.lang.String-"><code>get(Class,String)</code></a>, but the key is a slash-delimited path used to traverse - entries in this POJO.</div> -</td> -</tr> -<tr id="i28" class="altColor"> +<tr id="i25" class="rowColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getBeanSession--">getBeanSession</a></span>()</code> <div class="block">Returns the <a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau"><code>BeanSession</code></a> currently associated with this map.</div> </td> </tr> -<tr id="i29" class="rowColor"> +<tr id="i26" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getBoolean-java.lang.String-">getBoolean</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>.</div> </td> </tr> -<tr id="i30" class="altColor"> +<tr id="i27" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getBoolean-java.lang.String-java.lang.Boolean-">getBoolean</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> defVal)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>.</div> </td> </tr> -<tr id="i31" class="rowColor"> +<tr id="i28" class="altColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getClassMeta-java.lang.String-">getClassMeta</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the class type of the object at the specified index.</div> </td> </tr> -<tr id="i32" class="altColor"> +<tr id="i29" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getFirstKey--">getFirstKey</a></span>()</code> <div class="block">Returns the first key in the map.</div> </td> </tr> -<tr id="i33" class="rowColor"> +<tr id="i30" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getInt-java.lang.String-">getInt</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the specified entry value converted to an <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>.</div> </td> </tr> -<tr id="i34" class="altColor"> +<tr id="i31" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getInt-java.lang.String-java.lang.Integer-">getInt</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> defVal)</code> <div class="block">Returns the specified entry value converted to an <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>.</div> </td> </tr> -<tr id="i35" class="rowColor"> +<tr id="i32" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><?></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getList-java.lang.String-">getList</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>.</div> </td> </tr> -<tr id="i36" class="altColor"> +<tr id="i33" class="rowColor"> +<td class="colFirst"><code><E> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><E></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getList-java.lang.String-java.lang.Class-java.util.List-">getList</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><E> elementType, + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><E> def)</code> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#getList-java.lang.String-java.util.List-"><code>getList(String, List)</code></a> except converts the elements to the specified types.</div> +</td> +</tr> +<tr id="i34" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><?></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getList-java.lang.String-java.util.List-">getList</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><?> defVal)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a>.</div> </td> </tr> -<tr id="i37" class="rowColor"> +<tr id="i35" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getLong-java.lang.String-">getLong</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a>.</div> </td> </tr> -<tr id="i38" class="altColor"> +<tr id="i36" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getLong-java.lang.String-java.lang.Long-">getLong</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a> defVal)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a>.</div> </td> </tr> -<tr id="i39" class="rowColor"> +<tr id="i37" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getMap-java.lang.String-">getMap</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>.</div> </td> </tr> -<tr id="i40" class="altColor"> +<tr id="i38" class="altColor"> +<td class="colFirst"><code><K,V> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getMap-java.lang.String-java.lang.Class-java.lang.Class-java.util.Map-">getMap</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><K> keyType, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><V> valType, + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V> def)</code> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#getMap-java.lang.String-java.util.Map-"><code>getMap(String, Map)</code></a> except converts the keys and values to the specified types.</div> +</td> +</tr> +<tr id="i39" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getMap-java.lang.String-java.util.Map-">getMap</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> defVal)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>.</div> </td> </tr> -<tr id="i41" class="rowColor"> +<tr id="i40" class="altColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectList.html" title="class in org.apache.juneau">ObjectList</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getObjectList-java.lang.String-">getObjectList</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the specified entry value converted to a <a href="../../../org/apache/juneau/ObjectList.html" title="class in org.apache.juneau"><code>ObjectList</code></a>.</div> </td> </tr> -<tr id="i42" class="altColor"> +<tr id="i41" class="rowColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectList.html" title="class in org.apache.juneau">ObjectList</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getObjectList-java.lang.String-org.apache.juneau.ObjectList-">getObjectList</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="../../../org/apache/juneau/ObjectList.html" title="class in org.apache.juneau">ObjectList</a> defVal)</code> <div class="block">Returns the specified entry value converted to a <a href="../../../org/apache/juneau/ObjectList.html" title="class in org.apache.juneau"><code>ObjectList</code></a>.</div> </td> </tr> -<tr id="i43" class="rowColor"> +<tr id="i42" class="altColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getObjectMap-java.lang.String-">getObjectMap</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>.</div> </td> </tr> -<tr id="i44" class="altColor"> +<tr id="i43" class="rowColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getObjectMap-java.lang.String-org.apache.juneau.ObjectMap-">getObjectMap</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> defVal)</code> <div class="block">Returns the specified entry value converted to a <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau"><code>ObjectMap</code></a>.</div> </td> </tr> -<tr id="i45" class="rowColor"> +<tr id="i44" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getString-java.lang.String-">getString</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>.</div> </td> </tr> -<tr id="i46" class="altColor"> +<tr id="i45" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getString-java.lang.String-java.lang.String-">getString</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defVal)</code> <div class="block">Returns the specified entry value converted to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>.</div> </td> </tr> -<tr id="i47" class="rowColor"> +<tr id="i46" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getStringArray-java.lang.String-">getStringArray</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> <div class="block">Specialized method that calls <a href="../../../org/apache/juneau/ObjectMap.html#getString-java.lang.String-"><code>getString(String)</code></a> and splits the results as a simple comma-delimited list.</div> </td> </tr> -<tr id="i48" class="altColor"> +<tr id="i47" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getStringArray-java.lang.String-java.lang.String:A-">getStringArray</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] def)</code> <div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#getStringArray-java.lang.String-"><code>getStringArray(String)</code></a> but returns a default value if the value cannot be found.</div> </td> </tr> +<tr id="i48" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getSwapped-java.lang.String-org.apache.juneau.transform.PojoSwap-">getSwapped</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</a><T,?> pojoSwap)</code> +<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but converts the raw value to the specified class type using the specified + POJO swap.</div> +</td> +</tr> <tr id="i49" class="rowColor"> +<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getWithDefault-java.lang.String-java.lang.Object-">getWithDefault</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> def)</code> +<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but returns the default value if the key could not be found.</div> +</td> +</tr> +<tr id="i50" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getWithDefault-java.lang.String-T-java.lang.Class-">getWithDefault</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + T def, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Class-"><code>get(String,Class)</code></a> but returns a default value if the value does not exist.</div> +</td> +</tr> +<tr id="i51" class="rowColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#getWithDefault-java.lang.String-T-java.lang.reflect.Type-java.lang.reflect.Type...-">getWithDefault</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + T def, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>get(String,Type,Type...)</code></a> but returns a default value if the value does not exist.</div> +</td> +</tr> +<tr id="i52" class="altColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#include-java.lang.String...-">include</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... keys)</code> <div class="block">Returns a copy of this <code>ObjectMap</code> with only the specified keys.</div> </td> </tr> -<tr id="i50" class="altColor"> +<tr id="i53" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#keySet--">keySet</a></span>()</code> </td> </tr> -<tr id="i51" class="rowColor"> +<tr id="i54" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#postAt-java.lang.String-java.lang.Object-">postAt</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> <div class="block">Similar to <a href="../../../org/apache/juneau/ObjectMap.html#putAt-java.lang.String-java.lang.Object-"><code>putAt(String,Object)</code></a>, but used to append to collections and arrays.</div> </td> </tr> -<tr id="i52" class="altColor"> +<tr id="i55" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#putAt-java.lang.String-java.lang.Object-">putAt</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> @@ -651,73 +678,73 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa POJO.</div> </td> </tr> -<tr id="i53" class="rowColor"> +<tr id="i56" class="altColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#putIfEmpty-java.lang.String-java.lang.Object-">putIfEmpty</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> val)</code> <div class="block">Sets a value in this map if the entry does not exist or the value is <jk>null</jk> or an empty string.</div> </td> </tr> -<tr id="i54" class="altColor"> +<tr id="i57" class="rowColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#putIfNull-java.lang.String-java.lang.Object-">putIfNull</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> val)</code> <div class="block">Sets a value in this map if the entry does not exist or the value is <jk>null</jk>.</div> </td> </tr> -<tr id="i55" class="rowColor"> +<tr id="i58" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#putJson-java.lang.String-java.lang.String-">putJson</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> json)</code> <div class="block">Convenience method for inserting JSON directly into an attribute on this object.</div> </td> </tr> -<tr id="i56" class="altColor"> -<td class="colFirst"><code><T> T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#remove-java.lang.Class-java.lang.String-T-">remove</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, - T defVal)</code> -<div class="block">Equivalent to calling <code>get(class,key,def)</code> followed by <code>remove(key);</code></div> -</td> -</tr> -<tr id="i57" class="rowColor"> +<tr id="i59" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#removeAll-java.util.Collection-">removeAll</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> keys)</code> <div class="block">Convenience method for removing several keys at once.</div> </td> </tr> -<tr id="i58" class="altColor"> +<tr id="i60" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#removeAll-java.lang.String...-">removeAll</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... keys)</code> <div class="block">Convenience method for removing several keys at once.</div> </td> </tr> -<tr id="i59" class="rowColor"> +<tr id="i61" class="rowColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#removeWithDefault-java.lang.String-T-java.lang.Class-">removeWithDefault</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + T defVal, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code> +<div class="block">Equivalent to calling <code>get(class,key,def)</code> followed by <code>remove(key);</code></div> +</td> +</tr> +<tr id="i62" class="altColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#serializeTo-java.io.Writer-">serializeTo</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w)</code> <div class="block">Convenience method for serializing this map to the specified <code>Writer</code> using the <a href="../../../org/apache/juneau/json/JsonSerializer.html#DEFAULT"><code>JsonSerializer.DEFAULT</code></a> serializer.</div> </td> </tr> -<tr id="i60" class="altColor"> +<tr id="i63" class="rowColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#setBeanSession-org.apache.juneau.BeanSession-">setBeanSession</a></span>(<a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session)</code> <div class="block">Override the default bean session used for converting POJOs.</div> </td> </tr> -<tr id="i61" class="rowColor"> +<tr id="i64" class="altColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#setInner-java.util.Map-">setInner</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> inner)</code> <div class="block">Set an inner map in this map to allow for chained get calls.</div> </td> </tr> -<tr id="i62" class="altColor"> +<tr id="i65" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#toString--">toString</a></span>()</code> <div class="block">Serialize this object into a JSON string using the <a href="../../../org/apache/juneau/json/JsonSerializer.html#DEFAULT"><code>JsonSerializer.DEFAULT</code></a> serializer.</div> </td> </tr> -<tr id="i63" class="rowColor"> +<tr id="i66" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/ObjectMap.html#toString-org.apache.juneau.serializer.WriterSerializer-">toString</a></span>(<a href="../../../org/apache/juneau/serializer/WriterSerializer.html" title="class in org.apache.juneau.serializer">WriterSerializer</a> serializer)</code> <div class="block">Serialize this object into a string using the specified serializer.</div> @@ -779,7 +806,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockListLast"> <li class="blockList"> <h4>EMPTY_MAP</h4> -<pre>public static final <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.113">EMPTY_MAP</a></pre> +<pre>public static final <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.114">EMPTY_MAP</a></pre> <div class="block">An empty read-only ObjectMap.</div> </li> </ul> @@ -797,7 +824,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>ObjectMap</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.152">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a> s, +<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.153">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a> s, <a href="../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> p) throws <a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Construct an ObjectMap directly from a string using the specified parser.</div> @@ -816,7 +843,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>ObjectMap</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.171">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a> s) +<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.172">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a> s) throws <a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Shortcut for <code><jk>new</jk> ObjectMap(string,JsonParser.<jsf>DEFAULT</jsf>);</code></div> <dl> @@ -833,7 +860,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>ObjectMap</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.183">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r, +<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.184">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r, <a href="../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> p) throws <a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> @@ -854,7 +881,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>ObjectMap</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.195">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r) +<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.196">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r) throws <a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Shortcut for <code><jk>new</jk> ObjectMap(reader, JsonParser.<jsf>DEFAULT</jsf>)</code>.</div> @@ -873,7 +900,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>ObjectMap</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.209">ObjectMap</a>()</pre> +<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.210">ObjectMap</a>()</pre> <div class="block">Construct an empty JSON object (i.e. an empty <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util"><code>LinkedHashMap</code></a>).</div> </li> </ul> @@ -883,7 +910,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>ObjectMap</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.218">ObjectMap</a>(<a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session)</pre> +<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.219">ObjectMap</a>(<a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session)</pre> <div class="block">Construct an empty JSON object (i.e. an empty <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util"><code>LinkedHashMap</code></a>) with the specified bean context.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -897,7 +924,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockListLast"> <li class="blockList"> <h4>ObjectMap</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.227">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> m)</pre> +<pre>public <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.228">ObjectMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> m)</pre> <div class="block">Construct a JSON object and fill it with the contents from the specified <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -919,7 +946,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>setInner</h4> -<pre>public <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.256">setInner</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> inner)</pre> +<pre>public <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.257">setInner</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> inner)</pre> <div class="block">Set an inner map in this map to allow for chained get calls. <p> @@ -951,7 +978,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>findKeyIgnoreCase</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.269">findKeyIgnoreCase</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.270">findKeyIgnoreCase</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> <div class="block">Searches for the specified key in this map ignoring case.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -968,7 +995,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>setBeanSession</h4> -<pre>public <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.288">setBeanSession</a>(<a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session)</pre> +<pre>public <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.289">setBeanSession</a>(<a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session)</pre> <div class="block">Override the default bean session used for converting POJOs. <p> @@ -990,7 +1017,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>getBeanSession</h4> -<pre>public <a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.298">getBeanSession</a>()</pre> +<pre>public <a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.299">getBeanSession</a>()</pre> <div class="block">Returns the <a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau"><code>BeanSession</code></a> currently associated with this map.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -1004,7 +1031,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>append</h4> -<pre>public <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.312">append</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, +<pre>public <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.313">append</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre> <div class="block">Convenience method for adding multiple objects to this map. @@ -1025,7 +1052,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>appendAll</h4> -<pre>public <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.326">appendAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> m)</pre> +<pre>public <a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.327">appendAll</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> m)</pre> <div class="block">Convenience method for adding a contents of another map to this map. <p> @@ -1044,7 +1071,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>get</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.332">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> key)</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.333">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> key)</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util">get</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></dd> @@ -1053,145 +1080,203 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa </dl> </li> </ul> -<a name="get-java.lang.String-java.lang.Object-"> +<a name="get-java.lang.String-java.lang.Class-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>get</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.346">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> def)</pre> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but returns the default value if the key could not be found.</div> +<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.374">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</pre> +<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type. + + <p> + This is the preferred get method for simple types. + + <h5 class='section'>Examples:</h5> + <p class='bcode'> + ObjectMap m = <jk>new</jk> ObjectMap(<js>"..."</js>); + + <jc>// Value converted to a string.</jc> + String s = m.get(<js>"key1"</js>, String.<jk>class</jk>); + + <jc>// Value converted to a bean.</jc> + MyBean b = m.get(<js>"key2"</js>, MyBean.<jk>class</jk>); + + <jc>// Value converted to a bean array.</jc> + MyBean[] ba = m.get(<js>"key3"</js>, MyBean[].<jk>class</jk>); + + <jc>// Value converted to a linked-list of objects.</jc> + List l = m.get(<js>"key4"</js>, LinkedList.<jk>class</jk>); + + <jc>// Value converted to a map of object keys/values.</jc> + Map m2 = m.get(<js>"key5"</js>, TreeMap.<jk>class</jk>); + </p> + + <p> + See <a href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>BeanSession.convertToType(Object, ClassMeta)</code></a> for the list of valid data conversions.</div> <dl> +<dt><span class="paramLabel">Type Parameters:</span></dt> +<dd><code>T</code> - The class type returned.</dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>key</code> - The key.</dd> -<dd><code>def</code> - The default value if the entry doesn't exist.</dd> +<dd><code>type</code> - The class type returned.</dd> <dt><span class="returnLabel">Returns:</span></dt> -<dd>The value, or the default value if the entry doesn't exist.</dd> +<dd>The value, or <jk>null</jk> if the entry doesn't exist.</dd> </dl> </li> </ul> -<a name="get-java.lang.Class-java.lang.String-"> +<a name="get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>get</h4> -<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.362">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type. +<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.427">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</pre> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Class-"><code>get(String,Class)</code></a>, but allows for complex data types consisting of collections or maps. <p> - See <a href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>BeanSession.convertToType(Object, ClassMeta)</code></a> for the list of valid data conversions.</div> + The type can be a simple type (e.g. beans, strings, numbers) or parameterized type (collections/maps). + + <h5 class='section'>Examples:</h5> + <p class='bcode'> + ObjectMap m = <jk>new</jk> ObjectMap(<js>"..."</js>); + + <jc>// Value converted to a linked-list of strings.</jc> + List<String> l1 = m.get(<js>"key1"</js>, LinkedList.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Value converted to a linked-list of beans.</jc> + List<MyBean> l2 = m.get(<js>"key2"</js>, LinkedList.<jk>class</jk>, MyBean.<jk>class</jk>); + + <jc>// Value converted to a linked-list of linked-lists of strings.</jc> + List<List<String>> l3 = m.get(<js>"key3"</js>, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Value converted to a map of string keys/values.</jc> + Map<String,String> m1 = m.get(<js>"key4"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Value converted to a map containing string keys and values of lists containing beans.</jc> + Map<String,List<MyBean>> m2 = m.get(<js>"key5"</js>, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>); + </p> + + <p> + <code>Collection</code> classes are assumed to be followed by zero or one objects indicating the element type. + + <p> + <code>Map</code> classes are assumed to be followed by zero or two meta objects indicating the key and value types. + + <p> + The array can be arbitrarily long to indicate arbitrarily complex data structures. + + <p> + See <a href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>BeanSession.convertToType(Object, ClassMeta)</code></a> for the list of valid data conversions. + + <h5 class='section'>Notes:</h5> + <ul> + <li>Use the <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Class-"><code>get(String, Class)</code></a> method instead if you don't need a parameterized map/collection. + </ul></div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> -<dd><code>T</code> - The class type.</dd> +<dd><code>T</code> - The class type returned.</dd> <dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>type</code> - The class type.</dd> <dd><code>key</code> - The key.</dd> +<dd><code>type</code> - The class type returned.</dd> +<dd><code>args</code> - The class type parameters.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The value, or <jk>null</jk> if the entry doesn't exist.</dd> </dl> </li> </ul> -<a name="get-org.apache.juneau.transform.PojoSwap-java.lang.String-"> +<a name="getWithDefault-java.lang.String-java.lang.Object-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>get</h4> -<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.377">get</a>(<a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</a><T,?> pojoSwap, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key) - throws <a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but converts the raw value to the specified class type using the specified - beanFilter.</div> +<h4>getWithDefault</h4> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.438">getWithDefault</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> def)</pre> +<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but returns the default value if the key could not be found.</div> <dl> -<dt><span class="paramLabel">Type Parameters:</span></dt> -<dd><code>T</code> - The transformed class type.</dd> <dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>pojoSwap</code> - The swap class used to convert the raw type to a transformed type.</dd> <dd><code>key</code> - The key.</dd> +<dd><code>def</code> - The default value if the entry doesn't exist.</dd> <dt><span class="returnLabel">Returns:</span></dt> -<dd>The value, or <jk>null</jk> if the entry doesn't exist.</dd> -<dt><span class="throwsLabel">Throws:</span></dt> -<dd><code><a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - Thrown by the POJO swap if a problem occurred trying to parse the value.</dd> +<dd>The value, or the default value if the entry doesn't exist.</dd> </dl> </li> </ul> -<a name="get-java.lang.Class-java.lang.String-java.lang.Object-"> +<a name="getWithDefault-java.lang.String-java.lang.Object-java.lang.Class-"> <!-- --> -</a><a name="get-java.lang.Class-java.lang.String-T-"> +</a><a name="getWithDefault-java.lang.String-T-java.lang.Class-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>get</h4> -<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.404">get</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, - T def)</pre> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type. - - <p> - See <a href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>BeanSession.convertToType(Object, ClassMeta)</code></a> for the list of valid data conversions.</div> +<h4>getWithDefault</h4> +<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.452">getWithDefault</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + T def, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</pre> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Class-"><code>get(String,Class)</code></a> but returns a default value if the value does not exist.</div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> -<dd><code>T</code> - The class type.</dd> +<dd><code>T</code> - The class type returned.</dd> <dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>type</code> - The class type.</dd> <dd><code>key</code> - The key.</dd> -<dd><code>def</code> - The default value if the entry doesn't exist.</dd> +<dd><code>def</code> - The default value. Can be <jk>null</jk>.</dd> +<dd><code>type</code> - The class type returned.</dd> <dt><span class="returnLabel">Returns:</span></dt> -<dd>The value, or the default value if the entry doesn't exist.</dd> +<dd>The value, or <jk>null</jk> if the entry doesn't exist.</dd> </dl> </li> </ul> -<a name="get-org.apache.juneau.ClassMeta-java.lang.String-"> +<a name="getWithDefault-java.lang.String-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type:A-"> +<!-- --> +</a><a name="getWithDefault-java.lang.String-T-java.lang.reflect.Type-java.lang.reflect.Type...-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>get</h4> -<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.429">get</a>(<a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type. - - <p> - See <a href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>BeanSession.convertToType(Object, ClassMeta)</code></a> for the list of valid data conversions.</div> +<h4>getWithDefault</h4> +<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.466">getWithDefault</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + T def, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</pre> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>get(String,Type,Type...)</code></a> but returns a default value if the value does not exist.</div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> -<dd><code>T</code> - The class type.</dd> +<dd><code>T</code> - The class type returned.</dd> <dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>type</code> - The class type.</dd> <dd><code>key</code> - The key.</dd> +<dd><code>def</code> - The default value. Can be <jk>null</jk>.</dd> +<dd><code>type</code> - The class type returned.</dd> +<dd><code>args</code> - The class type parameters.</dd> <dt><span class="returnLabel">Returns:</span></dt> -<dd>The value, or the default value if the entry doesn't exist.</dd> +<dd>The value, or <jk>null</jk> if the entry doesn't exist.</dd> </dl> </li> </ul> -<a name="get-org.apache.juneau.ClassMeta-java.lang.String-java.lang.Object-"> -<!-- --> -</a><a name="get-org.apache.juneau.ClassMeta-java.lang.String-T-"> +<a name="getSwapped-java.lang.String-org.apache.juneau.transform.PojoSwap-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>get</h4> -<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.445">get</a>(<a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, - T def)</pre> -<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but casts or converts the value to the specified class type. - - <p> - See <a href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>BeanSession.convertToType(Object, ClassMeta)</code></a> for the list of valid data conversions.</div> +<h4>getSwapped</h4> +<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.483">getSwapped</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</a><T,?> pojoSwap) + throws <a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> +<div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>get()</code></a>, but converts the raw value to the specified class type using the specified + POJO swap.</div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> -<dd><code>T</code> - The class type.</dd> +<dd><code>T</code> - The transformed class type.</dd> <dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>type</code> - The class type.</dd> <dd><code>key</code> - The key.</dd> -<dd><code>def</code> - The default value if the entry doesn't exist.</dd> +<dd><code>pojoSwap</code> - The swap class used to convert the raw type to a transformed type.</dd> <dt><span class="returnLabel">Returns:</span></dt> -<dd>The value, or the default value if the entry doesn't exist.</dd> +<dd>The value, or <jk>null</jk> if the entry doesn't exist.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - Thrown by the POJO swap if a problem occurred trying to parse the value.</dd> </dl> </li> </ul> @@ -1201,7 +1286,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>find</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.458">find</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... keys)</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.503">find</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... keys)</pre> <div class="block">Returns the value for the first key in the list that has an entry in this map.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -1217,7 +1302,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>find</h4> -<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.479">find</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, +<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.524">find</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... keys)</pre> <div class="block">Returns the value for the first key in the list that has an entry in this map. @@ -1237,15 +1322,15 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa </dl> </li> </ul> -<a name="getAt-java.lang.Class-java.lang.String-"> +<a name="getAt-java.lang.String-java.lang.Class-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getAt</h4> -<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.513">getAt</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</pre> -<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.Class-java.lang.String-"><code>get(Class,String)</code></a>, but the key is a slash-delimited path used to traverse +<pre>public <T> T <a href="../../../src-html/org/apache/juneau/ObjectMap.html#line.559">getAt</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</pre> +<div class="block">Same as <a href="../../../org/apache/juneau/ObjectMap.html#get-java.lang.String-java.lang.Class-"><code>get(String,Class)</code></a>, but the key is a slash-delimited path used to traverse entries in this POJO. <p> @@ -1259,7 +1344,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa .getLong(<js>"baz"</js>); <jc>// Using this method</jc> - <jk>long</jk> l = m.getAt(<jk>long</jk>.<jk>class</jk>, <js>"foo/bar/0/baz"</js>); + <jk>long</jk> l = m.getAt(<js>"foo/bar/0/baz"</js>, <jk>long</jk>.<jk>class</jk>); </p> <p> @@ -1269,8 +1354,34 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <dt><span class="paramLabel">Type Parameters:</span></dt> <dd><code>T</code> - The class type.</dd> <dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>path</code> - The path to the entry.</dd> <dd><code>type</code> - The class type.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The value, or <jk>null</jk> if the entry doesn't exist.</dd> +</dl> +</li> +</ul> +<a name="getAt-java.lang.String-java.lang.reflect.Type-java.lang.reflect.Type...-"> +<!-- --> +</a> +<ul class
<TRUNCATED>
