/** * Return the value for the specified key from * the decorated {@link DynaBean}. * * @param key The {@link DynaBean}'s property name * @return The value for the specified property. */ public Object get(final Object key) { return getDynaBean().get(toString(key)); }
((DynaBean) bean).getDynaClass() + "'" ); return (((DynaBean) bean).get(name));
((DynaBean) bean).getDynaClass() + "'" ); return (((DynaBean) bean).get(name));
/** * Return the value for the specified key from * the decorated {@link DynaBean}. * * @param key The {@link DynaBean}'s property name * @return The value for the specified property. */ public Object get(final Object key) { return getDynaBean().get(toString(key)); }
name + "' on bean class '" + bean.getClass() + "'"); return (((DynaBean) bean).get(name, index));
/** * Returns the set of property values in the * decorated {@link DynaBean}. * * @return Unmodifiable collection of values. */ public Collection<Object> values() { final DynaProperty[] properties = getDynaProperties(); final List<Object> values = new ArrayList<Object>(properties.length); for (DynaProperty propertie : properties) { final String key = propertie.getName(); final Object value = getDynaBean().get(key); values.add(value); } return Collections.unmodifiableList(values); }
name + "'+ on bean class '" + bean.getClass() + "'"); return (((DynaBean) bean).get(name, key));
/** * Returns the set of property values in the * decorated {@link DynaBean}. * * @return Unmodifiable collection of values. */ public Collection<Object> values() { final DynaProperty[] properties = getDynaProperties(); final List<Object> values = new ArrayList<Object>(properties.length); for (DynaProperty propertie : properties) { final String key = propertie.getName(); final Object value = getDynaBean().get(key); values.add(value); } return Collections.unmodifiableList(values); }
name + "' on bean class '" + bean.getClass() + "'"); return (((DynaBean) bean).get(name, index));
/** * Indicates whether the decorated {@link DynaBean} contains * a specified value. * * @param value The value to check for. * @return <code>true</code> if one of the the {@link DynaBean}'s * properties contains the specified value, otherwise * <code>false</code>. */ public boolean containsValue(final Object value) { final DynaProperty[] properties = getDynaProperties(); for (DynaProperty propertie : properties) { final String key = propertie.getName(); final Object prop = getDynaBean().get(key); if (value == null) { if (prop == null) { return true; } } else { if (value.equals(prop)) { return true; } } } return false; }
name + "'+ on bean class '" + bean.getClass() + "'"); return (((DynaBean) bean).get(name, key));
/** * Indicates whether the decorated {@link DynaBean} contains * a specified value. * * @param value The value to check for. * @return <code>true</code> if one of the the {@link DynaBean}'s * properties contains the specified value, otherwise * <code>false</code>. */ public boolean containsValue(final Object value) { final DynaProperty[] properties = getDynaProperties(); for (DynaProperty propertie : properties) { final String key = propertie.getName(); final Object prop = getDynaBean().get(key); if (value == null) { if (prop == null) { return true; } } else { if (value.equals(prop)) { return true; } } } return false; }
if (isReadable(orig, name) && isWriteable(dest, name)) { try { final Object value = ((DynaBean) orig).get(name); if (dest instanceof DynaBean) { ((DynaBean) dest).set(name, value);
/** * <p>Returns the Set of the property/value mappings * in the decorated {@link DynaBean}.</p> * * <p>Each element in the Set is a <code>Map.Entry</code> * type.</p> * * @return An unmodifiable set of the DynaBean * property name/value pairs */ public Set<Map.Entry<K, Object>> entrySet() { final DynaProperty[] properties = getDynaProperties(); final Set<Map.Entry<K, Object>> set = new HashSet<Map.Entry<K, Object>>(properties.length); for (DynaProperty propertie : properties) { final K key = convertKey(propertie.getName()); final Object value = getDynaBean().get(propertie.getName()); set.add(new MapEntry<K>(key, value)); } return Collections.unmodifiableSet(set); }
if (isReadable(orig, name) && isWriteable(dest, name)) { try { final Object value = ((DynaBean) orig).get(name); if (dest instanceof DynaBean) { ((DynaBean) dest).set(name, value);
/** * <p>Returns the Set of the property/value mappings * in the decorated {@link DynaBean}.</p> * * <p>Each element in the Set is a <code>Map.Entry</code> * type.</p> * * @return An unmodifiable set of the DynaBean * property name/value pairs */ public Set<Map.Entry<K, Object>> entrySet() { final DynaProperty[] properties = getDynaProperties(); final Set<Map.Entry<K, Object>> set = new HashSet<Map.Entry<K, Object>>(properties.length); for (DynaProperty propertie : properties) { final K key = convertKey(propertie.getName()); final Object value = getDynaBean().get(propertie.getName()); set.add(new MapEntry<K>(key, value)); } return Collections.unmodifiableSet(set); }
final Object value = ((DynaBean) orig).get(name); copyProperty(dest, name, value);
/** * Set the value for the specified property in * the decorated {@link DynaBean}. * * @param key The {@link DynaBean}'s property name * @param value The value for the specified property. * @return The previous property's value. * @throws UnsupportedOperationException if * <code>isReadOnly()</code> is true. */ public Object put(final K key, final Object value) { if (isReadOnly()) { throw new UnsupportedOperationException("Map is read only"); } final String property = toString(key); final Object previous = getDynaBean().get(property); getDynaBean().set(property, value); return previous; }
final Object value = ((DynaBean) orig).get(name); copyProperty(dest, name, value);
/** * Set the value for the specified property in * the decorated {@link DynaBean}. * * @param key The {@link DynaBean}'s property name * @param value The value for the specified property. * @return The previous property's value. * @throws UnsupportedOperationException if * <code>isReadOnly()</code> is true. */ public Object put(final K key, final Object value) { if (isReadOnly()) { throw new UnsupportedOperationException("Map is read only"); } final String property = toString(key); final Object previous = getDynaBean().get(property); getDynaBean().set(property, value); return previous; }