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
Modifier and TypeClassDescriptionstatic enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected List
<ResourceWrapper> protected ContextUtilities
protected int
protected ResourceWrapper.ElementKind
protected String
protected ResourceWrapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
basePath()
abstract boolean
For 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 String
fhirType()
abstract String
firstChild
(String name) firstPrimitiveValue
(String name) static ResourceWrapper
forResource
(ContextUtilities contextUtils, Element resource) static ResourceWrapper
forResource
(ContextUtilities contextUtils, Resource resource) static ResourceWrapper
forResource
(RenderingContext context, Element resource) static ResourceWrapper
forResource
(RenderingContext context, Resource resource) static ResourceWrapper
forType
(ContextUtilities contextUtils, Element resource) static ResourceWrapper
forType
(ContextUtilities contextUtils, DataType type) static ResourceWrapper
forType
(ContextUtilities contextUtils, ResourceWrapper parent, DataType type) abstract Base
getBase()
abstract String
getContained
(String id) abstract Collection
<String> abstract String
getId()
abstract org.hl7.fhir.utilities.xhtml.XhtmlNode
abstract Resource
abstract String
abstract org.hl7.fhir.utilities.xhtml.XhtmlNode
getXhtml()
boolean
boolean
boolean
hasExtension
(String url) abstract boolean
boolean
abstract boolean
abstract boolean
boolean
hasPrimitiveValue
(String name) int
index()
abstract boolean
isDirect()
boolean
isEmpty()
abstract boolean
boolean
isPrimitive
(String name) abstract boolean
kind()
protected abstract void
void
markLanguage
(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Locale locale) boolean
name()
parent()
path()
abstract String
primitiveValue
(String name) primitiveValueMN
(String... names) resource()
abstract void
setNarrative
(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
-
markLanguage
-
matches
-
extensionString
-
isEmpty
-
getResourceWrapper
-
firstChild
-
getContextUtilities
-
getScopedId
-
parent
-
getContained
-
getCodeSystemUri
-
hasFormatComment
-
getFormatCommentsPre
-
getXhtml
-
getBase
-
getWebPath
-
isDirect
-
loadTheChildren
-
fhirVersion
-
fhirType
-
isPrimitive
-
hasPrimitiveValue
-
primitiveValue
-
isResource
-