| 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.
|
public boolean accept(MessageVisitor visitor, Location currentLocation) throws HL7Exception
Visitablethis as parameter, or
traverse through a hierarchical substructure and call accept(MessageVisitor)
for each visited element.accept in interface Visitablevisitor - MessageVisitor instance to be called backcurrentLocation - location of this objecttrue if the visit process shall continueHL7Exception - if a problem occurred during visitingpublic Location provideLocation(Location parentLocation, int index, int repetition)
VisitableprovideLocation in interface VisitableparentLocation - the parents locationindex - index of this objectrepetition - repetition of this objectpublic boolean isEmpty() throws HL7Exception
VisitableisEmpty in interface VisitableHL7Exception - if an error occurred while determining emptinessCopyright © 2001–2017 University Health Network. All rights reserved.