T - the type produced by the visitor.public interface DefinitionVisitor<T>
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxDepth(String elementTypeUrl,
String path)
Returns the maximum depth to use for recursive structures of the given type.
|
T |
visitChoice(String elementName,
Map<String,T> fhirToChoiceTypes)
Visits a choice type.
|
T |
visitComposite(String elementName,
String elementPath,
String baseType,
String elementTypeUrl,
List<StructureField<T>> children)
Visits a composite type.
|
T |
visitContained(String elementPath,
String baseType,
Map<String,StructureField<T>> contained)
Visits a container type.
|
T |
visitLeafExtension(String elementName,
String extensionUrl,
T element)
Visits a leaf extension, which contains some value.
|
T |
visitMultiValued(String elementName,
T arrayElement)
Visits a multi-valued element.
|
T |
visitParentExtension(String elementName,
String extensionUrl,
List<StructureField<T>> children)
Visits a non-leaf extension.
|
T |
visitPrimitive(String elementName,
String primitiveType)
Visits a primitive type.
|
T |
visitReference(String elementName,
List<String> referenceTypes,
List<StructureField<T>> children)
Visits a reference type.
|
T visitPrimitive(String elementName, String primitiveType)
elementName - the element to visit.primitiveType - the FHIR type of the primitive.T visitComposite(String elementName, String elementPath, String baseType, String elementTypeUrl, List<StructureField<T>> children)
elementName - the element to visit.elementPath - the FHIR path to the element.baseType - the type of the composite type.elementTypeUrl - the URL of the resource containing the element.children - the composite type's children.T visitContained(String elementPath, String baseType, Map<String,StructureField<T>> contained)
elementPath - the FHIR path to the element.baseType - the type of the container type.contained - the map of types to their contained elements.T visitReference(String elementName, List<String> referenceTypes, List<StructureField<T>> children)
elementName - the element to visit.referenceTypes - the types of resource that can be referencedchildren - the child fields of the referenceT visitParentExtension(String elementName, String extensionUrl, List<StructureField<T>> children)
elementName - the element to visit.extensionUrl - the URL of the extension.children - the children of the extensionT visitLeafExtension(String elementName, String extensionUrl, T element)
elementName - the element to visit.extensionUrl - the URL of the extension.element - the children of the extension.T visitMultiValued(String elementName, T arrayElement)
elementName - the element to visit.arrayElement - the visitor result for a single element of the array.T visitChoice(String elementName, Map<String,T> fhirToChoiceTypes)
elementName - the element to visit.fhirToChoiceTypes - a map of the choice type with the returned children.int getMaxDepth(String elementTypeUrl, String path)
elementTypeUrl - the element type that is recursivepath - the path to the element that is recursiveCopyright © 2020. All rights reserved.