Package com.ibm.fhir.model.util
Class ReferenceMappingVisitor<T extends Visitable>
- java.lang.Object
-
- com.ibm.fhir.model.visitor.DefaultVisitor
-
- com.ibm.fhir.model.visitor.CopyingVisitor<T>
-
- com.ibm.fhir.model.util.ReferenceMappingVisitor<T>
-
- Type Parameters:
T
- The type to copy. Only visitables of this type should be visited.
- All Implemented Interfaces:
Visitor
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 com.ibm.fhir.model.visitor.DefaultVisitor
visitChildren
-
-
Constructor Summary
Constructors Constructor Description ReferenceMappingVisitor(Map<String,String> localRefMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
visit(String elementName, int elementIndex, Reference reference)
Delegates to#visit(elementName, elementIndex, Element)
-
Methods inherited from class com.ibm.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 com.ibm.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, visit, visit, visit, visit
-
-
-
-
Method Detail
-
visit
public boolean visit(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
-
-