Package com.ibm.fhir.model.config
Class FHIRModelConfig
- java.lang.Object
-
- com.ibm.fhir.model.config.FHIRModelConfig
-
public final class FHIRModelConfig extends Object
This class is used to manage runtime configuration for the FHIR model APIs.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_CHECK_REFERENCE_TYPES
Used to determine whether reference types are checked during object constructionstatic String
PROPERTY_EXTENDED_CODEABLE_CONCEPT_VALIDATION
Used to determine: 1.static String
PROPERTY_TO_STRING_FORMAT
The format (JSON or XML) to use with the toString methodstatic String
PROPERTY_TO_STRING_INDENT_AMOUNT
The number of spaces to use when indenting (pretty printing must be enabled)static String
PROPERTY_TO_STRING_PRETTY_PRINTING
Used to determine whether the toString method return value should be formatted
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getCheckReferenceTypes()
static boolean
getExtendedCodeableConceptValidation()
static Map<String,Object>
getProperties()
static Object
getProperty(String name)
static <T> T
getProperty(String name, Class<T> type)
static Set<String>
getPropertyNames()
static Object
getPropertyOrDefault(String name, Object defaultValue)
static <T> T
getPropertyOrDefault(String name, T defaultValue, Class<T> type)
static Format
getToStringFormat()
static int
getToStringIndentAmount()
static boolean
getToStringPrettyPrinting()
static Object
removeProperty(String name)
static <T> T
removeProperty(String name, Class<T> type)
static void
setCheckReferenceTypes(boolean checkReferenceTypes)
static void
setExtendedCodeableConceptValidation(boolean extendedCodeableConceptValidation)
static void
setProperty(String name, Object value)
static void
setToStringFormat(Format format)
static void
setToStringIndentAmount(int indentAmount)
static void
setToStringPrettyPrinting(boolean prettyPrinting)
-
-
-
Field Detail
-
PROPERTY_TO_STRING_FORMAT
public static final String PROPERTY_TO_STRING_FORMAT
The format (JSON or XML) to use with the toString method- See Also:
- Constant Field Values
-
PROPERTY_TO_STRING_INDENT_AMOUNT
public static final String PROPERTY_TO_STRING_INDENT_AMOUNT
The number of spaces to use when indenting (pretty printing must be enabled)- See Also:
- Constant Field Values
-
PROPERTY_TO_STRING_PRETTY_PRINTING
public static final String PROPERTY_TO_STRING_PRETTY_PRINTING
Used to determine whether the toString method return value should be formatted- See Also:
- Constant Field Values
-
PROPERTY_CHECK_REFERENCE_TYPES
public static final String PROPERTY_CHECK_REFERENCE_TYPES
Used to determine whether reference types are checked during object construction- See Also:
- Constant Field Values
-
PROPERTY_EXTENDED_CODEABLE_CONCEPT_VALIDATION
public static final String PROPERTY_EXTENDED_CODEABLE_CONCEPT_VALIDATION
Used to determine: 1. whether CodeableConcepts that don't contain both system and code are checked during object construction 2. whether syntax-based validation of UCUM and language codes is done during object construction- See Also:
- Constant Field Values
-
-
Method Detail
-
setToStringFormat
public static void setToStringFormat(Format format)
-
getToStringFormat
public static Format getToStringFormat()
-
setToStringIndentAmount
public static void setToStringIndentAmount(int indentAmount)
-
getToStringIndentAmount
public static int getToStringIndentAmount()
-
setToStringPrettyPrinting
public static void setToStringPrettyPrinting(boolean prettyPrinting)
-
getToStringPrettyPrinting
public static boolean getToStringPrettyPrinting()
-
setCheckReferenceTypes
public static void setCheckReferenceTypes(boolean checkReferenceTypes)
-
getCheckReferenceTypes
public static boolean getCheckReferenceTypes()
-
setExtendedCodeableConceptValidation
public static void setExtendedCodeableConceptValidation(boolean extendedCodeableConceptValidation)
-
getExtendedCodeableConceptValidation
public static boolean getExtendedCodeableConceptValidation()
-
getPropertyOrDefault
public static <T> T getPropertyOrDefault(String name, T defaultValue, Class<T> type)
-
-