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

cdc.applic.dictionaries.edit.checks.EnDictionaryChecker Maven / Gradle / Ivy

There is a newer version: 0.13.3
Show newest version
package cdc.applic.dictionaries.edit.checks;

import cdc.applic.dictionaries.edit.EnDictionary;
import cdc.applic.dictionaries.edit.EnDictionaryOwner;
import cdc.applic.dictionaries.edit.checks.rules.EnDictionaryContextExpressionMustBeSyntacticallyValid;
import cdc.applic.dictionaries.edit.checks.rules.EnDictionaryUsageItemsRefsMustBeValid;
import cdc.applic.dictionaries.edit.checks.rules.EnDictionaryUsageTypesRefsMustBeValid;
import cdc.applic.dictionaries.edit.checks.rules.EnNameIsMandatory;
import cdc.applic.dictionaries.edit.checks.rules.EnPolicyNamesMustBeUnique;
import cdc.issues.checks.CompositeChecker;
import cdc.issues.checks.LazyChecker;
import cdc.issues.checks.SnapshotManager;
import cdc.issues.checks.SpecializationChecker;
import cdc.util.lang.Introspection;

public class EnDictionaryChecker extends CompositeChecker> {
    public EnDictionaryChecker(SnapshotManager manager) {
        super(manager,
              Introspection.uncheckedCast(EnDictionary.class),
              new EnNameIsMandatory(manager),
              new EnPolicyNamesMustBeUnique(manager),
              new EnDictionaryContextExpressionMustBeSyntacticallyValid(manager),
              new EnAssertionsChecker(manager),
              new EnDictionaryUsageItemsRefsMustBeValid(manager),
              new EnDictionaryUsageTypesRefsMustBeValid(manager),
              new SpecializationChecker<>(manager, EnDictionary.class, new EnRegistryChecker(manager)),
              new LazyChecker<>(manager, EnDictionaryOwner.class, EnDictionariesChecker.KEY));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy