/** * Set the value of a simple property with the specified name. * * @param name Name of the property whose value is to be set * @param value Value to which this property is to be set * * @throws ConversionException if the specified value cannot be * converted to the type required for this property * @throws IllegalArgumentException if there is no property * of the specified name * @throws NullPointerException if an attempt is made to set a * primitive property to null */ public void set(final String name, final Object value) { try { getPropertyUtils().setSimpleProperty(instance, name, value); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error setting property '" + name + "' nested exception -" + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error setting property '" + name + "', exception - " + t); } }
getPropertyUtils().setIndexedProperty(instance, name, index, value); } catch (final IndexOutOfBoundsException e) { throw e;
/** * Return the value of a simple property with the specified name. * * @param name Name of the property whose value is to be retrieved * @return The property's value * * @throws IllegalArgumentException if there is no property * of the specified name */ public Object get(final String name) { Object value = null; try { value = getPropertyUtils().getSimpleProperty(instance, name); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error reading property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error reading property '" + name + "', exception - " + t); } return (value); }
/** * Return the value of a mapped property with the specified name, * or <code>null</code> if there is no value for the specified key. * * @param name Name of the property whose value is to be retrieved * @param key Key of the value to be retrieved * @return The mapped property's value * * @throws IllegalArgumentException if there is no property * of the specified name * @throws IllegalArgumentException if the specified property * exists, but is not mapped */ public Object get(final String name, final String key) { Object value = null; try { value = getPropertyUtils().getMappedProperty(instance, name, key); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error reading mapped property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error reading mapped property '" + name + "', exception - " + t); } return (value); }
/** * Set the value of a mapped property with the specified name. * * @param name Name of the property whose value is to be set * @param key Key of the property to be set * @param value Value to which this property is to be set * * @throws ConversionException if the specified value cannot be * converted to the type required for this property * @throws IllegalArgumentException if there is no property * of the specified name * @throws IllegalArgumentException if the specified property * exists, but is not mapped */ public void set(final String name, final String key, final Object value) { try { getPropertyUtils().setMappedProperty(instance, name, key, value); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error setting mapped property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error setting mapped property '" + name + "', exception - " + t); } }
/** * Return the value of a simple property with the specified name. * * @param name Name of the property whose value is to be retrieved * @return The property's value * * @throws IllegalArgumentException if there is no property * of the specified name */ public Object get(final String name) { Object value = null; try { value = getPropertyUtils().getSimpleProperty(instance, name); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error reading property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error reading property '" + name + "', exception - " + t); } return (value); }
/** * Return the value of a mapped property with the specified name, * or <code>null</code> if there is no value for the specified key. * * @param name Name of the property whose value is to be retrieved * @param key Key of the value to be retrieved * @return The mapped property's value * * @throws IllegalArgumentException if there is no property * of the specified name * @throws IllegalArgumentException if the specified property * exists, but is not mapped */ public Object get(final String name, final String key) { Object value = null; try { value = getPropertyUtils().getMappedProperty(instance, name, key); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error reading mapped property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error reading mapped property '" + name + "', exception - " + t); } return (value); }
/** * Set the value of a simple property with the specified name. * * @param name Name of the property whose value is to be set * @param value Value to which this property is to be set * * @throws ConversionException if the specified value cannot be * converted to the type required for this property * @throws IllegalArgumentException if there is no property * of the specified name * @throws NullPointerException if an attempt is made to set a * primitive property to null */ public void set(final String name, final Object value) { try { getPropertyUtils().setSimpleProperty(instance, name, value); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error setting property '" + name + "' nested exception -" + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error setting property '" + name + "', exception - " + t); } }
/** * Set the value of a mapped property with the specified name. * * @param name Name of the property whose value is to be set * @param key Key of the property to be set * @param value Value to which this property is to be set * * @throws ConversionException if the specified value cannot be * converted to the type required for this property * @throws IllegalArgumentException if there is no property * of the specified name * @throws IllegalArgumentException if the specified property * exists, but is not mapped */ public void set(final String name, final String key, final Object value) { try { getPropertyUtils().setMappedProperty(instance, name, key, value); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error setting mapped property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error setting mapped property '" + name + "', exception - " + t); } }
value = getPropertyUtils().getIndexedProperty(instance, name, index); } catch (final IndexOutOfBoundsException e) { throw e;
value = getPropertyUtils().getIndexedProperty(instance, name, index); } catch (final IndexOutOfBoundsException e) { throw e;
getPropertyUtils().setIndexedProperty(instance, name, index, value); } catch (final IndexOutOfBoundsException e) { throw e;
/** * Set the value of a simple property with the specified name. * * @param name Name of the property whose value is to be set * @param value Value to which this property is to be set * * @throws ConversionException if the specified value cannot be * converted to the type required for this property * @throws IllegalArgumentException if there is no property * of the specified name * @throws NullPointerException if an attempt is made to set a * primitive property to null */ public void set(final String name, final Object value) { try { getPropertyUtils().setSimpleProperty(instance, name, value); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error setting property '" + name + "' nested exception -" + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error setting property '" + name + "', exception - " + t); } }
/** * Set the value of a mapped property with the specified name. * * @param name Name of the property whose value is to be set * @param key Key of the property to be set * @param value Value to which this property is to be set * * @throws ConversionException if the specified value cannot be * converted to the type required for this property * @throws IllegalArgumentException if there is no property * of the specified name * @throws IllegalArgumentException if the specified property * exists, but is not mapped */ public void set(final String name, final String key, final Object value) { try { getPropertyUtils().setMappedProperty(instance, name, key, value); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error setting mapped property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error setting mapped property '" + name + "', exception - " + t); } }
/** * Return the value of a simple property with the specified name. * * @param name Name of the property whose value is to be retrieved * @return The property's value * * @throws IllegalArgumentException if there is no property * of the specified name */ public Object get(final String name) { Object value = null; try { value = getPropertyUtils().getSimpleProperty(instance, name); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error reading property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error reading property '" + name + "', exception - " + t); } return (value); }
value = getPropertyUtils().getIndexedProperty(instance, name, index); } catch (final IndexOutOfBoundsException e) { throw e;
/** * Return the value of a mapped property with the specified name, * or <code>null</code> if there is no value for the specified key. * * @param name Name of the property whose value is to be retrieved * @param key Key of the value to be retrieved * @return The mapped property's value * * @throws IllegalArgumentException if there is no property * of the specified name * @throws IllegalArgumentException if the specified property * exists, but is not mapped */ public Object get(final String name, final String key) { Object value = null; try { value = getPropertyUtils().getMappedProperty(instance, name, key); } catch (final InvocationTargetException ite) { final Throwable cause = ite.getTargetException(); throw new IllegalArgumentException ("Error reading mapped property '" + name + "' nested exception - " + cause); } catch (final Throwable t) { throw new IllegalArgumentException ("Error reading mapped property '" + name + "', exception - " + t); } return (value); }
getPropertyUtils().setIndexedProperty(instance, name, index, value); } catch (final IndexOutOfBoundsException e) { throw e;