public Location provideLocation(Location location, int index, int repetition) { return data.provideLocation(location, index, repetition); }
public Location provideLocation(Location location, int index, int repetition) { return data.provideLocation(location, index, repetition); }
public Location provideLocation(Location parentLocation, int index, int repetition) { return getDelegate().provideLocation(parentLocation, index, repetition); }
public Location provideLocation(Location parentLocation, int index, int repetition) { return getDelegate().provideLocation(parentLocation, index, repetition); }
public boolean accept(MessageVisitor visitor, Location location) throws HL7Exception { if (visitor.start(this, location)) { Type[] types = getComponents(); for (int i = 0; i < types.length; i++) { Type t = getComponent(i); Location nextLocation = t.provideLocation(location, i + 1, location.getFieldRepetition()); if (!t.accept(visitor, nextLocation)) break; } ExtraComponents ec = getExtraComponents(); for (int i = 0; i < ec.numComponents(); i++) { Variable v = ec.getComponent(i); Location nextLocation = v.provideLocation(location, i + types.length, -1); if (!v.accept(visitor, nextLocation)) break; } } return visitor.end(this, location); }
public boolean accept(MessageVisitor visitor, Location location) throws HL7Exception { if (visitor.start(this, location)) { Type[] types = getComponents(); for (int i = 0; i < types.length; i++) { Type t = getComponent(i); Location nextLocation = t.provideLocation(location, i + 1, location.getFieldRepetition()); if (!t.accept(visitor, nextLocation)) break; } ExtraComponents ec = getExtraComponents(); for (int i = 0; i < ec.numComponents(); i++) { Variable v = ec.getComponent(i); Location nextLocation = v.provideLocation(location, i + types.length, -1); if (!v.accept(visitor, nextLocation)) break; } } return visitor.end(this, location); }