throw new IllegalStateException("unknown line parser " + e.getTagName());
}
private LineParser parseMultipleLineParser(Element e) {
MultipleLineParser lp = new MultipleLineParser();
NodeList children = e.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
Node item = children.item(i);
if (item instanceof Element) {
lp.addLineParser(parseLineParser((Element) item));
}
}
return lp;
}