/** * Lets a visitor visit a message of parts thereof. * * @param visitor MessageVisitor * @param visitable message element to be visited * @return the MessageVisitor * @throws HL7Exception if an error occurs while visiting */ public static <T extends MessageVisitor> T visit(Visitable visitable, T visitor) throws HL7Exception { visitable.accept(visitor, new Location()); return visitor; }
/** * Lets a visitor visit a message of parts thereof. * * @param visitor MessageVisitor * @param visitable message element to be visited * @return the MessageVisitor * @throws HL7Exception if an error occurs while visiting */ public static <T extends MessageVisitor> T visit(Visitable visitable, T visitor) throws HL7Exception { visitable.accept(visitor, new Location()); return visitor; }
public boolean accept(MessageVisitor visitor, Location currentLocation) throws HL7Exception { return getDelegate().accept(unmodifiableVisitor(visitor), currentLocation); }
public boolean accept(MessageVisitor visitor, Location currentLocation) throws HL7Exception { return getDelegate().accept(unmodifiableVisitor(visitor), currentLocation); }