
Package ca.uhn.fhir.util
Class ElementUtil
java.lang.Object
ca.uhn.fhir.util.ElementUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function
<IBase, IBaseResource> static final Function
<IBase, IPrimitiveType<Date>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallPopulatedChildElements
(Class<T> theType, Object... theElements) Note that this method does not work on HL7.org structuresstatic <T> T
getSingleValueOrNull
(IBase theParentElement, BaseRuntimeChildDefinition theChildDefinition, Function<IBase, T> theConverter) static boolean
static boolean
static boolean
static boolean
static IBase
setValue
(IBase theTarget, BaseRuntimeChildDefinition theChildDef, Object theValue)
-
Field Details
-
CONVERT_PRIMITIVE_TO_STRING
-
CAST_BASE_TO_RESOURCE
-
CAST_TO_PRIMITIVE_DATE
-
-
Constructor Details
-
ElementUtil
public ElementUtil()
-
-
Method Details
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
allPopulatedChildElements
public static <T extends IElement> List<T> allPopulatedChildElements(Class<T> theType, Object... theElements) Note that this method does not work on HL7.org structures -
setValue
public static IBase setValue(IBase theTarget, BaseRuntimeChildDefinition theChildDef, Object theValue) -
getSingleValueOrNull
@Nullable public static <T> T getSingleValueOrNull(IBase theParentElement, BaseRuntimeChildDefinition theChildDefinition, Function<IBase, T> theConverter)
-