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

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

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

import java.util.List;
import java.util.stream.Collectors;

import cdc.applic.dictionaries.edit.EnLocation;
import cdc.applic.dictionaries.edit.EnNamingConvention;
import cdc.applic.dictionaries.edit.EnRegistry;
import cdc.issues.checks.AbstractPartsChecker;
import cdc.issues.checks.SnapshotManager;
import cdc.issues.locations.LocatedObject;

public class EnNamingConventionsChecker extends AbstractPartsChecker {
    public EnNamingConventionsChecker(SnapshotManager manager) {
        super(manager,
              EnRegistry.class,
              EnNamingConvention.class,
              new EnNamingConventionChecker(manager));
    }

    @Override
    protected List> getParts(EnRegistry object) {
        final List parts = object.getNamingConventions();
        return parts.stream()
                    .map(x -> LocatedObject.of(x, EnLocation.builder().element(x).build()))
                    .collect(Collectors.toList());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy