Field field = new Field(); log.debug(" Parsing field profile: " + elem.getAttribute("Name")); field.setUsage(elem.getAttribute("Usage")); String itemNo = elem.getAttribute("ItemNo"); String min = elem.getAttribute("Min"); field.setItemNo(Short.parseShort(itemNo)); field.setMin(Short.parseShort(min)); if (max.indexOf('*') >= 0) { field.setMax((short) -1); } else { field.setMax(Short.parseShort(max)); if (child.getNodeName().equalsIgnoreCase("Component")) { Component comp = (Component) parseComponentProfile(child, false); field.setComponent(childIndex++, comp);
if (profile.getComponents() > 0 && !profile.getUsage().equals("X")) { if (Composite.class.isAssignableFrom(type.getClass())) { Composite comp = (Composite) type; for (int i = 1; i <= profile.getComponents(); i++) { Component childProfile = profile.getComponent(i); try { Type child = comp.getComponent(i - 1); checkExtraComponents(comp, profile.getComponents(), exList); } else { exList.add(new ProfileNotHL7CompliantException("A field has type primitive "
Field field = new Field(); log.debug(" Parsing field profile: " + elem.getAttribute("Name")); field.setUsage(elem.getAttribute("Usage")); String itemNo = elem.getAttribute("ItemNo"); String min = elem.getAttribute("Min"); field.setItemNo(Short.parseShort(itemNo)); field.setMin(Short.parseShort(min)); if (max.indexOf('*') >= 0) { field.setMax((short) -1); } else { field.setMax(Short.parseShort(max)); if (child.getNodeName().equalsIgnoreCase("Component")) { Component comp = (Component) parseComponentProfile(child, false); field.setComponent(childIndex++, comp);
if (profile.getComponents() > 0 && !profile.getUsage().equals("X")) { if (Composite.class.isAssignableFrom(type.getClass())) { Composite comp = (Composite) type; for (int i = 1; i <= profile.getComponents(); i++) { Component childProfile = profile.getComponent(i); try { Type child = comp.getComponent(i - 1); checkExtraComponents(comp, profile.getComponents(), exList); } else { exList.add(new ProfileNotHL7CompliantException("A field has type primitive "