Package com.tll.common.model

Examples of com.tll.common.model.DoublePropertyValue


    // test boolean prop types..
    address.set(new BooleanPropertyValue("boolean", new PropertyMetadata(PropertyType.BOOL, false, true, -1),
        Boolean.TRUE));

    // test float prop types..
    address.set(new DoublePropertyValue("float", new PropertyMetadata(PropertyType.FLOAT, false, true, 8), 33.33d));

    // test double prop types..
    address.set(new DoublePropertyValue("double", new PropertyMetadata(PropertyType.DOUBLE, false, true, 8), 44.44d));

    return address;
  }
View Full Code Here


   */
  public static Model stubCurrency() {
    final Model m = stubModel(TestEntityType.CURRENCY, null, false, null);
    m.set(new StringPropertyValue("iso4217", new PropertyMetadata(PropertyType.STRING, false, true, 8), "usd"));
    m.set(new StringPropertyValue("symbol", new PropertyMetadata(PropertyType.STRING, false, true, 8), "$"));
    m.set(new DoublePropertyValue("usdExchangeRage", new PropertyMetadata(PropertyType.DOUBLE, false, true, -1), 1d));
    return m;
  }
View Full Code Here

    else if(boolean.class == ptype || Boolean.class == ptype) {
      prop = new BooleanPropertyValue(pname, pdata, (Boolean) obj);
    }

    else if(double.class == ptype || Double.class == ptype) {
      prop = new DoublePropertyValue(pname, pdata, (Double) obj);
    }

    else if(float.class == ptype || Float.class == ptype) {
      prop = new DoublePropertyValue(pname, pdata, ((Float) obj).doubleValue());
    }

    else if(pdata != null && pdata.getPropertyType() == PropertyType.STRING_MAP) {
      prop = new StringMapPropertyValue(pname, pdata, (Map<String, String>) obj);
    }
View Full Code Here

TOP

Related Classes of com.tll.common.model.DoublePropertyValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.