Package org.hl7.fhir.r4b.renderers
Class Renderer
- java.lang.Object
-
- org.hl7.fhir.r4b.renderers.Renderer
-
- Direct Known Subclasses:
DataRenderer
public class Renderer extends Object
Rendering framework: * boolean render(DomainResource) : produce an HTML representation suitable for runtime / documentation, and insert it into the resource. Return true of any extensions encountered * boolean render(XhtmlNode, Resource: produce an HTML representation, and fill out the provided node with it. Return true of any extensions encountered * XhtmlNode build(DomainResource): same as render(DomainResource) but also return the XHtmlNode * String display(Base) : produce a plan text concise representation that serves to describe the resource * void display(XhtmlNode, Base) : produce a plan text concise representation that serves to describe the resource * void describe(XhtmlNode, Resource) : produce a short summary of the resource with key details presented (potentially more verbose than display, but still suitable for a single line) if not specific code for rendering a resource has been provided, and there's no liquid script to guide it, a generic rendering based onthe profile will be performed- Author:
- graha
-
-
Field Summary
Fields Modifier and Type Field Description protected RenderingContextcontextprotected static StringRENDER_BUNDLE_ETAGprotected static StringRENDER_BUNDLE_HEADER_ENTRYprotected static StringRENDER_BUNDLE_HEADER_ENTRY_URLprotected static StringRENDER_BUNDLE_HEADER_ROOTprotected static StringRENDER_BUNDLE_IF_MATCHprotected static StringRENDER_BUNDLE_IF_MODprotected static StringRENDER_BUNDLE_IF_NON_MATCHprotected static StringRENDER_BUNDLE_IF_NONEprotected static StringRENDER_BUNDLE_LAST_MODprotected static StringRENDER_BUNDLE_LOCATIONprotected static StringRENDER_BUNDLE_REQUESTprotected static StringRENDER_BUNDLE_RESOURCEprotected static StringRENDER_BUNDLE_RESPONSEprotected static StringRENDER_BUNDLE_SEARCHprotected static StringRENDER_BUNDLE_SEARCH_MODEprotected static StringRENDER_BUNDLE_SEARCH_SCORE
-
Constructor Summary
Constructors Constructor Description Renderer(IWorkerContext worker)Renderer(RenderingContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringformatMessage(String theMessage, Object... theMessageArguments)the plan here is to make this have it's own implementation of messages, rather than using the validator messages, for better alignment with publisher I18n strategy
-
-
-
Field Detail
-
context
protected RenderingContext context
-
RENDER_BUNDLE_HEADER_ROOT
protected static final String RENDER_BUNDLE_HEADER_ROOT
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_HEADER_ENTRY
protected static final String RENDER_BUNDLE_HEADER_ENTRY
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_HEADER_ENTRY_URL
protected static final String RENDER_BUNDLE_HEADER_ENTRY_URL
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_RESOURCE
protected static final String RENDER_BUNDLE_RESOURCE
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_SEARCH
protected static final String RENDER_BUNDLE_SEARCH
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_SEARCH_MODE
protected static final String RENDER_BUNDLE_SEARCH_MODE
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_SEARCH_SCORE
protected static final String RENDER_BUNDLE_SEARCH_SCORE
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_RESPONSE
protected static final String RENDER_BUNDLE_RESPONSE
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_LOCATION
protected static final String RENDER_BUNDLE_LOCATION
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_ETAG
protected static final String RENDER_BUNDLE_ETAG
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_LAST_MOD
protected static final String RENDER_BUNDLE_LAST_MOD
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_REQUEST
protected static final String RENDER_BUNDLE_REQUEST
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_IF_NON_MATCH
protected static final String RENDER_BUNDLE_IF_NON_MATCH
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_IF_MOD
protected static final String RENDER_BUNDLE_IF_MOD
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_IF_MATCH
protected static final String RENDER_BUNDLE_IF_MATCH
- See Also:
- Constant Field Values
-
RENDER_BUNDLE_IF_NONE
protected static final String RENDER_BUNDLE_IF_NONE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Renderer
public Renderer(RenderingContext context)
-
Renderer
public Renderer(IWorkerContext worker)
-
-
Method Detail
-
formatMessage
protected String formatMessage(String theMessage, Object... theMessageArguments)
the plan here is to make this have it's own implementation of messages, rather than using the validator messages, for better alignment with publisher I18n strategy- Parameters:
theMessage-theMessageArguments-- Returns:
-
-