public ComboKeyField(XmlField field, Group group)
throws Exception
{
super(field, group);
onError = new ComboKey();
ComboKey tmpMinValue = null;
String tmpMinValueMessage = null;
boolean tmpMinValueForce = false;
ComboKey tmpMaxValue = null;
String tmpMaxValueMessage = null;
boolean tmpMaxValueForce = false;
for (int i=0; i<field.getRules().size(); i++)
{
Rule rule = (Rule)field.getRules().get(i);
if ( rule.getMinValue() != null )
{
tmpMinValue = new ComboKey(rule.getMinValue());
tmpMinValueMessage = rule.getMessage();
tmpMinValueForce = "force".equals(rule.getAction());
}
if ( rule.getMaxValue() != null )
{
tmpMaxValue = new ComboKey(rule.getMaxValue());
tmpMaxValueMessage = rule.getMessage();
tmpMaxValueForce = "force".equals(rule.getAction());
}
}
minValue = tmpMinValue;