Package ca.uhn.fhir.validation
Class ValidationContext<T>
java.lang.Object
ca.uhn.fhir.validation.ValidationContext<T>
- All Implemented Interfaces:
IValidationContext<T>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValidationMessage
(SingleValidationMessage theMessage) static <T extends IBaseResource>
IValidationContext<T> forResource
(FhirContext theContext, T theResource, ValidationOptions theOptions) static IValidationContext
<IBaseResource> forText
(FhirContext theContext, String theResourceBody, ValidationOptions theOptions) static IValidationContext
<IBaseResource> subContext
(IValidationContext<IBaseResource> theCtx, IBaseResource theResource, ValidationOptions theOptions) toResult()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.validation.IValidationContext
addValidationMessage, getFhirContext, getMessages, toResult
-
Field Details
-
myFhirContext
-
-
Method Details
-
getResource
- Specified by:
getResource
in interfaceIValidationContext<T>
-
getResourceAsString
- Specified by:
getResourceAsString
in interfaceIValidationContext<T>
-
getResourceAsStringEncoding
- Specified by:
getResourceAsStringEncoding
in interfaceIValidationContext<T>
-
getOptions
- Specified by:
getOptions
in interfaceIValidationContext<T>
-
forResource
public static <T extends IBaseResource> IValidationContext<T> forResource(FhirContext theContext, T theResource, ValidationOptions theOptions) -
forText
public static IValidationContext<IBaseResource> forText(FhirContext theContext, String theResourceBody, ValidationOptions theOptions) -
subContext
public static IValidationContext<IBaseResource> subContext(IValidationContext<IBaseResource> theCtx, IBaseResource theResource, ValidationOptions theOptions) -
addValidationMessage
- Specified by:
addValidationMessage
in interfaceIValidationContext<T>
-
getFhirContext
- Specified by:
getFhirContext
in interfaceIValidationContext<T>
-
getMessages
- Specified by:
getMessages
in interfaceIValidationContext<T>
-
toResult
- Specified by:
toResult
in interfaceIValidationContext<T>
-