Package com.tll.common.model

Examples of com.tll.common.model.BooleanPropertyValue


  private static Model stubAccount(Model parentAccount, TestEntityType accountType, int num) {
    final Model m = stubModel(accountType, null, true, accountType.descriptor() + " " + num);
    m
    .set(new EnumPropertyValue("status", new PropertyMetadata(PropertyType.ENUM, false, true, 16),
        AccountStatus.OPEN));
    m.set(new BooleanPropertyValue("persistPymntInfo", new PropertyMetadata(PropertyType.BOOL, false, true, -1),
        Boolean.TRUE));
    m.set(new StringPropertyValue("billingModel", new PropertyMetadata(PropertyType.STRING, false, true, 32),
    "a billing model"));
    m.set(new StringPropertyValue("billingCycle", new PropertyMetadata(PropertyType.STRING, false, true, 32),
    "a billing cycle"));
View Full Code Here


        "zip " + num));
    address.set(new StringPropertyValue("country", new PropertyMetadata(PropertyType.STRING, false, true, 32),
        "country " + num));

    // 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));
View Full Code Here

    else if(char.class == ptype || Character.class == ptype) {
      prop = new CharacterPropertyValue(pname, pdata, (Character) obj);
    }

    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);
    }
View Full Code Here

TOP

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

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.