juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [6/9] incubator-juneau-website git commit: DynaBeans support added.
Date Thu, 04 May 2017 16:58:12 GMT
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/46c4861b/content/site/apidocs/src-html/org/apache/juneau/BeanMapEntry.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/src-html/org/apache/juneau/BeanMapEntry.html b/content/site/apidocs/src-html/org/apache/juneau/BeanMapEntry.html
index eb7d71d..ca04aaa 100644
--- a/content/site/apidocs/src-html/org/apache/juneau/BeanMapEntry.html
+++ b/content/site/apidocs/src-html/org/apache/juneau/BeanMapEntry.html
@@ -51,82 +51,85 @@
 <span class="sourceLineNo">043</span>public class BeanMapEntry implements Map.Entry&lt;String,Object&gt;
{<a name="line.43"></a>
 <span class="sourceLineNo">044</span>   private final BeanMap&lt;?&gt;
beanMap;<a name="line.44"></a>
 <span class="sourceLineNo">045</span>   private final BeanPropertyMeta meta;<a
name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>   /**<a name="line.47"></a>
-<span class="sourceLineNo">048</span>    * Constructor.<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    *<a name="line.49"></a>
-<span class="sourceLineNo">050</span>    * @param beanMap The bean map that this
entry belongs to.<a name="line.50"></a>
-<span class="sourceLineNo">051</span>    * @param property The bean property.<a
name="line.51"></a>
-<span class="sourceLineNo">052</span>    */<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   protected BeanMapEntry(BeanMap&lt;?&gt;
beanMap, BeanPropertyMeta property) {<a name="line.53"></a>
-<span class="sourceLineNo">054</span>      this.beanMap = beanMap;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>      this.meta = property;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   }<a name="line.56"></a>
-<span class="sourceLineNo">057</span><a name="line.57"></a>
-<span class="sourceLineNo">058</span>   @Override /* Map.Entry */<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   public String getKey() {<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      return meta.getName();<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   }<a name="line.61"></a>
-<span class="sourceLineNo">062</span><a name="line.62"></a>
-<span class="sourceLineNo">063</span>   /**<a name="line.63"></a>
-<span class="sourceLineNo">064</span>    * Returns the value of this property.<a
name="line.64"></a>
-<span class="sourceLineNo">065</span>    * &lt;p&gt;<a name="line.65"></a>
-<span class="sourceLineNo">066</span>    * If there is a {@link PojoSwap} associated
with this bean property or bean property type class, then<a name="line.66"></a>
-<span class="sourceLineNo">067</span>    *    this method will return the transformed
value.<a name="line.67"></a>
-<span class="sourceLineNo">068</span>    * For example, if the bean property
type class is a {@link Date} and the bean property has the<a name="line.68"></a>
-<span class="sourceLineNo">069</span>    *    {@link org.apache.juneau.transforms.DateSwap.ISO8601DT}
swap associated with it through the<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    *    {@link BeanProperty#swap() @BeanProperty.swap()}
annotation, this method will return a String<a name="line.70"></a>
-<span class="sourceLineNo">071</span>    *    containing an ISO8601 date-time
string value.<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    */<a name="line.72"></a>
-<span class="sourceLineNo">073</span>   @Override /* Map.Entry */<a name="line.73"></a>
-<span class="sourceLineNo">074</span>   public Object getValue() {<a name="line.74"></a>
-<span class="sourceLineNo">075</span>      return meta.get(this.beanMap);<a
name="line.75"></a>
-<span class="sourceLineNo">076</span>   }<a name="line.76"></a>
-<span class="sourceLineNo">077</span><a name="line.77"></a>
-<span class="sourceLineNo">078</span>   /**<a name="line.78"></a>
-<span class="sourceLineNo">079</span>    * Sets the value of this property.<a
name="line.79"></a>
-<span class="sourceLineNo">080</span>    * &lt;p&gt;<a name="line.80"></a>
-<span class="sourceLineNo">081</span>    * If the property is an array of type
{@code X}, then the value can be a {@code Collection&lt;X&gt;} or {@code X[]} or {@code
Object[]}.<a name="line.81"></a>
-<span class="sourceLineNo">082</span>    * &lt;p&gt;<a name="line.82"></a>
-<span class="sourceLineNo">083</span>    * If the property is a bean type {@code
X}, then the value can either be an {@code X} or a {@code Map}.<a name="line.83"></a>
-<span class="sourceLineNo">084</span>    * &lt;p&gt;<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    * If there is a {@link PojoSwap} associated
with this bean property or bean property type class, then<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    *    you must pass in a transformed
value.<a name="line.86"></a>
-<span class="sourceLineNo">087</span>    * For example, if the bean property
type class is a {@link Date} and the bean property has the<a name="line.87"></a>
-<span class="sourceLineNo">088</span>    *    {@link org.apache.juneau.transforms.DateSwap.ISO8601DT}
swap associated with it through the<a name="line.88"></a>
-<span class="sourceLineNo">089</span>    *    {@link BeanProperty#swap() @BeanProperty.swap()}
annotation, the value being passed in must be<a name="line.89"></a>
-<span class="sourceLineNo">090</span>    *    a String containing an ISO8601
date-time string value.<a name="line.90"></a>
-<span class="sourceLineNo">091</span>    *<a name="line.91"></a>
-<span class="sourceLineNo">092</span>    * @return  The set value after it's
been converted.<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    */<a name="line.93"></a>
-<span class="sourceLineNo">094</span>   @Override /* Map.Entry */<a name="line.94"></a>
-<span class="sourceLineNo">095</span>   public Object setValue(Object value)
{<a name="line.95"></a>
-<span class="sourceLineNo">096</span>      return meta.set(this.beanMap, value);<a
name="line.96"></a>
-<span class="sourceLineNo">097</span>   }<a name="line.97"></a>
-<span class="sourceLineNo">098</span><a name="line.98"></a>
-<span class="sourceLineNo">099</span>   /**<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    * Returns the bean map that contains
this property.<a name="line.100"></a>
-<span class="sourceLineNo">101</span>    *<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    * @return The bean map that contains
this property.<a name="line.102"></a>
-<span class="sourceLineNo">103</span>    */<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   public BeanMap&lt;?&gt; getBeanMap()
{<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      return this.beanMap;<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   }<a name="line.106"></a>
-<span class="sourceLineNo">107</span><a name="line.107"></a>
-<span class="sourceLineNo">108</span>   /**<a name="line.108"></a>
-<span class="sourceLineNo">109</span>    * Returns the metadata about this bean
property.<a name="line.109"></a>
-<span class="sourceLineNo">110</span>    *<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    * @return Metadata about this bean property.<a
name="line.111"></a>
-<span class="sourceLineNo">112</span>    */<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   public BeanPropertyMeta getMeta() {<a
name="line.113"></a>
-<span class="sourceLineNo">114</span>      return this.meta;<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   }<a name="line.115"></a>
-<span class="sourceLineNo">116</span><a name="line.116"></a>
-<span class="sourceLineNo">117</span>   @Override /* Object */<a name="line.117"></a>
-<span class="sourceLineNo">118</span>   public String toString() {<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      return this.getKey() + "=" + this.getValue();<a
name="line.119"></a>
-<span class="sourceLineNo">120</span>   }<a name="line.120"></a>
-<span class="sourceLineNo">121</span>}<a name="line.121"></a>
+<span class="sourceLineNo">046</span>   private final String pName;<a name="line.46"></a>
+<span class="sourceLineNo">047</span><a name="line.47"></a>
+<span class="sourceLineNo">048</span>   /**<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    * Constructor.<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    *<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    * @param beanMap The bean map that this
entry belongs to.<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    * @param property The bean property.<a
name="line.52"></a>
+<span class="sourceLineNo">053</span>    * @param pName The bean property name.<a
name="line.53"></a>
+<span class="sourceLineNo">054</span>    */<a name="line.54"></a>
+<span class="sourceLineNo">055</span>   protected BeanMapEntry(BeanMap&lt;?&gt;
beanMap, BeanPropertyMeta property, String pName) {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>      this.beanMap = beanMap;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>      this.meta = property;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>      this.pName = pName;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   }<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>   @Override /* Map.Entry */<a name="line.61"></a>
+<span class="sourceLineNo">062</span>   public String getKey() {<a name="line.62"></a>
+<span class="sourceLineNo">063</span>      return meta.getName();<a name="line.63"></a>
+<span class="sourceLineNo">064</span>   }<a name="line.64"></a>
+<span class="sourceLineNo">065</span><a name="line.65"></a>
+<span class="sourceLineNo">066</span>   /**<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    * Returns the value of this property.<a
name="line.67"></a>
+<span class="sourceLineNo">068</span>    * &lt;p&gt;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    * If there is a {@link PojoSwap} associated
with this bean property or bean property type class, then<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    *    this method will return the transformed
value.<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    * For example, if the bean property
type class is a {@link Date} and the bean property has the<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    *    {@link org.apache.juneau.transforms.DateSwap.ISO8601DT}
swap associated with it through the<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    *    {@link BeanProperty#swap() @BeanProperty.swap()}
annotation, this method will return a String<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    *    containing an ISO8601 date-time
string value.<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    */<a name="line.75"></a>
+<span class="sourceLineNo">076</span>   @Override /* Map.Entry */<a name="line.76"></a>
+<span class="sourceLineNo">077</span>   public Object getValue() {<a name="line.77"></a>
+<span class="sourceLineNo">078</span>      return meta.get(this.beanMap, pName);<a
name="line.78"></a>
+<span class="sourceLineNo">079</span>   }<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>   /**<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    * Sets the value of this property.<a
name="line.82"></a>
+<span class="sourceLineNo">083</span>    * &lt;p&gt;<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    * If the property is an array of type
{@code X}, then the value can be a {@code Collection&lt;X&gt;} or {@code X[]} or {@code
Object[]}.<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    * &lt;p&gt;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    * If the property is a bean type {@code
X}, then the value can either be an {@code X} or a {@code Map}.<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    * &lt;p&gt;<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    * If there is a {@link PojoSwap} associated
with this bean property or bean property type class, then<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    *    you must pass in a transformed
value.<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    * For example, if the bean property
type class is a {@link Date} and the bean property has the<a name="line.90"></a>
+<span class="sourceLineNo">091</span>    *    {@link org.apache.juneau.transforms.DateSwap.ISO8601DT}
swap associated with it through the<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    *    {@link BeanProperty#swap() @BeanProperty.swap()}
annotation, the value being passed in must be<a name="line.92"></a>
+<span class="sourceLineNo">093</span>    *    a String containing an ISO8601
date-time string value.<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    *<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    * @return  The set value after it's
been converted.<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    */<a name="line.96"></a>
+<span class="sourceLineNo">097</span>   @Override /* Map.Entry */<a name="line.97"></a>
+<span class="sourceLineNo">098</span>   public Object setValue(Object value)
{<a name="line.98"></a>
+<span class="sourceLineNo">099</span>      return meta.set(this.beanMap, pName,
value);<a name="line.99"></a>
+<span class="sourceLineNo">100</span>   }<a name="line.100"></a>
+<span class="sourceLineNo">101</span><a name="line.101"></a>
+<span class="sourceLineNo">102</span>   /**<a name="line.102"></a>
+<span class="sourceLineNo">103</span>    * Returns the bean map that contains
this property.<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    *<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    * @return The bean map that contains
this property.<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    */<a name="line.106"></a>
+<span class="sourceLineNo">107</span>   public BeanMap&lt;?&gt; getBeanMap()
{<a name="line.107"></a>
+<span class="sourceLineNo">108</span>      return this.beanMap;<a name="line.108"></a>
+<span class="sourceLineNo">109</span>   }<a name="line.109"></a>
+<span class="sourceLineNo">110</span><a name="line.110"></a>
+<span class="sourceLineNo">111</span>   /**<a name="line.111"></a>
+<span class="sourceLineNo">112</span>    * Returns the metadata about this bean
property.<a name="line.112"></a>
+<span class="sourceLineNo">113</span>    *<a name="line.113"></a>
+<span class="sourceLineNo">114</span>    * @return Metadata about this bean property.<a
name="line.114"></a>
+<span class="sourceLineNo">115</span>    */<a name="line.115"></a>
+<span class="sourceLineNo">116</span>   public BeanPropertyMeta getMeta() {<a
name="line.116"></a>
+<span class="sourceLineNo">117</span>      return this.meta;<a name="line.117"></a>
+<span class="sourceLineNo">118</span>   }<a name="line.118"></a>
+<span class="sourceLineNo">119</span><a name="line.119"></a>
+<span class="sourceLineNo">120</span>   @Override /* Object */<a name="line.120"></a>
+<span class="sourceLineNo">121</span>   public String toString() {<a name="line.121"></a>
+<span class="sourceLineNo">122</span>      return this.getKey() + "=" + this.getValue();<a
name="line.122"></a>
+<span class="sourceLineNo">123</span>   }<a name="line.123"></a>
+<span class="sourceLineNo">124</span>}<a name="line.124"></a>
 
 
 


Mime
View raw message