package cn.autoform.web.client.util.auto; public class RuleParam { private String type; private String condition; private String group; public String getVal(){ try{ RuleActuator ra = ParamFactory.getRuleActuator(type); return ra == null ? group : ra.getValue(this); }catch (Exception e) { return group; } } public RuleParam(String group) { this.type = group.substring(1, group.indexOf('{')); this.condition = group.substring(group.indexOf('{')+1, group.indexOf('}')); this.group = group; } public String getGroup() { return group; } public void setGroup(String group) { this.group = group; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getCondition() { return condition; } public void setCondition(String condition) { this.condition = condition; } }