return group;
}
/** Parses a segment profile */
private Seg parseSegmentProfile(Element elem) throws ProfileException {
Seg segment = new Seg();
log.debug("Parsing segment profile: " + elem.getAttribute("Name"));
parseProfileStuctureData(segment, elem);
int childIndex = 1;
NodeList children = elem.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
Node n = children.item(i);
if (n.getNodeType() == Node.ELEMENT_NODE) {
Element child = (Element) n;
if (child.getNodeName().equalsIgnoreCase("Field")) {
Field field = parseFieldProfile(child);
segment.setField(childIndex++, field);
}
}
}
return segment;