001/* 002 * Copyright c 2018 Rusi Popov, MDA Tools.net All rights reserved. 003 * 004 * This program and the accompanying materials are made available under the terms of the 005 * Eclipse Public License v2.0 which accompanies this distribution, and is available at 006 * http://www.eclipse.org/legal/epl-v20.html 007 */ 008package net.mdatools.modelant.core.operation.model.topology; 009 010/** 011 * Criteria how to compare instances of a the same metaclass and find them equal. 012 * @author Rusi Popov (popovr@mdatools.net) 013 */ 014public class Equals extends ClassCriteria { 015 /** 016 * @param className non-null, non-empty meta-model class name instances of which are compared for equality 017 * @param attributes a comma-separated list of attribute paths common for all objects/model elements 018 * of that class and used to distinguish non-equal elements. It might be empty. 019 * Each attribute path complies with the syntax:<p> 020 * <b>{asssociationName.}attributeName</b></p> 021 * @param associations a non-null comma-separated list of association paths common for all objects/model elements 022 * of that class and used to distinguish non-equal elements. It might be empty. 023 * Each association path complies with the syntax:<p> 024 * <b>{asssociationName.}asssociationName</b></p> 025 */ 026 public Equals(String className, String attributes, String associations) { 027 super(className, new SimpleCriteria( attributes, associations ) ); 028 } 029}