public class InstanceValidator extends BaseValidator implements IResourceValidator
| Modifier and Type | Class and Description |
|---|---|
class |
InstanceValidator.ChildIterator |
class |
InstanceValidator.DOMWrapperElement |
class |
InstanceValidator.ElementInfo |
class |
InstanceValidator.JsonWrapperElement |
class |
InstanceValidator.WrapperElement |
IResourceValidator.BestPracticeWarningLevel, IResourceValidator.CheckDisplayOption| Constructor and Description |
|---|
InstanceValidator(IWorkerContext theContext) |
| Modifier and Type | Method and Description |
|---|---|
IResourceValidator.BestPracticeWarningLevel |
getBasePracticeWarningLevel() |
IResourceValidator.CheckDisplayOption |
getCheckDisplay()
how much to check displays for coded elements
|
IWorkerContext |
getContext() |
List<String> |
getExtensionDomains() |
boolean |
isAnyExtensionsAllowed() |
boolean |
isRequireResourceId()
whether the resource must have an id or not (depends on context)
|
boolean |
isSuppressLoincSnomedMessages() |
void |
setAnyExtensionsAllowed(boolean anyExtensionsAllowed) |
void |
setBestPracticeWarningLevel(IResourceValidator.BestPracticeWarningLevel value) |
void |
setCheckDisplay(IResourceValidator.CheckDisplayOption checkDisplay)
how much to check displays for coded elements
|
void |
setRequireResourceId(boolean requiresResourceId) |
void |
setSuppressLoincSnomedMessages(boolean suppressLoincSnomedMessages) |
List<ValidationMessage> |
validate(Document document)
Given a DOM document, return a list of errors in the resource
|
List<ValidationMessage> |
validate(Document document,
String profile)
Given a DOM document, return a list of errors in the resource
with regard to the specified profile (by logical identifier)
|
List<ValidationMessage> |
validate(Document document,
StructureDefinition profile)
Given a DOM document, return a list of errors in the resource
with regard to the specified profile
|
List<ValidationMessage> |
validate(Element element)
Given a DOM element, return a list of errors in the resource
|
List<ValidationMessage> |
validate(Element element,
String profile)
Given a DOM element, return a list of errors in the resource
with regard to the specified profile (by logical identifier)
|
List<ValidationMessage> |
validate(Element element,
StructureDefinition profile)
Given a DOM element, return a list of errors in the resource
with regard to the specified profile
|
List<ValidationMessage> |
validate(com.google.gson.JsonObject obj)
Given a DOM element, return a list of errors in the resource
|
List<ValidationMessage> |
validate(com.google.gson.JsonObject obj,
String profile)
Given a DOM element, return a list of errors in the resource
with regard to the specified profile (by logical identifier)
|
List<ValidationMessage> |
validate(com.google.gson.JsonObject obj,
StructureDefinition profile)
Given a DOM element, return a list of errors in the resource
with regard to the specified profile (by logical identifier)
|
void |
validate(List<ValidationMessage> errors,
Document document)
Given a DOM document, return a list of errors in the resource
|
void |
validate(List<ValidationMessage> errors,
Document document,
String profile)
Given a DOM document, return a list of errors in the resource
with regard to the specified profile (by logical identifier)
|
void |
validate(List<ValidationMessage> errors,
Document document,
StructureDefinition profile)
Given a DOM document, return a list of errors in the resource
with regard to the specified profile
|
void |
validate(List<ValidationMessage> errors,
Element element)
Given a DOM element, return a list of errors in the resource
|
void |
validate(List<ValidationMessage> errors,
Element element,
String profile)
Given a DOM element, return a list of errors in the resource
with regard to the specified profile (by logical identifier)
|
void |
validate(List<ValidationMessage> errors,
Element element,
StructureDefinition profile)
Given a DOM element, return a list of errors in the resource
with regard to the specified profile
|
void |
validate(List<ValidationMessage> errors,
com.google.gson.JsonObject object)
Given a JSON Object, return a list of errors in the resource
|
void |
validate(List<ValidationMessage> errors,
com.google.gson.JsonObject object,
String profile)
Given a DOM element, return a list of errors in the resource
with regard to the specified profile
|
void |
validate(List<ValidationMessage> errors,
com.google.gson.JsonObject object,
StructureDefinition profile)
Given a DOM element, return a list of errors in the resource
with regard to the specified profile
|
public InstanceValidator(IWorkerContext theContext) throws Exception
Exceptionpublic IResourceValidator.BestPracticeWarningLevel getBasePracticeWarningLevel()
getBasePracticeWarningLevel in interface IResourceValidatorpublic IResourceValidator.CheckDisplayOption getCheckDisplay()
IResourceValidatorgetCheckDisplay in interface IResourceValidatorpublic IWorkerContext getContext()
public boolean isAnyExtensionsAllowed()
public boolean isRequireResourceId()
IResourceValidatorisRequireResourceId in interface IResourceValidatorpublic boolean isSuppressLoincSnomedMessages()
public void setAnyExtensionsAllowed(boolean anyExtensionsAllowed)
public void setBestPracticeWarningLevel(IResourceValidator.BestPracticeWarningLevel value)
setBestPracticeWarningLevel in interface IResourceValidatorpublic void setCheckDisplay(IResourceValidator.CheckDisplayOption checkDisplay)
IResourceValidatorsetCheckDisplay in interface IResourceValidatorpublic void setRequireResourceId(boolean requiresResourceId)
setRequireResourceId in interface IResourceValidatorpublic void setSuppressLoincSnomedMessages(boolean suppressLoincSnomedMessages)
public List<ValidationMessage> validate(Document document) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public List<ValidationMessage> validate(Document document, String profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)public List<ValidationMessage> validate(Document document, StructureDefinition profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public List<ValidationMessage> validate(Element element) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public List<ValidationMessage> validate(Element element, String profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)public List<ValidationMessage> validate(Element element, StructureDefinition profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public List<ValidationMessage> validate(com.google.gson.JsonObject obj) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public List<ValidationMessage> validate(com.google.gson.JsonObject obj, String profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)public List<ValidationMessage> validate(com.google.gson.JsonObject obj, StructureDefinition profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)public void validate(List<ValidationMessage> errors, Document document) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public void validate(List<ValidationMessage> errors, Document document, String profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)public void validate(List<ValidationMessage> errors, Document document, StructureDefinition profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public void validate(List<ValidationMessage> errors, Element element) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public void validate(List<ValidationMessage> errors, Element element, String profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails, or the profile can't be found (not if the resource is invalid)public void validate(List<ValidationMessage> errors, Element element, StructureDefinition profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public void validate(List<ValidationMessage> errors, com.google.gson.JsonObject object) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public void validate(List<ValidationMessage> errors, com.google.gson.JsonObject object, String profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)public void validate(List<ValidationMessage> errors, com.google.gson.JsonObject object, StructureDefinition profile) throws Exception
IResourceValidatorvalidate in interface IResourceValidatorException - - if the underlying infrastructure fails (not if the resource is invalid)Copyright © 2014–2015 University Health Network. All rights reserved.