public class ValidationContext<T> extends Object implements IValidationContext<T>
| Modifier and Type | Field and Description |
|---|---|
protected FhirContext |
myFhirContext |
| Modifier and Type | Method and Description |
|---|---|
void |
addValidationMessage(SingleValidationMessage theMessage) |
static IValidationContext<Bundle> |
forBundle(FhirContext theContext,
Bundle theBundle) |
static <T extends IBaseResource> |
forResource(FhirContext theContext,
T theResource) |
static IValidationContext<IBaseResource> |
forText(FhirContext theContext,
String theResourceBody) |
FhirContext |
getFhirContext() |
T |
getResource() |
String |
getResourceAsString() |
EncodingEnum |
getResourceAsStringEncoding() |
static IValidationContext<IBaseResource> |
newChild(IValidationContext<Bundle> theContext,
IResource theResource) |
ValidationResult |
toResult() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddValidationMessage, getFhirContext, toResultprotected final FhirContext myFhirContext
public T getResource()
getResource in interface IValidationContext<T>public String getResourceAsString()
getResourceAsString in interface IValidationContext<T>public EncodingEnum getResourceAsStringEncoding()
getResourceAsStringEncoding in interface IValidationContext<T>public static IValidationContext<Bundle> forBundle(FhirContext theContext, Bundle theBundle)
public static <T extends IBaseResource> IValidationContext<T> forResource(FhirContext theContext, T theResource)
public static IValidationContext<IBaseResource> newChild(IValidationContext<Bundle> theContext, IResource theResource)
public static IValidationContext<IBaseResource> forText(FhirContext theContext, String theResourceBody)
public void addValidationMessage(SingleValidationMessage theMessage)
addValidationMessage in interface IValidationContext<T>public FhirContext getFhirContext()
getFhirContext in interface IValidationContext<T>public ValidationResult toResult()
toResult in interface IValidationContext<T>Copyright © 2014–2016 University Health Network. All rights reserved.