
Package org.hl7.fhir.r5.renderers.utils
Class ResourceWrapper
java.lang.Object
org.hl7.fhir.r5.renderers.utils.ResourceWrapper
- Direct Known Subclasses:
ResourceWrapperModel,ResourceWrapperNative
This class is used to walk through the resources when rendering, whether
the resource is a native resource or loaded by the element model
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ResourceWrapper> protected ContextUtilitiesprotected intprotected ResourceWrapper.ElementKindprotected Stringprotected ResourceWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbasePath()abstract booleanFor when an item has been renamed - find by any of the nameschildren()childrenMN(String... names) For when an item has been renamed - find by any of the namesextensions(String url) extensionString(String url) extensionValue(String url) extensionValues(String url) abstract StringfhirType()abstract StringfirstChild(String name) firstPrimitiveValue(String name) static ResourceWrapperforResource(ContextUtilities contextUtils, Element resource) static ResourceWrapperforResource(ContextUtilities contextUtils, Resource resource) static ResourceWrapperforResource(RenderingContext context, Element resource) static ResourceWrapperforResource(RenderingContext context, Resource resource) static ResourceWrapperforType(ContextUtilities contextUtils, Element resource) static ResourceWrapperforType(ContextUtilities contextUtils, DataType type) static ResourceWrapperforType(ContextUtilities contextUtils, ResourceWrapper parent, DataType type) abstract BasegetBase()abstract StringgetContained(String id) abstract Collection<String> abstract StringgetId()abstract org.hl7.fhir.utilities.xhtml.XhtmlNodeabstract Resourceabstract ObjectgetUserData(String name) abstract Stringabstract org.hl7.fhir.utilities.xhtml.XhtmlNodegetXhtml()booleanbooleanbooleanhasExtension(String url) abstract booleanabstract booleanhasId()booleanabstract booleanabstract booleanbooleanhasPrimitiveValue(String name) abstract booleanhasUserData(String name) intindex()abstract booleanisDirect()booleanisEmpty()abstract booleanbooleanisPrimitive(String name) abstract booleankind()protected abstract voidvoidmarkLanguage(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Locale locale) booleanname()parent()path()abstract StringprimitiveValue(String name) primitiveValueMN(String... names) resource()abstract ResourceWrapperabstract voidsetNarrative(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String status, boolean multiLangMode, Locale locale, boolean isPretty)
-
Field Details
-
contextUtils
-
parent
-
name
-
index
-
kind
-
children
-
-
Constructor Details
-
ResourceWrapper
protected ResourceWrapper()
-
-
Method Details
-
forResource
-
forResource
-
forResource
-
forResource
-
forType
-
forType
-
forType
public static ResourceWrapper forType(ContextUtilities contextUtils, ResourceWrapper parent, DataType type) -
path
-
basePath
-
kind
-
name
-
index
-
isPrimitive
-
hasPrimitiveValue
-
primitiveValue
-
primitiveValueMN
-
firstPrimitiveValue
-
children
-
childrenInGroups
-
children
-
childrenMN
For when an item has been renamed - find by any of the names- Parameters:
name-- Returns:
-
child
-
childMN
For when an item has been renamed - find by any of the names- Parameters:
names-- Returns:
-
has
-
hasMN
-
resource
-
hasChildren
-
hasExtension
-
extension
-
extensionValue
-
extensions
-
extensions
-
extensionValues
-
getResourceNative
-
canHaveNarrative
-
getNarrative
-
hasNarrative
-
setNarrative
public abstract void setNarrative(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String status, boolean multiLangMode, Locale locale, boolean isPretty) throws IOException - Throws:
IOException
-
getId
-
hasId
-
setId
-
markLanguage
-
matches
-
extensionString
-
isEmpty
-
getResourceWrapper
-
firstChild
-
getContextUtilities
-
getScopedId
-
parent
-
getContained
-
getCodeSystemUri
-
hasFormatComment
-
getFormatCommentsPre
-
getXhtml
-
getBase
-
getWebPath
-
isDirect
-
loadTheChildren
-
fhirVersion
-
fhirType
-
isPrimitive
-
hasPrimitiveValue
-
primitiveValue
-
isResource
-
hasUserData
-
getUserData
-