T - the type produced by the visitor.public class StructureField<T> extends Object
| Constructor and Description |
|---|
StructureField(String propertyName,
String fieldName,
String extensionUrl,
boolean isModifier,
boolean isChoice,
T visitorResult)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> StructureField<T> |
extension(String fieldName,
String extensionUrl,
boolean isModifier,
T visitorResult)
Creates a new StructField for the given extension.
|
String |
extensionUrl()
The URL of the extension represented by this field, or null if the given field is not an
extension.
|
String |
fieldName()
The field name of the converted result.
|
boolean |
isChoice()
An indicator whether the field is a choice type.
|
boolean |
isModifier()
An indicator whether the field is a modifier extension.
|
static <T> StructureField<T> |
property(String propertyName,
T visitorResult)
Creates a new StructureField for the given property.
|
String |
propertyName()
The FHIR property name for the field.
|
T |
result()
The result produced by the visitor.
|
public StructureField(String propertyName, String fieldName, String extensionUrl, boolean isModifier, boolean isChoice, T visitorResult)
propertyName - the FHIR property namefieldName - the field name for which the property is encodedextensionUrl - the URL, if this is for an extensionisModifier - flag indicating whether this is a modifier extensionisChoice - flag indicating whether this is a choice typevisitorResult - the result of the visitor.public String propertyName()
public String fieldName()
public String extensionUrl()
public boolean isModifier()
public boolean isChoice()
public T result()
public static <T> StructureField<T> property(String propertyName, T visitorResult)
T - the return type of the visitor.propertyName - the name of the property.visitorResult - the visitor result.public static <T> StructureField<T> extension(String fieldName, String extensionUrl, boolean isModifier, T visitorResult)
T - the return type of the visitor.fieldName - the name of the field in which the extension is represented.extensionUrl - the URL for the extension.isModifier - flag indicating whether this is a modifier extensionvisitorResult - the visitor result.Copyright © 2020. All rights reserved.