/******************************************************************************* * Copyright (c) 2010, 2015 Willink Transformations and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * E.D.Willink - Initial API and implementation *******************************************************************************/ package org.eclipse.ocl.pivot; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.ocl.pivot.ids.TypeId; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Typed Element</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * A TypedElement is a NamedElement that may have a Type specified for it. * <!-- end-model-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link org.eclipse.ocl.pivot.TypedElement#isIsMany <em>Is Many</em>}</li> * <li>{@link org.eclipse.ocl.pivot.TypedElement#isIsRequired <em>Is Required</em>}</li> * <li>{@link org.eclipse.ocl.pivot.TypedElement#getType <em>Type</em>}</li> * </ul> * * @see org.eclipse.ocl.pivot.PivotPackage#getTypedElement() * @generated */ public interface TypedElement extends NamedElement { /** * Returns the value of the '<em><b>Is Many</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Is Many</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Is Many</em>' attribute. * @see org.eclipse.ocl.pivot.PivotPackage#getTypedElement_IsMany() * @generated */ boolean isIsMany(); /** * Returns the value of the '<em><b>Is Required</b></em>' attribute. * The default value is <code>"true"</code>. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Is Required</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Is Required</em>' attribute. * @see #setIsRequired(boolean) * @see org.eclipse.ocl.pivot.PivotPackage#getTypedElement_IsRequired() * @generated */ boolean isIsRequired(); /** * Returns the value of the '<em><b>Type</b></em>' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * The type of the TypedElement. * <!-- end-model-doc --> * @return the value of the '<em>Type</em>' reference. * @see #setType(Type) * @see org.eclipse.ocl.pivot.PivotPackage#getTypedElement_Type() * @generated */ Type getType(); /** * Sets the value of the '{@link org.eclipse.ocl.pivot.TypedElement#getType <em>Type</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Type</em>' reference. * @see #getType() * @generated */ void setType(Type value); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ boolean CompatibleBody(ValueSpecification bodySpecification); /** * Sets the value of the '{@link org.eclipse.ocl.pivot.TypedElement#isIsRequired <em>Is Required</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Is Required</em>' attribute. * @see #isIsRequired() * @generated */ void setIsRequired(boolean value); @NonNull TypeId getTypeId(); } // TypedElement