org.apache.commons.beanutils.BasicDynaClass Java Examples

The following examples show how to use org.apache.commons.beanutils.BasicDynaClass. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, Double.valueOf(v));
	addObject(dynaBean);
}
 
Example #2
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, Double.valueOf(v));
	addObject(dynaBean);
}
 
Example #3
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, Double.valueOf(v));
	addObject(dynaBean);
}
 
Example #4
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, Double.valueOf(v));
	addObject(dynaBean);
}
 
Example #5
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, Double.valueOf(v));
	addObject(dynaBean);
}
 
Example #6
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, Double.valueOf(v));
	addObject(dynaBean);
}
 
Example #7
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, Double.valueOf(v));
	addObject(dynaBean);
}
 
Example #8
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, new Double(v));
	addObject(dynaBean);
}
 
Example #9
Source File: BeanListUnivariateImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
  *  Creates a {@link org.apache.commons.beanutils.DynaBean} with a 
  *  {@link org.apache.commons.beanutils.DynaProperty} named 
  *  <code>propertyName,</code> sets the value of the property to <code>v</code>
  *  and adds the DynaBean to the underlying list.
  *
  */
public void addValue(double v)  {
    DynaProperty[] props = new DynaProperty[] {
            new DynaProperty(propertyName, Double.class)
    };
    BasicDynaClass dynaClass = new BasicDynaClass(null, null, props);
    DynaBean dynaBean = null;
    try {
        dynaBean = dynaClass.newInstance();
    } catch (Exception ex) {              // InstantiationException, IllegalAccessException
        throw new RuntimeException(ex);   // should never happen
    }
	dynaBean.set(propertyName, Double.valueOf(v));
	addObject(dynaBean);
}