protected void visitNestedStructures(MessageVisitor visitor, Location location) throws HL7Exception { for (String name : getNames()) { Structure[] structures = getAll(name); for (int j=0; j < structures.length; j++) { int rep = isRepeating(name) ? j : -1; Location nextLocation = structures[j].provideLocation(location, -1, rep); if (!structures[j].accept(visitor, nextLocation)) break; } } }
protected void visitNestedStructures(MessageVisitor visitor, Location location) throws HL7Exception { for (String name : getNames()) { Structure[] structures = getAll(name); for (int j=0; j < structures.length; j++) { int rep = isRepeating(name) ? j : -1; Location nextLocation = structures[j].provideLocation(location, -1, rep); if (!structures[j].accept(visitor, nextLocation)) break; } } }