http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d81e61b1/content/apidocs/org/apache/juneau/BeanDictionary.html ---------------------------------------------------------------------- diff --git a/content/apidocs/org/apache/juneau/BeanDictionary.html b/content/apidocs/org/apache/juneau/BeanDictionary.html new file mode 100644 index 0000000..aadec5e --- /dev/null +++ b/content/apidocs/org/apache/juneau/BeanDictionary.html @@ -0,0 +1,309 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>BeanDictionary (Apache Juneau (incubating) 6.0.0-incubating-SNAPSHOT)</title> +<link rel="stylesheet" type="text/css" href="../../../javadoc.css" title="Style"> +<script type="text/javascript" src="../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="BeanDictionary (Apache Juneau (incubating) 6.0.0-incubating-SNAPSHOT)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BeanDictionary.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../index-all.html">Index</a></li> +<li><a href="../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../org/apache/juneau/BeanDictionaryBuilder.html" title="class in org.apache.juneau"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../index.html?org/apache/juneau/BeanDictionary.html" target="_top">Frames</a></li> +<li><a href="BeanDictionary.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.juneau</div> +<h2 title="Class BeanDictionary" class="title">Class BeanDictionary</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.juneau.BeanDictionary</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<hr> +<br> +<pre>public class <a href="../../../src-html/org/apache/juneau/BeanDictionary.html#line.35">BeanDictionary</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></pre> +<div class="block">A lookup table for resolving bean types by name. + <p> + In a nutshell, provides a simple mapping of bean class objects to identifying names. + <p> + Class names are defined through the <a href="../../../org/apache/juneau/annotation/Bean.html#typeName--"><code>Bean.typeName()</code></a> annotation. + <p> + The dictionary is used by the framework in the following ways: + <ul> + <li>If a class type cannot be inferred through reflection during parsing, then a helper <js>"_type"</js> is added to the serialized output + using the name defined for that class in this dictionary. This helps determine the real class at parse time. + <li>The dictionary name is used as element names when serialized to XML. + </ul></div> +<dl> +<dt><span class="simpleTagLabel">Author:</span></dt> +<dd>james.bognar</dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" 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/BeanDictionary.html#cast-org.apache.juneau.ObjectMap-">cast</a></span>(<a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> m)</code> +<div class="block">Converts the specified object map into a bean if it contains a <js>"_type"</js> entry in it.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<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/BeanDictionary.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> typeName)</code> +<div class="block">Gets the class metadata for the specified bean type name.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanDictionary.html#hasName-java.lang.String-">hasName</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> typeName)</code> +<div class="block">Returns <jk>true</jk> if this dictionary has an entry for the specified type name.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<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></h3> +<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang /Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <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>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="cast-org.apache.juneau.ObjectMap-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>cast</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/BeanDictionary.html#line.60">cast</a>(<a href="../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> m)</pre> +<div class="block">Converts the specified object map into a bean if it contains a <js>"_type"</js> entry in it.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>m</code> - The object map to convert to a bean if possible.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The new bean, or the original <code>ObjectMap</code> if no <js>"_type"</js> entry was found.</dd> +</dl> +</li> +</ul> +<a name="getClassMeta-java.lang.String-"> +<!-- --> +</a> +<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="../../../src-html/org/apache/juneau/BeanDictionary.html#line.89">getClassMeta</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> +<div class="block">Gets the class metadata for the specified bean type name.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>typeName</code> - The bean type name as defined by <a href="../../../org/apache/juneau/annotation/Bean.html#typeName--"><code>Bean.typeName()</code></a>.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The class metadata for the bean.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in org.apache.juneau">BeanRuntimeException</a></code> - If name wasn't found in this dictionary.</dd> +</dl> +</li> +</ul> +<a name="hasName-java.lang.String-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>hasName</h4> +<pre>public boolean <a href="../../../src-html/org/apache/juneau/BeanDictionary.html#line.102">hasName</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> +<div class="block">Returns <jk>true</jk> if this dictionary has an entry for the specified type name.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>typeName</code> - The bean type name.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd><jk>true</jk> if this dictionary has an entry for the specified type name.</dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BeanDictionary.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../index-all.html">Index</a></li> +<li><a href="../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../org/apache/juneau/BeanDictionaryBuilder.html" title="class in org.apache.juneau"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../index.html?org/apache/juneau/BeanDictionary.html" target="_top">Frames</a></li> +<li><a href="BeanDictionary.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2016 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p> +</body> +</html>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d81e61b1/content/apidocs/org/apache/juneau/BeanDictionaryBuilder.html ---------------------------------------------------------------------- diff --git a/content/apidocs/org/apache/juneau/BeanDictionaryBuilder.html b/content/apidocs/org/apache/juneau/BeanDictionaryBuilder.html new file mode 100644 index 0000000..999b927 --- /dev/null +++ b/content/apidocs/org/apache/juneau/BeanDictionaryBuilder.html @@ -0,0 +1,295 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>BeanDictionaryBuilder (Apache Juneau (incubating) 6.0.0-incubating-SNAPSHOT)</title> +<link rel="stylesheet" type="text/css" href="../../../javadoc.css" title="Style"> +<script type="text/javascript" src="../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="BeanDictionaryBuilder (Apache Juneau (incubating) 6.0.0-incubating-SNAPSHOT)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BeanDictionaryBuilder.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../index-all.html">Index</a></li> +<li><a href="../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../org/apache/juneau/BeanDictionary.html" title="class in org.apache.juneau"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../index.html?org/apache/juneau/BeanDictionaryBuilder.html" target="_top">Frames</a></li> +<li><a href="BeanDictionaryBuilder.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.juneau</div> +<h2 title="Class BeanDictionaryBuilder" class="title">Class BeanDictionaryBuilder</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.juneau.BeanDictionaryBuilder</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<hr> +<br> +<pre>public class <a href="../../../src-html/org/apache/juneau/BeanDictionaryBuilder.html#line.28">BeanDictionaryBuilder</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></pre> +<div class="block">Utility class for creating <a href="../../../org/apache/juneau/BeanDictionary.html" title="class in org.apache.juneau"><code>BeanDictionary</code></a> objects. + <p> + This class is a programmatic equivalent to the <a href="../../../org/apache/juneau/annotation/BeanProperty.html#beanDictionary--"><code>BeanProperty.beanDictionary()</code></a> annotation and <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanDictionary"><code>BeanContext.BEAN_beanDictionary</code></a> property. + It allows bean dictionaries to be constructed</div> +<dl> +<dt><span class="simpleTagLabel">Author:</span></dt> +<dd>james.bognar</dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanDictionaryBuilder.html#BeanDictionaryBuilder--">BeanDictionaryBuilder</a></span>()</code> </td> +</tr> +</table> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code><a href="../../../org/apache/juneau/BeanDictionaryBuilder.html" title="class in org.apache.juneau">BeanDictionaryBuilder</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanDictionaryBuilder.html#add-java.lang.Class...-">add</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><?>... classes)</code> +<div class="block">Add the specified classes to this type dictionary.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<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></h3> +<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang /Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <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>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="BeanDictionaryBuilder--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>BeanDictionaryBuilder</h4> +<pre>public <a href="../../../src-html/org/apache/juneau/BeanDictionaryBuilder.html#line.28">BeanDictionaryBuilder</a>()</pre> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="add-java.lang.Class...-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>add</h4> +<pre>public <a href="../../../org/apache/juneau/BeanDictionaryBuilder.html" title="class in org.apache.juneau">BeanDictionaryBuilder</a> <a href="../../../src-html/org/apache/juneau/BeanDictionaryBuilder.html#line.45">add</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><?>... classes)</pre> +<div class="block">Add the specified classes to this type dictionary. + <p> + Classes can be of the following types: + <ul> + <li>Bean classes. + <li>Subclasses of <a href="../../../org/apache/juneau/BeanDictionaryBuilder.html" title="class in org.apache.juneau"><code>BeanDictionaryBuilder</code></a> that identify an entire set of mappings. + </ul></div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>classes</code> - The classes to add to this dictionary builder.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>This object (for method chaining).</dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BeanDictionaryBuilder.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../index-all.html">Index</a></li> +<li><a href="../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../org/apache/juneau/BeanDictionary.html" title="class in org.apache.juneau"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../index.html?org/apache/juneau/BeanDictionaryBuilder.html" target="_top">Frames</a></li> +<li><a href="BeanDictionaryBuilder.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2016 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p> +</body> +</html> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d81e61b1/content/apidocs/org/apache/juneau/BeanMap.html ---------------------------------------------------------------------- diff --git a/content/apidocs/org/apache/juneau/BeanMap.html b/content/apidocs/org/apache/juneau/BeanMap.html index d18e003..98b675a 100644 --- a/content/apidocs/org/apache/juneau/BeanMap.html +++ b/content/apidocs/org/apache/juneau/BeanMap.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}; +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}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -49,7 +49,7 @@ var activeTableTab = "activeTableTab"; </div> <div class="subNav"> <ul class="navList"> -<li><a href="../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../org/apache/juneau/BeanDictionaryBuilder.html" title="class in org.apache.juneau"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../org/apache/juneau/BeanMapEntry.html" title="class in org.apache.juneau"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> @@ -294,86 +294,74 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i </td> </tr> <tr id="i5" 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#getBeanUri--">getBeanUri</a></span>()</code> -<div class="block">Returns the value of the property identified as the URI property (annotated with <a href="../../../org/apache/juneau/annotation/BeanProperty.html#beanUri--"><code>BeanProperty.beanUri()</code></a> as <jk>true</jk>).</div> -</td> -</tr> -<tr id="i6" class="altColor"> <td class="colFirst"><code><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>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#getClassMeta--">getClassMeta</a></span>()</code> <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> </td> </tr> -<tr id="i7" class="rowColor"> +<tr id="i6" class="altColor"> <td class="colFirst"><code><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>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#getMeta--">getMeta</a></span>()</code> <div class="block">Returns the metadata associated with this bean map.</div> </td> </tr> -<tr id="i8" class="altColor"> +<tr id="i7" class="rowColor"> <td class="colFirst"><code>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>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#getProperties--">getProperties</a></span>()</code> <div class="block">Returns a simple collection of properties for this bean map.</div> </td> </tr> -<tr id="i9" class="rowColor"> +<tr id="i8" class="altColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/BeanMapEntry.html" title="class in org.apache.juneau">BeanMapEntry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#getProperty-java.lang.String-">getProperty</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> propertyName)</code> <div class="block">Returns the specified property on this bean map.</div> </td> </tr> -<tr id="i10" class="altColor"> +<tr id="i9" class="rowColor"> <td class="colFirst"><code><a href="../../../org/apache/juneau/BeanPropertyMeta.html" title="class in org.apache.juneau">BeanPropertyMeta</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#getPropertyMeta-java.lang.String-">getPropertyMeta</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> propertyName)</code> <div class="block">Returns the metadata on the specified property.</div> </td> </tr> -<tr id="i11" class="rowColor"> +<tr id="i10" 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><<a href="../../../org/apache/juneau/BeanPropertyValue.html" title="class in org.apache.juneau">BeanPropertyValue</a>></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#getValues-boolean-boolean-">getValues</a></span>(boolean addClassAttr, - boolean ignoreNulls)</code> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#getValues-boolean-org.apache.juneau.BeanPropertyValue...-">getValues</a></span>(boolean ignoreNulls, + <a href="../../../org/apache/juneau/BeanPropertyValue.html" title="class in org.apache.juneau">BeanPropertyValue</a>... prependVals)</code> <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.</div> </td> </tr> -<tr id="i12" class="altColor"> +<tr id="i11" 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/BeanMap.html#keySet--">keySet</a></span>()</code> <div class="block">Returns the names of all properties associated with the bean.</div> </td> </tr> -<tr id="i13" class="rowColor"> +<tr id="i12" class="altColor"> <td class="colFirst"><code><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>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#load-java.util.Map-">load</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> entries)</code> <div class="block">Convenience method for loading this map with the contents of the specified map.</div> </td> </tr> -<tr id="i14" class="altColor"> +<tr id="i13" class="rowColor"> <td class="colFirst"><code><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>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#load-java.io.Reader-org.apache.juneau.parser.ReaderParser-">load</a></span>(<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)</code> <div class="block">Convenience method for setting multiple property values by passing in a reader.</div> </td> </tr> -<tr id="i15" class="rowColor"> +<tr id="i14" class="altColor"> <td class="colFirst"><code><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>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanMap.html#load-java.lang.String-">load</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> input)</code> <div class="block">Convenience method for setting multiple property values by passing in JSON (or other) text.</div> </td> </tr> -<tr id="i16" class="altColor"> +<tr id="i15" 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#put-java.lang.String-java.lang.Object-">put</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> 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)</code> <div class="block">Sets a property on the bean.</div> </td> </tr> -<tr id="i17" 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#putBeanUri-java.lang.Object-">putBeanUri</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> o)</code> -<div class="block">Sets the bean URI property if the bean has a URI property.</div> -</td> -</tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.util.AbstractMap"> @@ -538,52 +526,20 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i </dl> </li> </ul> -<a name="getBeanUri--"> -<!-- --> -</a> -<ul class="blockList"> -<li class="blockList"> -<h4>getBeanUri</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.160">getBeanUri</a>()</pre> -<div class="block">Returns the value of the property identified as the URI property (annotated with <a href="../../../org/apache/juneau/annotation/BeanProperty.html#beanUri--"><code>BeanProperty.beanUri()</code></a> as <jk>true</jk>).</div> -<dl> -<dt><span class="returnLabel">Returns:</span></dt> -<dd>The URI value, or <jk>null</jk> if no URI property exists on this bean.</dd> -</dl> -</li> -</ul> -<a name="putBeanUri-java.lang.Object-"> -<!-- --> -</a> -<ul class="blockList"> -<li class="blockList"> -<h4>putBeanUri</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.173">putBeanUri</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> o)</pre> -<div class="block">Sets the bean URI property if the bean has a URI property. - Ignored otherwise.</div> -<dl> -<dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>o</code> - The bean URI object.</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> -</dl> -</li> -</ul> <a name="put-java.lang.String-java.lang.Object-"> <!-- --> </a> <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.219">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.196">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. 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> transform associated with it through 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. @@ -594,7 +550,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <jc>// Construct a bean with a 'birthDate' Date field</jc> Person p = <jk>new</jk> Person(); - <jc>// Create a bean context and add the ISO8601 date-time transform</jc> + <jc>// Create a bean context and add the ISO8601 date-time swap</jc> BeanContext beanContext = <jk>new</jk> BeanContext().addPojoSwaps(DateSwap.ISO8601DT.<jk>class</jk>); <jc>// Wrap our bean in a bean map</jc> @@ -632,7 +588,7 @@ 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.253">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.228">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> @@ -651,13 +607,13 @@ 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.303">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.278">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. 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> transform associated with it through 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. @@ -703,7 +659,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.332">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.307">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> @@ -735,7 +691,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.346">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.321">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> @@ -758,7 +714,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.360">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.335">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> @@ -776,7 +732,7 @@ 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.371">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.346">keySet</a>()</pre> <div class="block">Returns the names of all properties associated with the bean. <p> The returned set is unmodifiable.</div> @@ -794,7 +750,7 @@ 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.388">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.363">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 @@ -817,7 +773,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.401">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.376">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> @@ -833,7 +789,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.411">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.386">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> @@ -843,21 +799,22 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i </dl> </li> </ul> -<a name="getValues-boolean-boolean-"> +<a name="getValues-boolean-org.apache.juneau.BeanPropertyValue...-"> <!-- --> </a> <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.424">getValues</a>(boolean addClassAttr, - boolean ignoreNulls)</pre> +<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.402">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>addClassAttr</code> - Add a <jk>"_class"</jk> bean property to the returned list.</dd> <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> <dt><span class="returnLabel">Returns:</span></dt> <dd>The list of all bean property values.</dd> </dl> @@ -869,7 +826,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.449">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.428">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> @@ -883,7 +840,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.458">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.437">entrySet</a>()</pre> <div class="block">Returns all the properties associated with the bean.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> @@ -923,7 +880,7 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i </div> <div class="subNav"> <ul class="navList"> -<li><a href="../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../org/apache/juneau/BeanDictionaryBuilder.html" title="class in org.apache.juneau"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../org/apache/juneau/BeanMapEntry.html" title="class in org.apache.juneau"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> @@ -964,6 +921,6 @@ implements <a href="../../../org/apache/juneau/Delegate.html" title="interface i <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> -<p class="legalCopy"><small>Copyright © 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +<p class="legalCopy"><small>Copyright © 2016 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p> </body> </html> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d81e61b1/content/apidocs/org/apache/juneau/BeanMapEntry.html ---------------------------------------------------------------------- diff --git a/content/apidocs/org/apache/juneau/BeanMapEntry.html b/content/apidocs/org/apache/juneau/BeanMapEntry.html index f7a7695..273ce2f 100644 --- a/content/apidocs/org/apache/juneau/BeanMapEntry.html +++ b/content/apidocs/org/apache/juneau/BeanMapEntry.html @@ -291,7 +291,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry 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> transform associated with it through 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> <dl> @@ -316,7 +316,7 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry 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> transform associated with it through 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> <dl> @@ -437,6 +437,6 @@ implements <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> -<p class="legalCopy"><small>Copyright © 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +<p class="legalCopy"><small>Copyright © 2016 <a href="http://www.apache.org/">Apache</a>. All rights reserved.</small></p> </body> </html>
