public class MdrValidator extends Object implements Closeable
| Constructor and Description |
|---|
MdrValidator(MdrConnection mdrConnection,
boolean preLoadDataelements,
String... dataelementgroups)
Todo.
|
MdrValidator(MdrConnection mdrConnection,
String... dataelementgroups) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkGroup(String groupKey,
String mdrKey)
Validates if a DataElement belongs to a certain DataElementGroup.
|
boolean |
checkGroupExists(String groupKey)
Validates if a certain DataElementGroup exists.
|
void |
close()
Todo.
|
static List<String> |
getAmbiguousCatalogues()
Todo.
|
List<MdrKey> |
getBaseKeys()
The root elements of the validator.
|
List<de.samply.common.mdrclient.domain.ErrorMessage> |
getErrorMessage(String mdrKey)
Returns the list of error messages defined in MDR for a mdrKey.
|
HashMap<String,FlatCatalogue> |
getFlatCatalogueMatrix()
Returns the flatCatalogueMatrix.
|
FlatCatalogue |
getFlattenedCatalogue(de.samply.common.mdrclient.domain.Catalogue catalogue)
Runs through a catalogue and flattens it out flatCatalogues field is used as cache.
|
Boolean |
getLastValidatedWasCatalogueDesignation()
Information if the last validation was done by a catalogue designation instead of code.
|
MdrKey |
getMdrKeyOfSlot(String slotName,
String slotValue)
Returns the MdrKey of a DTH BioInfName Slot entry.
|
boolean |
validate(String mdrKey,
Object value)
Validates the value against what is defined for its mdrkey.
|
public MdrValidator(MdrConnection mdrConnection, String... dataelementgroups) throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException, de.samply.common.mdrclient.MdrInvalidResponseException
de.samply.common.mdrclient.MdrConnectionExceptionExecutionExceptionMdrExceptionde.samply.common.mdrclient.MdrInvalidResponseExceptionpublic MdrValidator(MdrConnection mdrConnection, boolean preLoadDataelements, String... dataelementgroups) throws de.samply.common.mdrclient.MdrConnectionException, ExecutionException, MdrException, de.samply.common.mdrclient.MdrInvalidResponseException
mdrConnection - Todo.preLoadDataelements - Todo.dataelementgroups - Todo.de.samply.common.mdrclient.MdrConnectionException - Todo.ExecutionException - Todo.MdrException - Todo.de.samply.common.mdrclient.MdrInvalidResponseException - Todo.public boolean validate(String mdrKey, Object value) throws ValidatorException
mdrKey - Todo.value - Todo.ValidatorException - Todo.public List<de.samply.common.mdrclient.domain.ErrorMessage> getErrorMessage(String mdrKey)
mdrKey - Todo.public boolean checkGroupExists(String groupKey)
groupKey - The URN of the DataElementGrouppublic boolean checkGroup(String groupKey, String mdrKey)
groupKey - The URN of the DataElementGroupmdrKey - The URN of the DataElementpublic MdrKey getMdrKeyOfSlot(String slotName, String slotValue)
slotValue - the DTH BioInfName Slot valuepublic FlatCatalogue getFlattenedCatalogue(de.samply.common.mdrclient.domain.Catalogue catalogue)
catalogue - Todo.public HashMap<String,FlatCatalogue> getFlatCatalogueMatrix()
public Boolean getLastValidatedWasCatalogueDesignation()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2020 Samply Community. All rights reserved.