protected int getReps(String name) { try { return getAll(name).length; } catch (HL7Exception e) { String message = "Unexpected error accessing data - this is probably a bug in the source code generator."; log.error(message, e); throw new RuntimeException(message); } }
protected int getReps(String name) { try { return getAll(name).length; } catch (HL7Exception e) { String message = "Unexpected error accessing data - this is probably a bug in the source code generator."; log.error(message, e); throw new RuntimeException(message); } }
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; } } }