Class IdReferenceMappingVisitor
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.DefaultVisitor
-
- org.linuxforhealth.fhir.model.visitor.CopyingVisitor<T>
-
- org.linuxforhealth.fhir.model.util.ReferenceMappingVisitor<Resource>
-
- org.linuxforhealth.fhir.bucket.scanner.IdReferenceMappingVisitor
-
- All Implemented Interfaces:
Visitor
public class IdReferenceMappingVisitor extends ReferenceMappingVisitor<Resource>
An extension of the ReferenceMappingVisitor which also updates the "id" of the resource because it is being changed from a POST to a PUT, and therefore the id must align with the identity of the resource according to the corresponding fullUrl in the Bundle
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.visitor.DefaultVisitor
visitChildren
-
-
Constructor Summary
Constructors Constructor Description IdReferenceMappingVisitor(java.util.Map<java.lang.String,java.lang.String> localRefMap, java.lang.String localIdentifier, java.lang.String newId)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
visit(java.lang.String elementName, int elementIndex, DomainResource resource)
Delegates to#visit(elementName, elementIndex, Resource)
boolean
visit(java.lang.String elementName, int elementIndex, Resource resource)
Delegates to#visit(elementName, elementIndex, Visitable)
-
Methods inherited from class org.linuxforhealth.fhir.model.util.ReferenceMappingVisitor
visit
-
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
-
-
-
-
Method Detail
-
visit
public boolean visit(java.lang.String elementName, int elementIndex, Resource resource)
Description copied from class:DefaultVisitor
Delegates to#visit(elementName, elementIndex, Visitable)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDefaultVisitor
- Returns:
- true if the children of this resource should be visited; otherwise false
-
visit
public boolean visit(java.lang.String elementName, int elementIndex, DomainResource resource)
Description copied from class:DefaultVisitor
Delegates to#visit(elementName, elementIndex, Resource)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDefaultVisitor
- Returns:
- true if the children of this domainResource should be visited; otherwise false
-
-