public interface Visitable
MessageVisitor
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MessageVisitor visitor,
Location currentLocation)
Callback method for the visitor.
|
boolean |
isEmpty()
Returns true if this Visitable has actual content
|
Location |
provideLocation(Location parentLocation,
int index,
int repetition)
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
this
as parameter, or
traverse through a hierarchical substructure and call accept(MessageVisitor)
for each visited element.visitor
- MessageVisitor instance to be called backcurrentLocation
- location of this objecttrue
if the visit process shall continueHL7Exception
- if a problem occurred during visitingLocation provideLocation(Location parentLocation, int index, int repetition)
parentLocation
- the parents locationindex
- index of this objectrepetition
- repetition of this objectboolean isEmpty() throws HL7Exception
HL7Exception
- if an error occurred while determining emptinessCopyright © 2001–2017 University Health Network. All rights reserved.