All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.imsweb.validation.edits.translated.ncfd.NcfdTranslatedRuntimeEdits.groovy Maven / Gradle / Ivy

There is a newer version: 023-01
Show newest version
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