Package ca.uhn.hl7v2.model
Class MessageVisitorSupport
java.lang.Object
ca.uhn.hl7v2.model.MessageVisitorSupport
- All Implemented Interfaces:
MessageVisitor
- Direct Known Subclasses:
ValidatingMessageVisitor
Base MessageVisitor implementation that just logs each call with TRACE level
-
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
-
MessageVisitorSupport
public MessageVisitorSupport()
-
-
Method Details
-
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
-