Package ca.uhn.hl7v2.model
Class Field
java.lang.Object
ca.uhn.hl7v2.model.Field
- All Implemented Interfaces:
Visitable
Field is a auxiliary model class only created while visiting parts of the
message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(MessageVisitor visitor, Location currentLocation) Callback method for the visitor.booleanisEmpty()Returns true if this Visitable has actual contentprovideLocation(Location parentLocation, int index, int repetition) Reusing the location of this object's parent, this method returns its own location within the message.
-
Constructor Details
-
Field
-
-
Method Details
-
accept
Description copied from interface:VisitableCallback method for the visitor. This method is supposed to either directly call one of the visitors methods, passingthisas parameter, or traverse through a hierarchical substructure and call accept(MessageVisitor) for each visited element.- Specified by:
acceptin interfaceVisitable- Parameters:
visitor- MessageVisitor instance to be called backcurrentLocation- location of this object- Returns:
trueif the visit process shall continue- Throws:
HL7Exception- if a problem occurred during visiting
-
provideLocation
Description copied from interface:VisitableReusing the location of this object's parent, this method returns its own location within the message.- Specified by:
provideLocationin interfaceVisitable- Parameters:
parentLocation- the parents locationindex- index of this objectrepetition- repetition of this object- Returns:
- this objects location
-
isEmpty
Description copied from interface:VisitableReturns true if this Visitable has actual content
-