com.imsweb.validation.edits.translated.ncfd.NcfdTranslatedRuntimeEdits.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-edits-ncfd-translated Show documentation
Show all versions of validation-edits-ncfd-translated Show documentation
Java implemenation of Genedits metafile edits.
package com.imsweb.validation.edits.translated.ncfd
import com.imsweb.validation.ValidationXmlUtils
import com.imsweb.validation.entities.Validator
import com.imsweb.validation.runtime.*
import groovy.transform.CompileStatic
@CompileStatic
class NcfdTranslatedRuntimeEdits implements RuntimeEdits {
public static Validator loadValidator() {
try {
return ValidationXmlUtils.loadValidatorFromXml(getXmlUrl(), new NcfdTranslatedRuntimeEdits())
}
catch (IOException e) {
throw new RuntimeException("Unable to load validator", e)
}
}
public static URL getXmlUrl() {
return Thread.currentThread().getContextClassLoader().getResource("edits/translated/ncfd/ncfd-translated-edits.xml")
}
@Override
public CompiledRules getCompiledRules() {
return new NcfdTranslatedCompiledRules()
}
@Override
public ParsedProperties getParsedProperties() {
return new NcfdTranslatedParsedProperties()
}
@Override
public ParsedContexts getParsedContexts() {
return new NcfdTranslatedParsedContexts()
}
@Override
public ParsedLookups getParsedLookups() {
return new NcfdTranslatedParsedLookups()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy