blob: bd4cb7a02d10c35570c20fa616b61be9e0b5e1d6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2019 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink - initial API and implementation
*******************************************************************************/
package org.eclipse.qvtd.pivot.qvtrelation;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.Variable;
import org.eclipse.qvtd.pivot.qvtbase.Domain;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Relation Domain</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.qvtd.pivot.qvtrelation.RelationDomain#getDefaultAssignment <em>Default Assignment</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtrelation.RelationDomain#getPattern <em>Pattern</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtrelation.RelationDomain#getRootVariable <em>Root Variable</em>}</li>
* </ul>
*
* @see org.eclipse.qvtd.pivot.qvtrelation.QVTrelationPackage#getRelationDomain()
* @model
* @generated
*/
public interface RelationDomain extends Domain {
/**
* Returns the value of the '<em><b>Default Assignment</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.qvtd.pivot.qvtrelation.RelationDomainAssignment}.
* It is bidirectional and its opposite is '{@link org.eclipse.qvtd.pivot.qvtrelation.RelationDomainAssignment#getOwner <em>Owner</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Default Assignment</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Default Assignment</em>' containment reference list.
* @see org.eclipse.qvtd.pivot.qvtrelation.QVTrelationPackage#getRelationDomain_DefaultAssignment()
* @see org.eclipse.qvtd.pivot.qvtrelation.RelationDomainAssignment#getOwner
* @model opposite="owner" containment="true" ordered="false"
* @generated
*/
@NonNull EList<RelationDomainAssignment> getDefaultAssignment();
/**
* Returns the value of the '<em><b>Pattern</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.qvtd.pivot.qvtrelation.DomainPattern}.
* It is bidirectional and its opposite is '{@link org.eclipse.qvtd.pivot.qvtrelation.DomainPattern#getRelationDomain <em>Relation Domain</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Pattern</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Pattern</em>' containment reference list.
* @see org.eclipse.qvtd.pivot.qvtrelation.QVTrelationPackage#getRelationDomain_Pattern()
* @see org.eclipse.qvtd.pivot.qvtrelation.DomainPattern#getRelationDomain
* @model opposite="relationDomain" containment="true"
* @generated
*/
@NonNull EList<DomainPattern> getPattern();
/**
* Returns the value of the '<em><b>Root Variable</b></em>' reference list.
* The list contents are of type {@link org.eclipse.ocl.pivot.Variable}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Root Variable</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Root Variable</em>' reference list.
* @see org.eclipse.qvtd.pivot.qvtrelation.QVTrelationPackage#getRelationDomain_RootVariable()
* @model
* @generated
*/
@NonNull EList<Variable> getRootVariable();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='RelationDomainAssignmentsAreUnique'"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\tdefaultAssignment-&gt;isUnique(variable)\n\n'"
* @generated
*/
boolean validateRelationDomainAssignmentsAreUnique(DiagnosticChain diagnostics, Map<Object, Object> context);
} // RelationDomain