Examples of TdrStaticRule


Examples of com.alu.e3.data.model.sub.TdrStaticRule

    return t;
  }

  private static TdrStaticRule toDataModel(StaticTdr staticTdr) {
    if (staticTdr==null) throw new IllegalArgumentException("staticTdr must not be null");
    TdrStaticRule t = new TdrStaticRule();
    t.setTdrPropName  (staticTdr.getTdrPropName());
    t.setValue      (staticTdr.getValue());
    t.setPropertyName  (staticTdr.getPropertyName());

    if(staticTdr.getTypes() != nullt.getTypes().addAll  (staticTdr.getTypes().getType());

    return t;
  }
View Full Code Here

Examples of com.alu.e3.data.model.sub.TdrStaticRule

   * @param propName
   * @param types
   * @return
   */
  public static TdrStaticRule getStaticRule(String name, String value, String propName, String...types){
    TdrStaticRule rule = new TdrStaticRule();
    rule.setTdrPropName(name);
    if(value != null && !value.equals("")){
      rule.setValue(value);
    }
    else if(propName != null && !propName.equals("")){
      rule.setPropertyName(propName);
    }

    for(String type : types)
      rule.getTypes().add(type);

    return rule;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.