* @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;
}