public final class MessageVisitors extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MessageVisitors.PopulatedVisitor<T extends MessageVisitor> |
static class |
MessageVisitors.StructuresVisitor<T extends MessageVisitor> |
Modifier and Type | Method and Description |
---|---|
static <T extends MessageVisitor> |
visit(Visitable visitable,
T visitor)
Lets a visitor visit a message of parts thereof.
|
static <T extends MessageVisitor> |
visitPopulatedElements(T visitor)
Returns a MessageVisitor that only visits populated message elements.
|
static <T extends MessageVisitor> |
visitStructures(T visitor)
Returns a MessageVisitor that only visits structures
|
public static <T extends MessageVisitor> T visit(Visitable visitable, T visitor) throws HL7Exception
visitor
- MessageVisitorvisitable
- message element to be visitedHL7Exception
- if an error occurs while visitingpublic static <T extends MessageVisitor> MessageVisitors.StructuresVisitor<T> visitStructures(T visitor)
visitor
- delegate MessageVisitor instancepublic static <T extends MessageVisitor> MessageVisitors.PopulatedVisitor<T> visitPopulatedElements(T visitor)
structures(populated(new MyVisitor()))
visitor
- delegate MessageVisitor instanceCopyright © 2001–2017 University Health Network. All rights reserved.