Package ca.uhn.hl7v2.model
Class DelegatingMessageVisitor<T extends MessageVisitor>
java.lang.Object
ca.uhn.hl7v2.model.DelegatingMessageVisitor<T>
- All Implemented Interfaces:
MessageVisitor
- Direct Known Subclasses:
MessageVisitors.PopulatedVisitor,MessageVisitors.StructuresVisitor
public class DelegatingMessageVisitor<T extends MessageVisitor>
extends Object
implements MessageVisitor
Delegates all visit method calls to the wrapped MessageVisitor. This class can be used
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanLeaves a compositebooleanLeaves a field.booleanLeaves a group (or message)booleanLeaves a messagebooleanLeaves a segmentbooleanEnters a compositebooleanEnters a field.booleanEnters a group (or message)booleanEnters a messagebooleanEnters a segmentbooleanVisits a primitive
-
Field Details
-
LOG
-
-
Constructor Details
-
DelegatingMessageVisitor
- Parameters:
delegate- MessageVisitor to which all calls are delegated to
-
-
Method Details
-
getDelegate
- Returns:
- MessageVisitor to which all calls are delegated to
-
start
Description copied from interface:MessageVisitorEnters a message- Specified by:
startin interfaceMessageVisitor- Parameters:
message- message- Returns:
- true if the visitor shall descend into the nested structures
- Throws:
HL7Exception- if an error occurred while visiting
-
end
Description copied from interface:MessageVisitorLeaves a message- Specified by:
endin interfaceMessageVisitor- Parameters:
message- message- Returns:
- true if the visitor shall descend into the nested structures
- Throws:
HL7Exception- if an error occurred while visiting
-
start
Description copied from interface:MessageVisitorEnters a group (or message)- Specified by:
startin interfaceMessageVisitor- Parameters:
group- grouplocation- Location object describing the location within the message- Returns:
- true if the visitor shall descend into the nested structures
- Throws:
HL7Exception- if an error occurred while visiting
-
end
Description copied from interface:MessageVisitorLeaves a group (or message)- Specified by:
endin interfaceMessageVisitor- Parameters:
group- grouplocation- Location object describing the location within the message- Returns:
- true if the visitor shall continue visiting the parent structure
- Throws:
HL7Exception- if an error occurred while visiting
-
start
Description copied from interface:MessageVisitorEnters a segment- Specified by:
startin interfaceMessageVisitor- Parameters:
segment- segmentlocation- Location object describing the location within the message- Returns:
- true if the visitor shall descend into the nested structures
- Throws:
HL7Exception- if an error occurred while visiting
-
end
Description copied from interface:MessageVisitorLeaves a segment- Specified by:
endin interfaceMessageVisitor- Parameters:
segment- segmentlocation- Location object describing the location within the message- Returns:
- true if the visitor shall continue visiting the parent structure
- Throws:
HL7Exception- if an error occurred while visiting
-
start
Description copied from interface:MessageVisitorEnters a field. Note that a field is *not* a physical part of the HAPI model class hierarchy; it merely encapsulates all repetitions of a specific field along with its substructures.- Specified by:
startin interfaceMessageVisitor- Parameters:
field- fieldlocation- Location object describing the location within the message- Returns:
- true if the visitor shall descend into the nested structures
- Throws:
HL7Exception- if an error occurred while visiting
-
end
Description copied from interface:MessageVisitorLeaves a field. Note that a field is *not* a physical part of the HAPI model class hierarchy; it merely encapsulates all repetitions of a specific field along with its substructures.- Specified by:
endin interfaceMessageVisitor- Parameters:
Field- fieldlocation- Location object describing the location within the message- Returns:
- true if the visitor shall continue visiting the parent structure
- Throws:
HL7Exception- if an error occurred while visiting
-
start
Description copied from interface:MessageVisitorEnters a composite- Specified by:
startin interfaceMessageVisitor- Parameters:
type- compositelocation- Location object describing the location within the message- Returns:
- true if the visitor shall descend into the nested structures
- Throws:
HL7Exception- if an error occurred while visiting
-
end
Description copied from interface:MessageVisitorLeaves a composite- Specified by:
endin interfaceMessageVisitor- Parameters:
type- compositelocation- Location object describing the location within the message- Returns:
- true if the visitor shall continue visiting the parent structure
- Throws:
HL7Exception- if an error occurred while visiting
-
visit
Description copied from interface:MessageVisitorVisits a primitive- Specified by:
visitin interfaceMessageVisitor- Parameters:
type- primitivelocation- Location object describing the location within the message- Returns:
- true if the visitor shall descend into the nested structures
- Throws:
HL7Exception- if an error occurred while visiting
-