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

cdc.mf.checks.nodes.classes.ClassNameIsMandatory Maven / Gradle / Ivy

The newest version!
package cdc.mf.checks.nodes.classes;

import cdc.issues.checks.SnapshotManager;
import cdc.issues.rules.Rule;
import cdc.mf.checks.DefaultRuleUtils;
import cdc.mf.checks.atts.name.AbstractNameIsMandatory;
import cdc.mf.model.MfClass;

public class ClassNameIsMandatory extends AbstractNameIsMandatory {
    public static final String NAME = "CLASS_NAME_IS_MANDATORY";
    public static final Rule RULE =
            DefaultRuleUtils.define(NAME,
                                    description -> description.text(describe("classes"))
                                                              .appliesTo("All classes"),

                                    SEVERITY);

    public ClassNameIsMandatory(SnapshotManager manager) {
        super(manager,
              MfClass.class,
              RULE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy