Class FHIRModelConfig
- java.lang.Object
 - 
- org.linuxforhealth.fhir.model.config.FHIRModelConfig
 
 
- 
public final class FHIRModelConfig extends java.lang.ObjectThis class is used to manage runtime configuration for the FHIR model APIs. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_CHECK_CONTROL_CHARSUsed to determine whether control characters are checkedstatic java.lang.StringPROPERTY_CHECK_REFERENCE_TYPESUsed to determine whether reference types are checked during object constructionstatic java.lang.StringPROPERTY_EXTENDED_CODEABLE_CONCEPT_VALIDATIONUsed to determine: 1.static java.lang.StringPROPERTY_TO_STRING_FORMATThe format (JSON or XML) to use with the toString methodstatic java.lang.StringPROPERTY_TO_STRING_INDENT_AMOUNTThe number of spaces to use when indenting (pretty printing must be enabled)static java.lang.StringPROPERTY_TO_STRING_PRETTY_PRINTINGUsed 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 booleangetCheckReferenceTypes()static booleangetExtendedCodeableConceptValidation()static java.util.Map<java.lang.String,java.lang.Object>getProperties()static java.lang.ObjectgetProperty(java.lang.String name)static <T> TgetProperty(java.lang.String name, java.lang.Class<T> type)static java.util.Set<java.lang.String>getPropertyNames()static java.lang.ObjectgetPropertyOrDefault(java.lang.String name, java.lang.Object defaultValue)static <T> TgetPropertyOrDefault(java.lang.String name, T defaultValue, java.lang.Class<T> type)static FormatgetToStringFormat()static intgetToStringIndentAmount()static booleangetToStringPrettyPrinting()static java.lang.ObjectremoveProperty(java.lang.String name)static <T> TremoveProperty(java.lang.String name, java.lang.Class<T> type)static voidsetCheckForControlChars(boolean checkControlChars)static voidsetCheckReferenceTypes(boolean checkReferenceTypes)static voidsetExtendedCodeableConceptValidation(boolean extendedCodeableConceptValidation)static voidsetProperty(java.lang.String name, java.lang.Object value)static voidsetToStringFormat(Format format)static voidsetToStringIndentAmount(int indentAmount)static voidsetToStringPrettyPrinting(boolean prettyPrinting)static booleanshouldCheckForControlChars() 
 - 
 
- 
- 
Field Detail
- 
PROPERTY_TO_STRING_FORMAT
public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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
 
 
- 
PROPERTY_CHECK_CONTROL_CHARS
public static final java.lang.String PROPERTY_CHECK_CONTROL_CHARS
Used to determine whether control characters are checked- 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()
 
- 
setCheckForControlChars
public static void setCheckForControlChars(boolean checkControlChars)
 
- 
shouldCheckForControlChars
public static boolean shouldCheckForControlChars()
 
- 
setExtendedCodeableConceptValidation
public static void setExtendedCodeableConceptValidation(boolean extendedCodeableConceptValidation)
 
- 
getExtendedCodeableConceptValidation
public static boolean getExtendedCodeableConceptValidation()
 
- 
setProperty
public static void setProperty(java.lang.String name, java.lang.Object value) 
- 
removeProperty
public static java.lang.Object removeProperty(java.lang.String name)
 
- 
removeProperty
public static <T> T removeProperty(java.lang.String name, java.lang.Class<T> type) 
- 
getProperty
public static java.lang.Object getProperty(java.lang.String name)
 
- 
getPropertyOrDefault
public static java.lang.Object getPropertyOrDefault(java.lang.String name, java.lang.Object defaultValue) 
- 
getProperty
public static <T> T getProperty(java.lang.String name, java.lang.Class<T> type) 
- 
getPropertyOrDefault
public static <T> T getPropertyOrDefault(java.lang.String name, T defaultValue, java.lang.Class<T> type) 
- 
getProperties
public static java.util.Map<java.lang.String,java.lang.Object> getProperties()
 
- 
getPropertyNames
public static java.util.Set<java.lang.String> getPropertyNames()
 
 - 
 
 -