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 { checkExtraComponents(comp, profile.getComponents(), exList); } else { exList.add(new ProfileNotHL7CompliantException("A field has type primitive "
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 { checkExtraComponents(comp, profile.getComponents(), exList); } else { exList.add(new ProfileNotHL7CompliantException("A field has type primitive "