1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_07) on Fri Apr 11 15:39:16 BST 2008 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
8 BeanMap (Commons Collections
3.2.1 API)
11 <META NAME=
"keywords" CONTENT=
"org.apache.commons.collections.BeanMap class">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"BeanMap (Commons Collections 3.2.1 API)";
26 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME=
"navbar_top"><!-- --></A>
31 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
32 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
34 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
35 <A NAME=
"navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
37 <TR ALIGN=
"center" VALIGN=
"top">
38 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/BeanMap.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
44 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
45 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
49 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
55 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
56 <A HREF=
"../../../../org/apache/commons/collections/BagUtils.html" title=
"class in org.apache.commons.collections"><B>PREV CLASS
</B></A>
57 <A HREF=
"../../../../org/apache/commons/collections/BeanMap.MyMapEntry.html" title=
"class in org.apache.commons.collections"><B>NEXT CLASS
</B></A></FONT></TD>
58 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
59 <A HREF=
"../../../../index.html?org/apache/commons/collections/BeanMap.html" target=
"_top"><B>FRAMES
</B></A>
60 <A HREF=
"BeanMap.html" target=
"_top"><B>NO FRAMES
</B></A>
61 <SCRIPT type=
"text/javascript">
64 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 SUMMARY:
<A HREF=
"#nested_class_summary">NESTED
</A> |
<A HREF=
"#field_summary">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 DETAIL:
<A HREF=
"#field_detail">FIELD
</A> |
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
82 <A NAME=
"skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
89 org.apache.commons.collections
</FONT>
94 <IMG SRC=
"../../../../resources/inherit.gif" ALT=
"extended by ">java.util.AbstractMap
95 <IMG SRC=
"../../../../resources/inherit.gif" ALT=
"extended by "><B>org.apache.commons.collections.BeanMap
</B>
98 <DT><B>All Implemented Interfaces:
</B> <DD>java.lang.Cloneable, java.util.Map
</DD>
101 <B>Deprecated.
</B> <I>Identical class now available in commons-beanutils (full jar version).
102 This version is due to be removed in collections v4.0.
</I>
105 <DT><PRE>public class
<B>BeanMap
</B><DT>extends java.util.AbstractMap
<DT>implements java.lang.Cloneable
</DL>
109 An implementation of Map for JavaBeans which uses introspection to
110 get and put properties in the bean.
112 If an exception occurs during attempts to get or set a property then the
113 property is considered non existent in the Map
118 <DT><B>Since:
</B></DT>
119 <DD>Commons Collections
1.0</DD>
120 <DT><B>Version:
</B></DT>
121 <DD>$Revision:
646777 $ $Date:
2008-
04-
10 13:
33:
15 +
0100 (Thu,
10 Apr
2008) $
</DD>
122 <DT><B>Author:
</B></DT>
123 <DD>James Strachan, Stephen Colebourne, Dimiter Dimitrov
</DD>
128 <!-- ======== NESTED CLASS SUMMARY ======== -->
130 <A NAME=
"nested_class_summary"><!-- --></A>
131 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
132 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
133 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
134 <B>Nested Class Summary
</B></FONT></TH>
136 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
137 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
138 <CODE>protected static
class
</CODE></FONT></TD>
139 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.MyMapEntry.html" title=
"class in org.apache.commons.collections">BeanMap.MyMapEntry
</A></B></CODE>
142 <B>Deprecated.
</B> Map entry used by
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html" title=
"class in org.apache.commons.collections"><CODE>BeanMap
</CODE></A>.
</TD>
145 <A NAME=
"nested_classes_inherited_from_class_java.util.Map"><!-- --></A>
146 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
147 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
148 <TH ALIGN=
"left"><B>Nested classes/interfaces inherited from interface java.util.Map
</B></TH>
150 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
151 <TD><CODE>java.util.Map.Entry
</CODE></TD>
155 <!-- =========== FIELD SUMMARY =========== -->
157 <A NAME=
"field_summary"><!-- --></A>
158 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
159 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
160 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
161 <B>Field Summary
</B></FONT></TH>
163 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
164 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
165 <CODE>static
java.util.HashMap
</CODE></FONT></TD>
166 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#defaultTransformers">defaultTransformers
</A></B></CODE>
169 <B>Deprecated.
</B> Maps primitive Class types to transformers.
</TD>
171 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
172 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
173 <CODE>static
java.lang.Object[]
</CODE></FONT></TD>
174 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#NULL_ARGUMENTS">NULL_ARGUMENTS
</A></B></CODE>
177 <B>Deprecated.
</B> An empty array.
</TD>
181 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
183 <A NAME=
"constructor_summary"><!-- --></A>
184 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
185 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
186 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
187 <B>Constructor Summary
</B></FONT></TH>
189 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
190 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#BeanMap()">BeanMap
</A></B>()
</CODE>
193 <B>Deprecated.
</B> Constructs a new empty
<code>BeanMap
</code>.
</TD>
195 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
196 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#BeanMap(java.lang.Object)">BeanMap
</A></B>(java.lang.Object
bean)
</CODE>
199 <B>Deprecated.
</B> Constructs a new
<code>BeanMap
</code> that operates on the
204 <!-- ========== METHOD SUMMARY =========== -->
206 <A NAME=
"method_summary"><!-- --></A>
207 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
208 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
209 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
210 <B>Method Summary
</B></FONT></TH>
212 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
213 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
214 <CODE> void
</CODE></FONT></TD>
215 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#clear()">clear
</A></B>()
</CODE>
218 <B>Deprecated.
</B> This method reinitializes the bean map to have default values for the
219 bean's properties.
</TD>
221 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
222 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
223 <CODE> java.lang.Object
</CODE></FONT></TD>
224 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#clone()">clone
</A></B>()
</CODE>
227 <B>Deprecated.
</B> Clone this bean map using the following process:
230 If there is no underlying bean, return a cloned BeanMap without a
233 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
234 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
235 <CODE> boolean
</CODE></FONT></TD>
236 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#containsKey(java.lang.Object)">containsKey
</A></B>(java.lang.Object
name)
</CODE>
239 <B>Deprecated.
</B> Returns true if the bean defines a property with the given name.
</TD>
241 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
242 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
243 <CODE> boolean
</CODE></FONT></TD>
244 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#containsValue(java.lang.Object)">containsValue
</A></B>(java.lang.Object
value)
</CODE>
247 <B>Deprecated.
</B> Returns true if the bean defines a property whose current value is
248 the given object.
</TD>
250 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
251 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
252 <CODE>protected
java.lang.Object
</CODE></FONT></TD>
253 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#convertType(java.lang.Class, java.lang.Object)">convertType
</A></B>(java.lang.Class
newType,
254 java.lang.Object
value)
</CODE>
257 <B>Deprecated.
</B> Converts the given value to the given type.
</TD>
259 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
260 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
261 <CODE>protected
java.lang.Object[]
</CODE></FONT></TD>
262 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#createWriteMethodArguments(java.lang.reflect.Method, java.lang.Object)">createWriteMethodArguments
</A></B>(java.lang.reflect.Method
method,
263 java.lang.Object
value)
</CODE>
266 <B>Deprecated.
</B> Creates an array of parameters to pass to the given mutator method.
</TD>
268 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
269 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
270 <CODE> java.util.Iterator
</CODE></FONT></TD>
271 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#entryIterator()">entryIterator
</A></B>()
</CODE>
274 <B>Deprecated.
</B> Convenience method for getting an iterator over the entries.
</TD>
276 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
277 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
278 <CODE> java.util.Set
</CODE></FONT></TD>
279 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#entrySet()">entrySet
</A></B>()
</CODE>
282 <B>Deprecated.
</B> Gets a Set of MapEntry objects that are the mappings for this BeanMap.
</TD>
284 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
285 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
286 <CODE>protected
void
</CODE></FONT></TD>
287 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#firePropertyChange(java.lang.Object, java.lang.Object, java.lang.Object)">firePropertyChange
</A></B>(java.lang.Object
key,
288 java.lang.Object
oldValue,
289 java.lang.Object
newValue)
</CODE>
292 <B>Deprecated.
</B> Called during a successful
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#put(java.lang.Object, java.lang.Object)"><CODE>put(Object,Object)
</CODE></A> operation.
</TD>
294 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
295 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
296 <CODE> java.lang.Object
</CODE></FONT></TD>
297 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#get(java.lang.Object)">get
</A></B>(java.lang.Object
name)
</CODE>
300 <B>Deprecated.
</B> Returns the value of the bean's property with the given name.
</TD>
302 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
303 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
304 <CODE> java.lang.Object
</CODE></FONT></TD>
305 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#getBean()">getBean
</A></B>()
</CODE>
308 <B>Deprecated.
</B> Returns the bean currently being operated on.
</TD>
310 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
311 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
312 <CODE>protected
java.lang.reflect.Method
</CODE></FONT></TD>
313 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#getReadMethod(java.lang.Object)">getReadMethod
</A></B>(java.lang.Object
name)
</CODE>
316 <B>Deprecated.
</B> Returns the accessor for the property with the given name.
</TD>
318 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
319 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
320 <CODE> java.lang.reflect.Method
</CODE></FONT></TD>
321 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#getReadMethod(java.lang.String)">getReadMethod
</A></B>(java.lang.String
name)
</CODE>
324 <B>Deprecated.
</B> Returns the accessor for the property with the given name.
</TD>
326 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
327 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
328 <CODE> java.lang.Class
</CODE></FONT></TD>
329 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#getType(java.lang.String)">getType
</A></B>(java.lang.String
name)
</CODE>
332 <B>Deprecated.
</B> Returns the type of the property with the given name.
</TD>
334 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
335 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
336 <CODE>protected
<A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A></CODE></FONT></TD>
337 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#getTypeTransformer(java.lang.Class)">getTypeTransformer
</A></B>(java.lang.Class
aType)
</CODE>
340 <B>Deprecated.
</B> Returns a transformer for the given primitive type.
</TD>
342 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
343 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
344 <CODE>protected
java.lang.reflect.Method
</CODE></FONT></TD>
345 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#getWriteMethod(java.lang.Object)">getWriteMethod
</A></B>(java.lang.Object
name)
</CODE>
348 <B>Deprecated.
</B> Returns the mutator for the property with the given name.
</TD>
350 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
351 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
352 <CODE> java.lang.reflect.Method
</CODE></FONT></TD>
353 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#getWriteMethod(java.lang.String)">getWriteMethod
</A></B>(java.lang.String
name)
</CODE>
356 <B>Deprecated.
</B> Returns the mutator for the property with the given name.
</TD>
358 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
359 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
360 <CODE> java.util.Iterator
</CODE></FONT></TD>
361 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#keyIterator()">keyIterator
</A></B>()
</CODE>
364 <B>Deprecated.
</B> Convenience method for getting an iterator over the keys.
</TD>
366 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
367 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
368 <CODE> java.util.Set
</CODE></FONT></TD>
369 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#keySet()">keySet
</A></B>()
</CODE>
372 <B>Deprecated.
</B> Get the keys for this BeanMap.
</TD>
374 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
375 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
376 <CODE>protected
void
</CODE></FONT></TD>
377 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#logInfo(java.lang.Exception)">logInfo
</A></B>(java.lang.Exception
ex)
</CODE>
380 <B>Deprecated.
</B> Logs the given exception to
<code>System.out
</code>.
</TD>
382 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
383 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
384 <CODE>protected
void
</CODE></FONT></TD>
385 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#logWarn(java.lang.Exception)">logWarn
</A></B>(java.lang.Exception
ex)
</CODE>
388 <B>Deprecated.
</B> Logs the given exception to
<code>System.err
</code>.
</TD>
390 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
391 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
392 <CODE> java.lang.Object
</CODE></FONT></TD>
393 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#put(java.lang.Object, java.lang.Object)">put
</A></B>(java.lang.Object
name,
394 java.lang.Object
value)
</CODE>
397 <B>Deprecated.
</B> Sets the bean property with the given name to the given value.
</TD>
399 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
400 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
401 <CODE> void
</CODE></FONT></TD>
402 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#putAllWriteable(org.apache.commons.collections.BeanMap)">putAllWriteable
</A></B>(
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html" title=
"class in org.apache.commons.collections">BeanMap
</A> map)
</CODE>
405 <B>Deprecated.
</B> Puts all of the writable properties from the given BeanMap into this
408 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
409 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
410 <CODE>protected
void
</CODE></FONT></TD>
411 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#reinitialise()">reinitialise
</A></B>()
</CODE>
414 <B>Deprecated.
</B> Reinitializes this bean.
</TD>
416 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
417 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
418 <CODE> void
</CODE></FONT></TD>
419 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#setBean(java.lang.Object)">setBean
</A></B>(java.lang.Object
newBean)
</CODE>
422 <B>Deprecated.
</B> Sets the bean to be operated on by this map.
</TD>
424 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
425 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
426 <CODE> int
</CODE></FONT></TD>
427 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#size()">size
</A></B>()
</CODE>
430 <B>Deprecated.
</B> Returns the number of properties defined by the bean.
</TD>
432 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
433 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
434 <CODE> java.lang.String
</CODE></FONT></TD>
435 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#toString()">toString
</A></B>()
</CODE>
438 <B>Deprecated.
</B> </TD>
440 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
441 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
442 <CODE> java.util.Iterator
</CODE></FONT></TD>
443 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#valueIterator()">valueIterator
</A></B>()
</CODE>
446 <B>Deprecated.
</B> Convenience method for getting an iterator over the values.
</TD>
448 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
449 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
450 <CODE> java.util.Collection
</CODE></FONT></TD>
451 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#values()">values
</A></B>()
</CODE>
454 <B>Deprecated.
</B> Returns the values for the BeanMap.
</TD>
457 <A NAME=
"methods_inherited_from_class_java.util.AbstractMap"><!-- --></A>
458 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
459 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
460 <TH ALIGN=
"left"><B>Methods inherited from class java.util.AbstractMap
</B></TH>
462 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
463 <TD><CODE>equals, hashCode, isEmpty, putAll, remove
</CODE></TD>
466 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
467 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
468 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
469 <TH ALIGN=
"left"><B>Methods inherited from class java.lang.Object
</B></TH>
471 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
472 <TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait
</CODE></TD>
478 <!-- ============ FIELD DETAIL =========== -->
480 <A NAME=
"field_detail"><!-- --></A>
481 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
482 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
483 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
484 <B>Field Detail
</B></FONT></TH>
488 <A NAME=
"NULL_ARGUMENTS"><!-- --></A><H3>
491 public static final java.lang.Object[]
<B>NULL_ARGUMENTS
</B></PRE>
493 <DD><B>Deprecated.
</B> <DD>An empty array. Used to invoke accessors via reflection.
500 <A NAME=
"defaultTransformers"><!-- --></A><H3>
501 defaultTransformers
</H3>
503 public static java.util.HashMap
<B>defaultTransformers
</B></PRE>
505 <DD><B>Deprecated.
</B> <DD>Maps primitive Class types to transformers. The transformer
506 transform strings into the appropriate primitive wrapper.
512 <!-- ========= CONSTRUCTOR DETAIL ======== -->
514 <A NAME=
"constructor_detail"><!-- --></A>
515 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
516 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
517 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
518 <B>Constructor Detail
</B></FONT></TH>
522 <A NAME=
"BeanMap()"><!-- --></A><H3>
525 public
<B>BeanMap
</B>()
</PRE>
527 <DD><B>Deprecated.
</B> <DD>Constructs a new empty
<code>BeanMap
</code>.
532 <A NAME=
"BeanMap(java.lang.Object)"><!-- --></A><H3>
535 public
<B>BeanMap
</B>(java.lang.Object
bean)
</PRE>
537 <DD><B>Deprecated.
</B> <DD>Constructs a new
<code>BeanMap
</code> that operates on the
538 specified bean. If the given bean is
<code>null
</code>, then
539 this map will be empty.
542 <DT><B>Parameters:
</B><DD><CODE>bean
</CODE> - the bean for this map to operate on
</DL>
545 <!-- ============ METHOD DETAIL ========== -->
547 <A NAME=
"method_detail"><!-- --></A>
548 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
549 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
550 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
551 <B>Method Detail
</B></FONT></TH>
555 <A NAME=
"toString()"><!-- --></A><H3>
558 public java.lang.String
<B>toString
</B>()
</PRE>
560 <DD><B>Deprecated.
</B> <DD><DL>
561 <DT><B>Overrides:
</B><DD><CODE>toString
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
569 <A NAME=
"clone()"><!-- --></A><H3>
572 public java.lang.Object
<B>clone
</B>()
573 throws java.lang.CloneNotSupportedException
</PRE>
575 <DD><B>Deprecated.
</B> <DD>Clone this bean map using the following process:
578 <li>If there is no underlying bean, return a cloned BeanMap without a
581 <li>Since there is an underlying bean, try to instantiate a new bean of
582 the same type using Class.newInstance().
584 <li>If the instantiation fails, throw a CloneNotSupportedException
586 <li>Clone the bean map and set the newly instantiated bean as the
587 underlying bean for the bean map.
589 <li>Copy each property that is both readable and writable from the
590 existing object to a cloned bean map.
592 <li>If anything fails along the way, throw a
593 CloneNotSupportedException.
598 <DT><B>Overrides:
</B><DD><CODE>clone
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
603 <DD><CODE>java.lang.CloneNotSupportedException
</CODE></DL>
608 <A NAME=
"putAllWriteable(org.apache.commons.collections.BeanMap)"><!-- --></A><H3>
611 public void
<B>putAllWriteable
</B>(
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html" title=
"class in org.apache.commons.collections">BeanMap
</A> map)
</PRE>
613 <DD><B>Deprecated.
</B> <DD>Puts all of the writable properties from the given BeanMap into this
614 BeanMap. Read-only and Write-only properties will be ignored.
620 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the BeanMap whose properties to put
</DL>
625 <A NAME=
"clear()"><!-- --></A><H3>
628 public void
<B>clear
</B>()
</PRE>
630 <DD><B>Deprecated.
</B> <DD>This method reinitializes the bean map to have default values for the
631 bean's properties. This is accomplished by constructing a new instance
632 of the bean which the map uses as its underlying data source. This
633 behavior for
<code>clear()
</code> differs from the Map contract in that
634 the mappings are not actually removed from the map (the mappings for a
638 <DT><B>Specified by:
</B><DD><CODE>clear
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Overrides:
</B><DD><CODE>clear
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
646 <A NAME=
"containsKey(java.lang.Object)"><!-- --></A><H3>
649 public boolean
<B>containsKey
</B>(java.lang.Object
name)
</PRE>
651 <DD><B>Deprecated.
</B> <DD>Returns true if the bean defines a property with the given name.
653 The given name must be a
<code>String
</code>; if not, this method
654 returns false. This method will also return false if the bean
655 does not define a property with that name.
657 Write-only properties will not be matched as the test operates against
658 property read methods.
661 <DT><B>Specified by:
</B><DD><CODE>containsKey
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Overrides:
</B><DD><CODE>containsKey
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
664 <DT><B>Parameters:
</B><DD><CODE>name
</CODE> - the name of the property to check
665 <DT><B>Returns:
</B><DD>false if the given name is null or is not a
<code>String
</code>;
666 false if the bean does not define a property with that name; or
667 true if the bean does define a property with that name
</DL>
672 <A NAME=
"containsValue(java.lang.Object)"><!-- --></A><H3>
675 public boolean
<B>containsValue
</B>(java.lang.Object
value)
</PRE>
677 <DD><B>Deprecated.
</B> <DD>Returns true if the bean defines a property whose current value is
681 <DT><B>Specified by:
</B><DD><CODE>containsValue
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Overrides:
</B><DD><CODE>containsValue
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
684 <DT><B>Parameters:
</B><DD><CODE>value
</CODE> - the value to check
685 <DT><B>Returns:
</B><DD>false true if the bean has at least one property whose
686 current value is that object, false otherwise
</DL>
691 <A NAME=
"get(java.lang.Object)"><!-- --></A><H3>
694 public java.lang.Object
<B>get
</B>(java.lang.Object
name)
</PRE>
696 <DD><B>Deprecated.
</B> <DD>Returns the value of the bean's property with the given name.
698 The given name must be a
<CODE>String
</CODE> and must not be
699 null; otherwise, this method returns
<code>null
</code>.
700 If the bean defines a property with the given name, the value of
701 that property is returned. Otherwise,
<code>null
</code> is
704 Write-only properties will not be matched as the test operates against
705 property read methods.
708 <DT><B>Specified by:
</B><DD><CODE>get
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Overrides:
</B><DD><CODE>get
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
711 <DT><B>Parameters:
</B><DD><CODE>name
</CODE> - the name of the property whose value to return
712 <DT><B>Returns:
</B><DD>the value of the property with that name
</DL>
717 <A NAME=
"put(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
720 public java.lang.Object
<B>put
</B>(java.lang.Object
name,
721 java.lang.Object
value)
722 throws java.lang.IllegalArgumentException,
723 java.lang.ClassCastException
</PRE>
725 <DD><B>Deprecated.
</B> <DD>Sets the bean property with the given name to the given value.
728 <DT><B>Specified by:
</B><DD><CODE>put
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Overrides:
</B><DD><CODE>put
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
731 <DT><B>Parameters:
</B><DD><CODE>name
</CODE> - the name of the property to set
<DD><CODE>value
</CODE> - the value to set that property to
732 <DT><B>Returns:
</B><DD>the previous value of that property
734 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the given name is null;
735 if the given name is not a
<CODE>String
</CODE>; if the bean doesn't
736 define a property with that name; or if the bean property with
737 that name is read-only
738 <DD><CODE>java.lang.ClassCastException
</CODE></DL>
743 <A NAME=
"size()"><!-- --></A><H3>
746 public int
<B>size
</B>()
</PRE>
748 <DD><B>Deprecated.
</B> <DD>Returns the number of properties defined by the bean.
751 <DT><B>Specified by:
</B><DD><CODE>size
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Overrides:
</B><DD><CODE>size
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
755 <DT><B>Returns:
</B><DD>the number of properties defined by the bean
</DL>
760 <A NAME=
"keySet()"><!-- --></A><H3>
763 public java.util.Set
<B>keySet
</B>()
</PRE>
765 <DD><B>Deprecated.
</B> <DD>Get the keys for this BeanMap.
767 Write-only properties are
<b>not
</b> included in the returned set of
768 property names, although it is possible to set their value and to get
772 <DT><B>Specified by:
</B><DD><CODE>keySet
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Overrides:
</B><DD><CODE>keySet
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
776 <DT><B>Returns:
</B><DD>BeanMap keys. The Set returned by this method is not
782 <A NAME=
"entrySet()"><!-- --></A><H3>
785 public java.util.Set
<B>entrySet
</B>()
</PRE>
787 <DD><B>Deprecated.
</B> <DD>Gets a Set of MapEntry objects that are the mappings for this BeanMap.
789 Each MapEntry can be set but not removed.
792 <DT><B>Specified by:
</B><DD><CODE>entrySet
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Specified by:
</B><DD><CODE>entrySet
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
796 <DT><B>Returns:
</B><DD>the unmodifiable set of mappings
</DL>
801 <A NAME=
"values()"><!-- --></A><H3>
804 public java.util.Collection
<B>values
</B>()
</PRE>
806 <DD><B>Deprecated.
</B> <DD>Returns the values for the BeanMap.
809 <DT><B>Specified by:
</B><DD><CODE>values
</CODE> in interface
<CODE>java.util.Map
</CODE><DT><B>Overrides:
</B><DD><CODE>values
</CODE> in class
<CODE>java.util.AbstractMap
</CODE></DL>
813 <DT><B>Returns:
</B><DD>values for the BeanMap. The returned collection is not
819 <A NAME=
"getType(java.lang.String)"><!-- --></A><H3>
822 public java.lang.Class
<B>getType
</B>(java.lang.String
name)
</PRE>
824 <DD><B>Deprecated.
</B> <DD>Returns the type of the property with the given name.
830 <DT><B>Parameters:
</B><DD><CODE>name
</CODE> - the name of the property
831 <DT><B>Returns:
</B><DD>the type of the property, or
<code>null
</code> if no such
837 <A NAME=
"keyIterator()"><!-- --></A><H3>
840 public java.util.Iterator
<B>keyIterator
</B>()
</PRE>
842 <DD><B>Deprecated.
</B> <DD>Convenience method for getting an iterator over the keys.
844 Write-only properties will not be returned in the iterator.
851 <DT><B>Returns:
</B><DD>an iterator over the keys
</DL>
856 <A NAME=
"valueIterator()"><!-- --></A><H3>
859 public java.util.Iterator
<B>valueIterator
</B>()
</PRE>
861 <DD><B>Deprecated.
</B> <DD>Convenience method for getting an iterator over the values.
868 <DT><B>Returns:
</B><DD>an iterator over the values
</DL>
873 <A NAME=
"entryIterator()"><!-- --></A><H3>
876 public java.util.Iterator
<B>entryIterator
</B>()
</PRE>
878 <DD><B>Deprecated.
</B> <DD>Convenience method for getting an iterator over the entries.
885 <DT><B>Returns:
</B><DD>an iterator over the entries
</DL>
890 <A NAME=
"getBean()"><!-- --></A><H3>
893 public java.lang.Object
<B>getBean
</B>()
</PRE>
895 <DD><B>Deprecated.
</B> <DD>Returns the bean currently being operated on. The return value may
896 be null if this map is empty.
903 <DT><B>Returns:
</B><DD>the bean being operated on by this map
</DL>
908 <A NAME=
"setBean(java.lang.Object)"><!-- --></A><H3>
911 public void
<B>setBean
</B>(java.lang.Object
newBean)
</PRE>
913 <DD><B>Deprecated.
</B> <DD>Sets the bean to be operated on by this map. The given value may
914 be null, in which case this map will be empty.
920 <DT><B>Parameters:
</B><DD><CODE>newBean
</CODE> - the new bean to operate on
</DL>
925 <A NAME=
"getReadMethod(java.lang.String)"><!-- --></A><H3>
928 public java.lang.reflect.Method
<B>getReadMethod
</B>(java.lang.String
name)
</PRE>
930 <DD><B>Deprecated.
</B> <DD>Returns the accessor for the property with the given name.
936 <DT><B>Parameters:
</B><DD><CODE>name
</CODE> - the name of the property
937 <DT><B>Returns:
</B><DD>the accessor method for the property, or null
</DL>
942 <A NAME=
"getWriteMethod(java.lang.String)"><!-- --></A><H3>
945 public java.lang.reflect.Method
<B>getWriteMethod
</B>(java.lang.String
name)
</PRE>
947 <DD><B>Deprecated.
</B> <DD>Returns the mutator for the property with the given name.
953 <DT><B>Parameters:
</B><DD><CODE>name
</CODE> - the name of the property
954 <DT><B>Returns:
</B><DD>the mutator method for the property, or null
</DL>
959 <A NAME=
"getReadMethod(java.lang.Object)"><!-- --></A><H3>
962 protected java.lang.reflect.Method
<B>getReadMethod
</B>(java.lang.Object
name)
</PRE>
964 <DD><B>Deprecated.
</B> <DD>Returns the accessor for the property with the given name.
970 <DT><B>Parameters:
</B><DD><CODE>name
</CODE> - the name of the property
971 <DT><B>Returns:
</B><DD>null if the name is null; null if the name is not a
972 <CODE>String
</CODE>; null if no such property exists; or the accessor
973 method for that property
</DL>
978 <A NAME=
"getWriteMethod(java.lang.Object)"><!-- --></A><H3>
981 protected java.lang.reflect.Method
<B>getWriteMethod
</B>(java.lang.Object
name)
</PRE>
983 <DD><B>Deprecated.
</B> <DD>Returns the mutator for the property with the given name.
989 <DT><B>Parameters:
</B><DD><CODE>name
</CODE> - the name of the
990 <DT><B>Returns:
</B><DD>null if the name is null; null if the name is not a
991 <CODE>String
</CODE>; null if no such property exists; null if the
992 property is read-only; or the mutator method for that property
</DL>
997 <A NAME=
"reinitialise()"><!-- --></A><H3>
1000 protected void
<B>reinitialise
</B>()
</PRE>
1002 <DD><B>Deprecated.
</B> <DD>Reinitializes this bean. Called during
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#setBean(java.lang.Object)"><CODE>setBean(Object)
</CODE></A>.
1003 Does introspection to find properties.
1014 <A NAME=
"firePropertyChange(java.lang.Object, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
1015 firePropertyChange
</H3>
1017 protected void
<B>firePropertyChange
</B>(java.lang.Object
key,
1018 java.lang.Object
oldValue,
1019 java.lang.Object
newValue)
</PRE>
1021 <DD><B>Deprecated.
</B> <DD>Called during a successful
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#put(java.lang.Object, java.lang.Object)"><CODE>put(Object,Object)
</CODE></A> operation.
1022 Default implementation does nothing. Override to be notified of
1023 property changes in the bean caused by this map.
1029 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - the name of the property that changed
<DD><CODE>oldValue
</CODE> - the old value for that property
<DD><CODE>newValue
</CODE> - the new value for that property
</DL>
1034 <A NAME=
"createWriteMethodArguments(java.lang.reflect.Method, java.lang.Object)"><!-- --></A><H3>
1035 createWriteMethodArguments
</H3>
1037 protected java.lang.Object[]
<B>createWriteMethodArguments
</B>(java.lang.reflect.Method
method,
1038 java.lang.Object
value)
1039 throws java.lang.IllegalAccessException,
1040 java.lang.ClassCastException
</PRE>
1042 <DD><B>Deprecated.
</B> <DD>Creates an array of parameters to pass to the given mutator method.
1043 If the given object is not the right type to pass to the method
1044 directly, it will be converted using
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#convertType(java.lang.Class, java.lang.Object)"><CODE>convertType(Class,Object)
</CODE></A>.
1050 <DT><B>Parameters:
</B><DD><CODE>method
</CODE> - the mutator method
<DD><CODE>value
</CODE> - the value to pass to the mutator method
1051 <DT><B>Returns:
</B><DD>an array containing one object that is either the given value
1052 or a transformed value
1054 <DD><CODE>java.lang.IllegalAccessException
</CODE> - if
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#convertType(java.lang.Class, java.lang.Object)"><CODE>convertType(Class,Object)
</CODE></A>
1056 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if any other exception is raised
1057 by
<A HREF=
"../../../../org/apache/commons/collections/BeanMap.html#convertType(java.lang.Class, java.lang.Object)"><CODE>convertType(Class,Object)
</CODE></A>
1058 <DD><CODE>java.lang.ClassCastException
</CODE></DL>
1063 <A NAME=
"convertType(java.lang.Class, java.lang.Object)"><!-- --></A><H3>
1066 protected java.lang.Object
<B>convertType
</B>(java.lang.Class
newType,
1067 java.lang.Object
value)
1068 throws java.lang.InstantiationException,
1069 java.lang.IllegalAccessException,
1070 java.lang.IllegalArgumentException,
1071 java.lang.reflect.InvocationTargetException
</PRE>
1073 <DD><B>Deprecated.
</B> <DD>Converts the given value to the given type. First, reflection is
1074 is used to find a public constructor declared by the given class
1075 that takes one argument, which must be the precise type of the
1076 given value. If such a constructor is found, a new object is
1077 created by passing the given value to that constructor, and the
1078 newly constructed object is returned.
<P>
1080 If no such constructor exists, and the given type is a primitive
1081 type, then the given value is converted to a string using its
1082 <CODE>toString()
</CODE> method, and that string is
1083 parsed into the correct primitive type using, for instance,
1084 <CODE>Integer.valueOf(String)
</CODE> to convert the string into an
1085 <code>int
</code>.
<P>
1087 If no special constructor exists and the given type is not a
1088 primitive type, this method returns the original value.
1094 <DT><B>Parameters:
</B><DD><CODE>newType
</CODE> - the type to convert the value to
<DD><CODE>value
</CODE> - the value to convert
1095 <DT><B>Returns:
</B><DD>the converted value
1097 <DD><CODE>java.lang.NumberFormatException
</CODE> - if newType is a primitive type, and
1098 the string representation of the given value cannot be converted
1100 <DD><CODE>java.lang.InstantiationException
</CODE> - if the constructor found with
1101 reflection raises it
1102 <DD><CODE>java.lang.reflect.InvocationTargetException
</CODE> - if the constructor found with
1103 reflection raises it
1104 <DD><CODE>java.lang.IllegalAccessException
</CODE> - never
1105 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - never
</DL>
1110 <A NAME=
"getTypeTransformer(java.lang.Class)"><!-- --></A><H3>
1111 getTypeTransformer
</H3>
1113 protected
<A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> <B>getTypeTransformer
</B>(java.lang.Class
aType)
</PRE>
1115 <DD><B>Deprecated.
</B> <DD>Returns a transformer for the given primitive type.
1121 <DT><B>Parameters:
</B><DD><CODE>aType
</CODE> - the primitive type whose transformer to return
1122 <DT><B>Returns:
</B><DD>a transformer that will convert strings into that type,
1123 or null if the given type is not a primitive type
</DL>
1128 <A NAME=
"logInfo(java.lang.Exception)"><!-- --></A><H3>
1131 protected void
<B>logInfo
</B>(java.lang.Exception
ex)
</PRE>
1133 <DD><B>Deprecated.
</B> <DD>Logs the given exception to
<code>System.out
</code>. Used to display
1134 warnings while accessing/mutating the bean.
1140 <DT><B>Parameters:
</B><DD><CODE>ex
</CODE> - the exception to log
</DL>
1145 <A NAME=
"logWarn(java.lang.Exception)"><!-- --></A><H3>
1148 protected void
<B>logWarn
</B>(java.lang.Exception
ex)
</PRE>
1150 <DD><B>Deprecated.
</B> <DD>Logs the given exception to
<code>System.err
</code>. Used to display
1151 errors while accessing/mutating the bean.
1157 <DT><B>Parameters:
</B><DD><CODE>ex
</CODE> - the exception to log
</DL>
1160 <!-- ========= END OF CLASS DATA ========= -->
1164 <!-- ======= START OF BOTTOM NAVBAR ====== -->
1165 <A NAME=
"navbar_bottom"><!-- --></A>
1166 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
1167 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
1169 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
1170 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
1171 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
1172 <TR ALIGN=
"center" VALIGN=
"top">
1173 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
1174 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
1175 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
1176 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/BeanMap.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
1177 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
1178 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
1179 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
1180 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
1184 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
1190 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
1191 <A HREF=
"../../../../org/apache/commons/collections/BagUtils.html" title=
"class in org.apache.commons.collections"><B>PREV CLASS
</B></A>
1192 <A HREF=
"../../../../org/apache/commons/collections/BeanMap.MyMapEntry.html" title=
"class in org.apache.commons.collections"><B>NEXT CLASS
</B></A></FONT></TD>
1193 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
1194 <A HREF=
"../../../../index.html?org/apache/commons/collections/BeanMap.html" target=
"_top"><B>FRAMES
</B></A>
1195 <A HREF=
"BeanMap.html" target=
"_top"><B>NO FRAMES
</B></A>
1196 <SCRIPT type=
"text/javascript">
1199 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1204 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
1211 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
1212 SUMMARY:
<A HREF=
"#nested_class_summary">NESTED
</A> |
<A HREF=
"#field_summary">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
1213 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
1214 DETAIL:
<A HREF=
"#field_detail">FIELD
</A> |
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
1217 <A NAME=
"skip-navbar_bottom"></A>
1218 <!-- ======== END OF BOTTOM NAVBAR ======= -->
1221 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.