Class ReferenceMappingVisitor<T extends Visitable>
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.DefaultVisitor
-
- org.linuxforhealth.fhir.model.visitor.CopyingVisitor<T>
-
- org.linuxforhealth.fhir.model.util.ReferenceMappingVisitor<T>
-
- Type Parameters:
T
- The type to copy. Only visitables of this type should be visited.
- All Implemented Interfaces:
Visitor
- Direct Known Subclasses:
IdReferenceMappingVisitor
public class ReferenceMappingVisitor<T extends Visitable> extends CopyingVisitor<T>
Copy the value of each element within a Resource/Element to a new element with the same values, replacingReference.reference
values with a new value
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.visitor.DefaultVisitor
visitChildren
-
-
Constructor Summary
Constructors Constructor Description ReferenceMappingVisitor(java.util.Map<java.lang.String,java.lang.String> localRefMap, java.lang.String localIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
visit(java.lang.String elementName, int elementIndex, Reference reference)
Delegates to#visit(elementName, elementIndex, Element)
-
Methods inherited from class org.linuxforhealth.fhir.model.visitor.CopyingVisitor
convertToCodeSubtype, delete, doVisitEnd, doVisitEnd, doVisitListEnd, doVisitListStart, doVisitStart, doVisitStart, getBuilder, getList, getPath, getResult, markDirty, markListDirty, postVisit, postVisit, replace, replace, reset, visitEnd, visitEnd, visitEnd, visitStart, visitStart, visitStart
-
Methods inherited from class org.linuxforhealth.fhir.model.visitor.DefaultVisitor
preVisit, preVisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Constructor Detail
-
ReferenceMappingVisitor
public ReferenceMappingVisitor(java.util.Map<java.lang.String,java.lang.String> localRefMap, java.lang.String localIdentifier)
- Parameters:
localRefMap
- a mapping from the current Reference values to the desired oneslocalIdentifier
- a bundle entry fullUrl value - potentially used with relative references
-
-
Method Detail
-
visit
public boolean visit(java.lang.String elementName, int elementIndex, Reference reference)
Description copied from class:DefaultVisitor
Delegates to#visit(elementName, elementIndex, Element)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDefaultVisitor
- Returns:
- true if the children of this reference should be visited; otherwise false
-
-