public class DelegatingMessageVisitor<T extends MessageVisitor> extends Object implements MessageVisitor
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DelegatingMessageVisitor(T delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
end(Composite type,
Location location)
Leaves a composite
|
boolean |
end(Field Field,
Location location)
Leaves a field.
|
boolean |
end(Group group,
Location location)
Leaves a group (or message)
|
boolean |
end(Message message)
Leaves a message
|
boolean |
end(Segment segment,
Location location)
Leaves a segment
|
T |
getDelegate() |
boolean |
start(Composite type,
Location location)
Enters a composite
|
boolean |
start(Field field,
Location location)
Enters a field.
|
boolean |
start(Group group,
Location location)
Enters a group (or message)
|
boolean |
start(Message message)
Enters a message
|
boolean |
start(Segment segment,
Location location)
Enters a segment
|
boolean |
visit(Primitive type,
Location location)
Visits a primitive
|
protected static final org.slf4j.Logger LOG
public DelegatingMessageVisitor(T delegate)
delegate
- MessageVisitor to which all calls are delegated topublic T getDelegate()
public boolean start(Message message) throws HL7Exception
MessageVisitor
start
in interface MessageVisitor
message
- messageHL7Exception
- if an error occurred while visitingpublic boolean end(Message message) throws HL7Exception
MessageVisitor
end
in interface MessageVisitor
message
- messageHL7Exception
- if an error occurred while visitingpublic boolean start(Group group, Location location) throws HL7Exception
MessageVisitor
start
in interface MessageVisitor
group
- grouplocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingpublic boolean end(Group group, Location location) throws HL7Exception
MessageVisitor
end
in interface MessageVisitor
group
- grouplocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingpublic boolean start(Segment segment, Location location) throws HL7Exception
MessageVisitor
start
in interface MessageVisitor
segment
- segmentlocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingpublic boolean end(Segment segment, Location location) throws HL7Exception
MessageVisitor
end
in interface MessageVisitor
segment
- segmentlocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingpublic boolean start(Field field, Location location) throws HL7Exception
MessageVisitor
start
in interface MessageVisitor
field
- fieldlocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingpublic boolean end(Field Field, Location location) throws HL7Exception
MessageVisitor
end
in interface MessageVisitor
Field
- fieldlocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingpublic boolean start(Composite type, Location location) throws HL7Exception
MessageVisitor
start
in interface MessageVisitor
type
- compositelocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingpublic boolean end(Composite type, Location location) throws HL7Exception
MessageVisitor
end
in interface MessageVisitor
type
- compositelocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingpublic boolean visit(Primitive type, Location location) throws HL7Exception
MessageVisitor
visit
in interface MessageVisitor
type
- primitivelocation
- Location object describing the location within the messageHL7Exception
- if an error occurred while visitingCopyright © 2001–2017 University Health Network. All rights reserved.