http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/1b5bde65/content/site/apidocs/org/apache/juneau/BeanDictionaryList.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/BeanDictionaryList.html b/content/site/apidocs/org/apache/juneau/BeanDictionaryList.html index f2c2f61..33cb5b2 100644 --- a/content/site/apidocs/org/apache/juneau/BeanDictionaryList.html +++ b/content/site/apidocs/org/apache/juneau/BeanDictionaryList.html @@ -131,9 +131,10 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public class <a href="../../../src-html/org/apache/juneau/BeanDictionaryList.html#line.31">BeanDictionaryList</a> +<pre>public class <a href="../../../src-html/org/apache/juneau/BeanDictionaryList.html#line.33">BeanDictionaryList</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</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><?>></pre> <div class="block">Represents a collection of bean classes that make up a bean dictionary. + <p> The classes in the list must be one of the following: <ul> @@ -141,6 +142,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.ht <li>Other subclasses of <a href="../../../org/apache/juneau/BeanDictionaryList.html" title="class in org.apache.juneau"><code>BeanDictionaryList</code></a>. <li>Other subclasses of <a href="../../../org/apache/juneau/BeanDictionaryMap.html" title="class in org.apache.juneau"><code>BeanDictionaryMap</code></a>. </ul> + <p> Subclasses must implement a public no-arg constructor so that it can be instantiated by the bean context code.</div> <dl> @@ -268,13 +270,13 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.ht <ul class="blockListLast"> <li class="blockList"> <h4>BeanDictionaryList</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/BeanDictionaryList.html#line.41">BeanDictionaryList</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><?>... c)</pre> +<pre>public <a href="../../../src-html/org/apache/juneau/BeanDictionaryList.html#line.44">BeanDictionaryList</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><?>... c)</pre> <div class="block">Constructor.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>c</code> - The list of bean classes to add to this dictionary. - Classes must either specify a <a href="../../../org/apache/juneau/annotation/Bean.html#typeName--"><code>Bean.typeName()</code></a> value or be another subclass of - <code>BeanDictionaryList</code>.</dd> + Classes must either specify a <a href="../../../org/apache/juneau/annotation/Bean.html#typeName--"><code>Bean.typeName()</code></a> value or be another subclass of + <code>BeanDictionaryList</code>.</dd> </dl> </li> </ul> @@ -292,13 +294,13 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.ht <ul class="blockListLast"> <li class="blockList"> <h4>append</h4> -<pre>protected <a href="../../../org/apache/juneau/BeanDictionaryList.html" title="class in org.apache.juneau">BeanDictionaryList</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryList.html#line.53">append</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><?>... c)</pre> +<pre>protected <a href="../../../org/apache/juneau/BeanDictionaryList.html" title="class in org.apache.juneau">BeanDictionaryList</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryList.html#line.57">append</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><?>... c)</pre> <div class="block">Append one or more bean classes to this bean dictionary.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>c</code> - The list of bean classes to add to this dictionary. - Classes must either specify a <a href="../../../org/apache/juneau/annotation/Bean.html#typeName--"><code>Bean.typeName()</code></a> value or be another subclass of - <code>BeanDictionaryList</code>.</dd> + Classes must either specify a <a href="../../../org/apache/juneau/annotation/Bean.html#typeName--"><code>Bean.typeName()</code></a> value or be another subclass of + <code>BeanDictionaryList</code>.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>This object (for method chaining).</dd> </dl>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/1b5bde65/content/site/apidocs/org/apache/juneau/BeanDictionaryMap.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/BeanDictionaryMap.html b/content/site/apidocs/org/apache/juneau/BeanDictionaryMap.html index 518243e..5e14d7b 100644 --- a/content/site/apidocs/org/apache/juneau/BeanDictionaryMap.html +++ b/content/site/apidocs/org/apache/juneau/BeanDictionaryMap.html @@ -127,12 +127,14 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public class <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.29">BeanDictionaryMap</a> +<pre>public class <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.31">BeanDictionaryMap</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">Represents a map of dictionary type names to bean classes that make up a bean dictionary. + <p> - In general, this approach for defining dictionary names for classes is used when it's not possible - to use the <a href="../../../org/apache/juneau/annotation/Bean.html#typeName--"><code>Bean.typeName()</code></a> annotation. + In general, this approach for defining dictionary names for classes is used when it's not possible to use the + <a href="../../../org/apache/juneau/annotation/Bean.html#typeName--"><code>Bean.typeName()</code></a> annotation. + <p> Subclasses must implement a public no-arg constructor so that it can be instantiated by the bean context code.</div> <dl> @@ -269,7 +271,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockListLast"> <li class="blockList"> <h4>BeanDictionaryMap</h4> -<pre>public <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.29">BeanDictionaryMap</a>()</pre> +<pre>public <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.31">BeanDictionaryMap</a>()</pre> </li> </ul> </li> @@ -286,7 +288,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>addClass</h4> -<pre>protected <a href="../../../org/apache/juneau/BeanDictionaryMap.html" title="class in org.apache.juneau">BeanDictionaryMap</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.39">addClass</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> typeName, +<pre>protected <a href="../../../org/apache/juneau/BeanDictionaryMap.html" title="class in org.apache.juneau">BeanDictionaryMap</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.41">addClass</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> typeName, <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><?> c)</pre> <div class="block">Add a dictionary name mapping for the specified class.</div> <dl> @@ -304,7 +306,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockList"> <li class="blockList"> <h4>addMapClass</h4> -<pre>protected <a href="../../../org/apache/juneau/BeanDictionaryMap.html" title="class in org.apache.juneau">BeanDictionaryMap</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.53">addMapClass</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> typeName, +<pre>protected <a href="../../../org/apache/juneau/BeanDictionaryMap.html" title="class in org.apache.juneau">BeanDictionaryMap</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.55">addMapClass</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> typeName, <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><? extends <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>> mapClass, <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> keyClass, <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> valueClass)</pre> @@ -326,7 +328,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/LinkedHashMa <ul class="blockListLast"> <li class="blockList"> <h4>addCollectionClass</h4> -<pre>protected <a href="../../../org/apache/juneau/BeanDictionaryMap.html" title="class in org.apache.juneau">BeanDictionaryMap</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.68">addCollectionClass</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> typeName, +<pre>protected <a href="../../../org/apache/juneau/BeanDictionaryMap.html" title="class in org.apache.juneau">BeanDictionaryMap</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryMap.html#line.70">addCollectionClass</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> typeName, <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><? extends <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>> collectionClass, <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> entryClass)</pre> <div class="block">Add a dictionary name mapping for the specified collection class with the specified entry class.</div> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/1b5bde65/content/site/apidocs/org/apache/juneau/BeanMap.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/BeanMap.html b/content/site/apidocs/org/apache/juneau/BeanMap.html index e1aefe3..66cee96 100644 --- a/content/site/apidocs/org/apache/juneau/BeanMap.html +++ b/content/site/apidocs/org/apache/juneau/BeanMap.html @@ -125,33 +125,37 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public class <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.57">BeanMap</a><T> +<pre>public class <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.61">BeanMap</a><T> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</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>> implements <a href="../../../org/apache/juneau/Delegate.html" title="interface in org.apache.juneau">Delegate</a><T></pre> <div class="block">Java bean wrapper class. <h5 class='section'>Description:</h5> - <p> + A wrapper that wraps Java bean instances inside of 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> interface that allows properties on the wrapped object can be accessed using the <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> and <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#put-K-V-" title="class or interface in java.util"><code>put()</code></a> methods. + <p> Use the <a href="../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau"><code>BeanContext</code></a> class to create instances of this class. <h6 class='topic'>Bean property order</h6> - <p> + The order of the properties returned by the <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#keySet--" title="class or interface in java.util"><code>keySet()</code></a> and <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#entrySet--" title="class or interface in java.util"><code>entrySet()</code></a> methods are as follows: <ul class='spaced-list'> - <li>If <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> annotation is specified on class, then the order is the same as the list of properties + <li> + If <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> annotation is specified on class, then the order is the same as the list of properties in the annotation. - <li>If <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> annotation is not specified on the class, then the order is the same as that returned + <li> + If <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> annotation is not specified on the class, then the order is the same as that returned by the <a href="http://docs.oracle.com/javase/7/docs/api/java/beans/BeanInfo.html?is-external=true" title="class or interface in java.beans"><code>BeanInfo</code></a> class (i.e. ordered by definition in the class). </ul> - <br> - The order can also be overridden through the use of a <a href="../../../org/apache/juneau/transform/BeanFilter.html" title="class in org.apache.juneau.transform"><code>BeanFilter</code></a>. - <h6 class='topic'>POJO swaps</h6> <p> + <br>The order can also be overridden through the use of a <a href="../../../org/apache/juneau/transform/BeanFilter.html" title="class in org.apache.juneau.transform"><code>BeanFilter</code></a>. + + <h6 class='topic'>POJO swaps</h6> + If <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwaps</code></a> are defined on the class types of the properties of this bean or the bean properties themselves, the <a href="../../../org/apache/juneau/BeanMap.html#get-java.lang.Object-"><code>get(Object)</code></a> and <a href="../../../org/apache/juneau/BeanMap.html#put-java.lang.String-java.lang.Object-"><code>put(String, Object)</code></a> methods will automatically transform the property value to and from the serialized form.</div> @@ -327,8 +331,8 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <tr id="i11" 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/BeanMap.html#getRaw-java.lang.Object-">getRaw</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> property)</code> -<div class="block">Same as <a href="../../../org/apache/juneau/BeanMap.html#get-java.lang.Object-"><code>get(Object)</code></a> except bypasses the POJO filter associated with the bean property or - bean filter associated with the bean class.</div> +<div class="block">Same as <a href="../../../org/apache/juneau/BeanMap.html#get-java.lang.Object-"><code>get(Object)</code></a> except bypasses the POJO filter associated with the bean property or bean filter + associated with the bean class.</div> </td> </tr> <tr id="i12" class="altColor"> @@ -373,8 +377,8 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <tr id="i18" 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/BeanMap.html#resolveVars-java.lang.String-">resolveVars</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> s)</code> -<div class="block">Given a string containing variables of the form <code>"{property}"</code>, replaces those variables with - property values in this bean.</div> +<div class="block">Given a string containing variables of the form <code>"{property}"</code>, replaces those variables with property + values in this bean.</div> </td> </tr> </table> @@ -419,7 +423,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>bean</h4> -<pre>protected <a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.60">bean</a></pre> +<pre>protected <a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.64">bean</a></pre> <div class="block">The wrapped object.</div> </li> </ul> @@ -429,7 +433,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>propertyCache</h4> -<pre>protected <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>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.63">propertyCache</a></pre> +<pre>protected <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>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.67">propertyCache</a></pre> <div class="block">Temporary holding cache for beans with read-only properties. Normally null.</div> </li> </ul> @@ -439,7 +443,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>arrayPropertyCache</h4> -<pre>protected <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/util/List.html?is-external=true" title="class or interface in java.util">List</a><?>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.66">arrayPropertyCache</a></pre> +<pre>protected <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/util/List.html?is-external=true" title="class or interface in java.util">List</a><?>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.70">arrayPropertyCache</a></pre> <div class="block">Temporary holding cache for bean properties of array types when the add() method is being used.</div> </li> </ul> @@ -449,7 +453,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockListLast"> <li class="blockList"> <h4>meta</h4> -<pre>protected <a href="../../../org/apache/juneau/BeanMeta.html" title="class in org.apache.juneau">BeanMeta</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.69">meta</a></pre> +<pre>protected <a href="../../../org/apache/juneau/BeanMeta.html" title="class in org.apache.juneau">BeanMeta</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.73">meta</a></pre> <div class="block">The BeanMeta associated with the class of the object.</div> </li> </ul> @@ -469,7 +473,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockListLast"> <li class="blockList"> <h4>BeanMap</h4> -<pre>protected <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.81">BeanMap</a>(<a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session, +<pre>protected <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.85">BeanMap</a>(<a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session, <a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a> bean, <a href="../../../org/apache/juneau/BeanMeta.html" title="class in org.apache.juneau">BeanMeta</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> meta)</pre> <div class="block">Instance of this class are instantiated through the BeanContext class.</div> @@ -495,7 +499,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getMeta</h4> -<pre>public <a href="../../../org/apache/juneau/BeanMeta.html" title="class in org.apache.juneau">BeanMeta</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.95">getMeta</a>()</pre> +<pre>public <a href="../../../org/apache/juneau/BeanMeta.html" title="class in org.apache.juneau">BeanMeta</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.99">getMeta</a>()</pre> <div class="block">Returns the metadata associated with this bean map.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -509,7 +513,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getBeanSession</h4> -<pre>public final <a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.104">getBeanSession</a>()</pre> +<pre>public final <a href="../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.108">getBeanSession</a>()</pre> <div class="block">Returns the bean session that created this bean map.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -523,10 +527,12 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getBean</h4> -<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.115">getBean</a>()</pre> +<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.121">getBean</a>()</pre> <div class="block">Returns the wrapped bean object. - Triggers bean creation if bean has read-only properties set through a constructor - defined by the <a href="../../../org/apache/juneau/annotation/BeanConstructor.html" title="annotation in org.apache.juneau.annotation"><code>BeanConstructor</code></a> annotation.</div> + + <p> + Triggers bean creation if bean has read-only properties set through a constructor defined by the + <a href="../../../org/apache/juneau/annotation/BeanConstructor.html" title="annotation in org.apache.juneau.annotation"><code>BeanConstructor</code></a> annotation.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The inner bean object.</dd> @@ -539,16 +545,16 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getBean</h4> -<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.149">getBean</a>(boolean create)</pre> +<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.155">getBean</a>(boolean create)</pre> <div class="block">Returns the wrapped bean object. + <p> - If <code>create</code> is <jk>false</jk>, then this method may return <jk>null</jk> - if the bean has read-only properties set through a constructor - defined by the <a href="../../../org/apache/juneau/annotation/BeanConstructor.html" title="annotation in org.apache.juneau.annotation"><code>BeanConstructor</code></a> annotation. + If <code>create</code> is <jk>false</jk>, then this method may return <jk>null</jk> if the bean has read-only + properties set through a constructor defined by the <a href="../../../org/apache/juneau/annotation/BeanConstructor.html" title="annotation in org.apache.juneau.annotation"><code>BeanConstructor</code></a> annotation. + <p> This method does NOT always return the bean in it's final state. - Array properties temporary stored as ArrayLists are not finalized - until the <a href="../../../org/apache/juneau/BeanMap.html#getBean--"><code>getBean()</code></a> method is called.</div> + Array properties temporary stored as ArrayLists are not finalized until the <a href="../../../org/apache/juneau/BeanMap.html#getBean--"><code>getBean()</code></a> method is called.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>create</code> - If bean hasn't been instantiated yet, then instantiate it.</dd> @@ -563,16 +569,17 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>put</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/BeanMap.html#line.209">put</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> property, +<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/BeanMap.html#line.218">put</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> property, <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">Sets a property on the bean. + <p> - If there is a <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with this bean property or bean property type class, then - you must pass in a transformed value. + If there is a <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with this bean property or bean property type class, then you must pass + in a transformed value. For example, if the bean property type class is a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a> and the bean property has the - <a href="../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the - <a href="../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, the value being passed in must be - a String containing an ISO8601 date-time string value. + <a href="../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the + <a href="../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, the value being passed in must be + a String containing an ISO8601 date-time string value. <h5 class='section'>Example:</h5> <p class='bcode'> @@ -598,15 +605,15 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <dd><code>value</code> - The value to set the property to.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>If the bean context setting <code>beanMapPutReturnsOldValue</code> is <jk>true</jk>, then the old value of the - property is returned. - Otherwise, this method always returns <jk>null</jk>.</dd> + property is returned. + Otherwise, this method always returns <jk>null</jk>.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a></code> - if any of the following occur. - <ul class='spaced-list'> - <li>BeanMapEntry does not exist on the underlying object. - <li>Security settings prevent access to the underlying object setter method. - <li>An exception occurred inside the setter method. - </ul></dd> + <ul> + <li>BeanMapEntry does not exist on the underlying object. + <li>Security settings prevent access to the underlying object setter method. + <li>An exception occurred inside the setter method. + </ul></dd> </dl> </li> </ul> @@ -616,12 +623,13 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>add</h4> -<pre>public void <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.235">add</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> property, +<pre>public void <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.245">add</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> property, <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">Add a value to a collection or array property. + <p> - As a general rule, adding to arrays is not recommended since the array must be recreate each time - this method is called.</div> + As a general rule, adding to arrays is not recommended since the array must be recreate each time this method is + called.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>property</code> - Property name or child-element name (if <a href="../../../org/apache/juneau/xml/annotation/Xml.html#childName--"><code>Xml.childName()</code></a> is specified).</dd> @@ -635,15 +643,16 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <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/BeanMap.html#line.281">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> property)</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/BeanMap.html#line.293">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> property)</pre> <div class="block">Gets a property on the bean. + <p> - If there is a <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with this bean property or bean property type class, then - this method will return the transformed value. + If there is a <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with this bean property or bean property type class, then this method + will return the transformed value. For example, if the bean property type class is a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a> and the bean property has the - <a href="../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the - <a href="../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, this method will return a String - containing an ISO8601 date-time string value. + <a href="../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the + <a href="../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, this method will return a String containing an + ISO8601 date-time string value. <h5 class='section'>Example:</h5> <p class='bcode'> @@ -683,9 +692,9 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getRaw</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/BeanMap.html#line.298">getRaw</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> property)</pre> -<div class="block">Same as <a href="../../../org/apache/juneau/BeanMap.html#get-java.lang.Object-"><code>get(Object)</code></a> except bypasses the POJO filter associated with the bean property or - bean filter associated with the bean class.</div> +<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/BeanMap.html#line.310">getRaw</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> property)</pre> +<div class="block">Same as <a href="../../../org/apache/juneau/BeanMap.html#get-java.lang.Object-"><code>get(Object)</code></a> except bypasses the POJO filter associated with the bean property or bean filter + associated with the bean class.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>property</code> - The name of the property to get.</dd> @@ -700,13 +709,14 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>load</h4> -<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.322">load</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> input) +<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.335">load</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> input) throws <a href="../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Convenience method for setting multiple property values by passing in JSON (or other) text. + <p> - Typically the input is going to be JSON, although the actual data type - depends on the default parser specified by the <a href="../../../org/apache/juneau/BeanContext.html#BEAN_defaultParser"><code>BeanContext.BEAN_defaultParser</code></a> property - value on the config that created the context that created this map. + Typically the input is going to be JSON, although the actual data type depends on the default parser specified by + the <a href="../../../org/apache/juneau/BeanContext.html#BEAN_defaultParser"><code>BeanContext.BEAN_defaultParser</code></a> property value on the config that created the context that created + this map. <h5 class='section'>Example:</h5> <p class='bcode'> @@ -728,7 +738,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>load</h4> -<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.336">load</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="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.349">load</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/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</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> @@ -751,8 +761,9 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>load</h4> -<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.350">load</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> entries)</pre> +<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.364">load</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> entries)</pre> <div class="block">Convenience method for loading this map with the contents of the specified map. + <p> Identical to <a href="http://docs.oracle.com/javase/7/docs/api/java/util/AbstractMap.html?is-external=true#putAll-java.util.Map-" title="class or interface in java.util"><code>AbstractMap.putAll(Map)</code></a> except as a fluent-style method.</div> <dl> @@ -769,8 +780,9 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>keySet</h4> -<pre>public <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>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.361">keySet</a>()</pre> +<pre>public <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>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.376">keySet</a>()</pre> <div class="block">Returns the names of all properties associated with the bean. + <p> The returned set is unmodifiable.</div> <dl> @@ -787,15 +799,15 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getProperty</h4> -<pre>public <a href="../../../org/apache/juneau/BeanMapEntry.html" title="class in org.apache.juneau">BeanMapEntry</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.389">getProperty</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> propertyName)</pre> +<pre>public <a href="../../../org/apache/juneau/BeanMapEntry.html" title="class in org.apache.juneau">BeanMapEntry</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.404">getProperty</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> propertyName)</pre> <div class="block">Returns the specified property on this bean map. + <p> - Allows you to get and set an individual property on a bean without having a - handle to the bean itself by using the <a href="../../../org/apache/juneau/BeanMapEntry.html#getValue--"><code>BeanMapEntry.getValue()</code></a> - and <a href="../../../org/apache/juneau/BeanMapEntry.html#setValue-java.lang.Object-"><code>BeanMapEntry.setValue(Object)</code></a> methods. + Allows you to get and set an individual property on a bean without having a handle to the bean itself by using + the <a href="../../../org/apache/juneau/BeanMapEntry.html#getValue--"><code>BeanMapEntry.getValue()</code></a> and <a href="../../../org/apache/juneau/BeanMapEntry.html#setValue-java.lang.Object-"><code>BeanMapEntry.setValue(Object)</code></a> methods. + <p> - This method can also be used to get metadata on a property by - calling the <a href="../../../org/apache/juneau/BeanMapEntry.html#getMeta--"><code>BeanMapEntry.getMeta()</code></a> method.</div> + This method can also be used to get metadata on a property by calling the <a href="../../../org/apache/juneau/BeanMapEntry.html#getMeta--"><code>BeanMapEntry.getMeta()</code></a> method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>propertyName</code> - The name of the property to look up.</dd> @@ -810,7 +822,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getPropertyMeta</h4> -<pre>public <a href="../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.402">getPropertyMeta</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> propertyName)</pre> +<pre>public <a href="../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.417">getPropertyMeta</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> propertyName)</pre> <div class="block">Returns the metadata on the specified property.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -826,7 +838,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getClassMeta</h4> -<pre>public <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.415">getClassMeta</a>()</pre> +<pre>public <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><<a href="../../../org/apache/juneau/BeanMap.html" title="type parameter in BeanMap">T</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.430">getClassMeta</a>()</pre> <div class="block">Returns the <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a> of the wrapped bean.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> @@ -842,16 +854,17 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getValues</h4> -<pre>public <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><<a href="../../../org/apache/juneau/BeanPropertyValue.html" title="class in org.apache.juneau">BeanPropertyValue</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.431">getValues</a>(boolean ignoreNulls, +<pre>public <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><<a href="../../../org/apache/juneau/BeanPropertyValue.html" title="class in org.apache.juneau">BeanPropertyValue</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.447">getValues</a>(boolean ignoreNulls, <a href="../../../org/apache/juneau/BeanPropertyValue.html" title="class in org.apache.juneau">BeanPropertyValue</a>... prependVals)</pre> <div class="block">Invokes all the getters on this bean and return the values as a list of <a href="../../../org/apache/juneau/BeanPropertyValue.html" title="class in org.apache.juneau"><code>BeanPropertyValue</code></a> objects. + <p> This allows a snapshot of all values to be grabbed from a bean in one call.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ignoreNulls</code> - Don't return properties whose values are null.</dd> <dd><code>prependVals</code> - Additional bean property values to prepended to this list. - Any <jk>null</jk> values in this list will be ignored.</dd> + Any <jk>null</jk> values in this list will be ignored.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The list of all bean property values.</dd> </dl> @@ -863,9 +876,9 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>resolveVars</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/BeanMap.html#line.470">resolveVars</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> s)</pre> -<div class="block">Given a string containing variables of the form <code>"{property}"</code>, replaces those variables with - property values in this bean.</div> +<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/BeanMap.html#line.486">resolveVars</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> s)</pre> +<div class="block">Given a string containing variables of the form <code>"{property}"</code>, replaces those variables with property + values in this bean.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>s</code> - The string containing variables.</dd> @@ -880,7 +893,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockList"> <li class="blockList"> <h4>getProperties</h4> -<pre>protected <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="../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.478">getProperties</a>()</pre> +<pre>protected <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="../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.495">getProperties</a>()</pre> <div class="block">Returns a simple collection of properties for this bean map.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -894,7 +907,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <ul class="blockListLast"> <li class="blockList"> <h4>entrySet</h4> -<pre>public <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/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</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>>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.487">entrySet</a>()</pre> +<pre>public <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/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</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>>> <a href="../../../src-html/org/apache/juneau/BeanMap.html#line.505">entrySet</a>()</pre> <div class="block">Returns all the properties associated with the bean.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/1b5bde65/content/site/apidocs/org/apache/juneau/BeanMapEntry.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/BeanMapEntry.html b/content/site/apidocs/org/apache/juneau/BeanMapEntry.html index cabfa2b..1fcd13a 100644 --- a/content/site/apidocs/org/apache/juneau/BeanMapEntry.html +++ b/content/site/apidocs/org/apache/juneau/BeanMapEntry.html @@ -112,10 +112,11 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public class <a href="../../../src-html/org/apache/juneau/BeanMapEntry.html#line.43">BeanMapEntry</a> +<pre>public class <a href="../../../src-html/org/apache/juneau/BeanMapEntry.html#line.44">BeanMapEntry</a> extends <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> implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</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">Represents a single entry in a bean map. + <p> This class can be used to get and set property values on a bean, or to get metadata on a property. @@ -244,7 +245,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry <ul class="blockListLast"> <li class="blockList"> <h4>BeanMapEntry</h4> -<pre>protected <a href="../../../src-html/org/apache/juneau/BeanMapEntry.html#line.55">BeanMapEntry</a>(<a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><?> beanMap, +<pre>protected <a href="../../../src-html/org/apache/juneau/BeanMapEntry.html#line.56">BeanMapEntry</a>(<a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><?> beanMap, <a href="../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> property, <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> pName)</pre> <div class="block">Constructor.</div> @@ -270,7 +271,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry <ul class="blockList"> <li class="blockList"> <h4>getKey</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/BeanMapEntry.html#line.62">getKey</a>()</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/BeanMapEntry.html#line.63">getKey</a>()</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.Entry.html?is-external=true#getKey--" title="class or interface in java.util">getKey</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</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> @@ -283,15 +284,16 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry <ul class="blockList"> <li class="blockList"> <h4>getValue</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/BeanMapEntry.html#line.77">getValue</a>()</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/BeanMapEntry.html#line.79">getValue</a>()</pre> <div class="block">Returns the value of this property. + <p> - If there is a <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with this bean property or bean property type class, then - this method will return the transformed value. + If there is a <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with this bean property or bean property type class, then this method + will return the transformed value. For example, if the bean property type class is a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a> and the bean property has the - <a href="../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the - <a href="../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, this method will return a String - containing an ISO8601 date-time string value.</div> + <a href="../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the + <a href="../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, this method will return a String containing an + ISO8601 date-time string value.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry.html?is-external=true#getValue--" title="class or interface in java.util">getValue</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</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> @@ -304,20 +306,23 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry <ul class="blockList"> <li class="blockList"> <h4>setValue</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/BeanMapEntry.html#line.99">setValue</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> value)</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/BeanMapEntry.html#line.104">setValue</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> value)</pre> <div class="block">Sets the value of this property. + <p> If the property is an array of type <code>X</code>, then the value can be a <code>Collection<X></code> or <code>X[]</code> or <code>Object[]</code>. + <p> If the property is a bean type <code>X</code>, then the value can either be an <code>X</code> or a <code>Map</code>. + <p> - If there is a <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with this bean property or bean property type class, then - you must pass in a transformed value. + If there is a <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with this bean property or bean property type class, then you must pass + in a transformed value. For example, if the bean property type class is a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a> and the bean property has the - <a href="../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the - <a href="../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, the value being passed in must be - a String containing an ISO8601 date-time string value.</div> + <a href="../../../org/apache/juneau/transforms/DateSwap.ISO8601DT.html" title="class in org.apache.juneau.transforms"><code>DateSwap.ISO8601DT</code></a> swap associated with it through the + <a href="../../../org/apache/juneau/annotation/BeanProperty.html#swap--"><code>@BeanProperty.swap()</code></a> annotation, the value being passed in must be a String + containing an ISO8601 date-time string value.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry.html?is-external=true#setValue-V-" title="class or interface in java.util">setValue</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</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> @@ -332,7 +337,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry <ul class="blockList"> <li class="blockList"> <h4>getBeanMap</h4> -<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><?> <a href="../../../src-html/org/apache/juneau/BeanMapEntry.html#line.108">getBeanMap</a>()</pre> +<pre>public <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><?> <a href="../../../src-html/org/apache/juneau/BeanMapEntry.html#line.113">getBeanMap</a>()</pre> <div class="block">Returns the bean map that contains this property.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -346,7 +351,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry <ul class="blockList"> <li class="blockList"> <h4>getMeta</h4> -<pre>public <a href="../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> <a href="../../../src-html/org/apache/juneau/BeanMapEntry.html#line.117">getMeta</a>()</pre> +<pre>public <a href="../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a> <a href="../../../src-html/org/apache/juneau/BeanMapEntry.html#line.122">getMeta</a>()</pre> <div class="block">Returns the metadata about this bean property.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -360,7 +365,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry <ul class="blockListLast"> <li class="blockList"> <h4>toString</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/BeanMapEntry.html#line.122">toString</a>()</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/BeanMapEntry.html#line.127">toString</a>()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <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></dd>
