Example usage for Java org.apache.commons.beanutils BeanMap fields, constructors, methods, implement or subclass
The text is from its open source code.
BeanMap(Object bean) æž„é€ ä¸€ä¸ªæ–°çš„ BeanMap æ“?作指定的bean, 如果给定的bean是null , 那么 这个map将会是empty。 | |
BeanMap() æž„é€ ä¸€ä¸ªæ–°çš„emptyçš„ BeanMap . |
boolean | containsKey(Object name) Returns true if the bean defines a property with the given name. |
Iterator | entryIterator() Convenience method for getting an iterator over the entries. |
Set | entrySet() Gets a Set of MapEntry objects that are the mappings for this BeanMap. |
void | forEach(BiConsumer super K, ? super V> action) Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
Object | get(Object name) æ ¹æ?®å±žæ€§çš„å??称得到对应属性的值 给定的属性å??称必须是 String 而且必须ä¸?能为 null; å?¦åˆ™è¿™ä¸ªæ–¹æ³•返回 |
Object | getBean() Returns the bean currently being operated on. |
Method | getReadMethod(String name) Returns the accessor for the property with the given name. |
Method | getReadMethod(Object name) Returns the accessor for the property with the given name. |
Class | getType(String name) Returns the type of the property with the given name. |
Method | getWriteMethod(String name) Returns the mutator for the property with the given name. |
Method | getWriteMethod(Object name) Returns the mutator for the property with the given name. |
Iterator | keyIterator() Convenience method for getting an iterator over the keys. |
Set | keySet() Get the keys for this BeanMap. |
Object | put(Object name, Object value) Sets the bean property with the given name to the given value. |
void | putAll(Map extends K, ? extends V> m) |
void | setBean(Object newBean) Sets the bean to be operated on by this map. |