public interface Visitable
|Modifier and Type||Method and Description|
Callback method for the visitor.
Returns true if this Visitable has actual content
Reusing the location of this object's parent, this method returns its own location within the message.
boolean accept(MessageVisitor visitor, Location currentLocation) throws HL7Exception
thisas parameter, or traverse through a hierarchical substructure and call accept(MessageVisitor) for each visited element.
visitor- MessageVisitor instance to be called back
currentLocation- location of this object
trueif the visit process shall continue
HL7Exception- if a problem occurred during visiting
Location provideLocation(Location parentLocation, int index, int repetition)
parentLocation- the parents location
index- index of this object
repetition- repetition of this object
Copyright © 2001–2017 University Health Network. All rights reserved.