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
Visitable
this
as parameter, or
traverse through a hierarchical substructure and call accept(MessageVisitor)
for each visited element.accept
in interface Visitable
visitor
- 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)
Visitable
provideLocation
in interface Visitable
parentLocation
- the parents locationindex
- index of this objectrepetition
- repetition of this objectpublic boolean isEmpty() throws HL7Exception
Visitable
isEmpty
in interface Visitable
HL7Exception
- if an error occurred while determining emptinessCopyright © 2001–2017 University Health Network. All rights reserved.