cdc.mf.checks.nodes.properties.DefaultPropertiesChecker Maven / Gradle / Ivy
package cdc.mf.checks.nodes.properties;
import java.util.List;
import cdc.issues.checks.AbstractPartsChecker;
import cdc.issues.checks.SnapshotManager;
import cdc.issues.locations.LocatedObject;
import cdc.mf.model.MfMemberOwner;
import cdc.mf.model.MfNameItem;
import cdc.mf.model.MfProperty;
public class DefaultPropertiesChecker extends AbstractPartsChecker {
public DefaultPropertiesChecker(SnapshotManager manager) {
super(manager,
MfMemberOwner.class,
MfProperty.class,
new DefaultPropertyChecker(manager));
}
@Override
protected List> getParts(MfMemberOwner object) {
final List delegates = object.getProperties()
.stream()
.sorted(MfNameItem.NAME_COMPARATOR)
.toList();
return LocatedObject.locate(delegates);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy