@Override
public void endElement(String uri,String name, String qName) {
if (inRule && "rule".equals(qName)) {
if (hadLine) {
style.add(rule.cond, rule.conditions,
new LinePrototype(rule.line, new Range(rule.scaleMin, rule.scaleMax)));
}
if (hadLineMod) {
style.add(rule.cond, rule.conditions,
new LinemodPrototype(rule.linemod, new Range(rule.scaleMin, rule.scaleMax)));
}
if (hadIcon) {
style.add(rule.cond, rule.conditions,
new IconPrototype(rule.icon, new Range(rule.scaleMin, rule.scaleMax)));
}
if (hadArea) {
style.add(rule.cond, rule.conditions,
new AreaPrototype(rule.area, new Range(rule.scaleMin, rule.scaleMax)));
}
inRule = false;
hadLine = hadLineMod = hadIcon = hadArea = false;
rule.init();
} else if (inCondition && "condition".equals(qName)) {