blob: f3eb8f80c1d2cb6f5462a9c3733fdd405efc43e3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012, 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.ocl.pivot;
import java.util.List;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.jdt.annotation.NonNull;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Constructor Exp</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.ocl.pivot.ShadowExp#getOwnedParts <em>Owned Parts</em>}</li>
* <li>{@link org.eclipse.ocl.pivot.ShadowExp#getValue <em>Value</em>}</li>
* </ul>
*
* @see org.eclipse.ocl.pivot.PivotPackage#getShadowExp()
* @generated
*/
public interface ShadowExp extends OCLExpression
{
/**
* Returns the value of the '<em><b>Owned Parts</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.ocl.pivot.ShadowPart}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Part</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>Owned Parts</em>' containment reference list.
* @see org.eclipse.ocl.pivot.PivotPackage#getShadowExp_OwnedParts()
* @generated
*/
@NonNull List<ShadowPart> getOwnedParts();
/**
* Returns the value of the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' attribute.
* @see #setValue(String)
* @see org.eclipse.ocl.pivot.PivotPackage#getShadowExp_Value()
* @generated
*/
String getValue();
/**
* Sets the value of the '{@link org.eclipse.ocl.pivot.ShadowExp#getValue <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' attribute.
* @see #getValue()
* @generated
*/
void setValue(String value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
boolean validateClassHasNoStringValueInitializer(DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
boolean validateDataTypeHasNoPartInitializers(DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* @since 1.3
* <!-- end-user-doc -->
* @generated
*/
boolean validateDataTypeHasOnePartInitializer(DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
boolean validateDataTypeHasStringValueInitializer(DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
boolean validateInitializesAllClassProperties(DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
boolean validateTypeIsNotInvalid(DiagnosticChain diagnostics, Map<Object, Object> context);
@Override
org.eclipse.ocl.pivot.Class getType();
} // ShadowExp