/** * Copyright (c) 2008, 2015 IBM Corporation 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: * IBM Corporation - initial API and implementation */ package org.eclipse.e4.ui.model.application.commands; import org.eclipse.e4.ui.model.application.MApplicationElement; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Command Parameter</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * <p> * This represents the format of a parameter to be used in a Command. * </p> * @since 1.0 * @noimplement This interface is not intended to be implemented by clients. * <!-- end-model-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link org.eclipse.e4.ui.model.application.commands.MCommandParameter#getName <em>Name</em>}</li> * <li>{@link org.eclipse.e4.ui.model.application.commands.MCommandParameter#getTypeId <em>Type Id</em>}</li> * <li>{@link org.eclipse.e4.ui.model.application.commands.MCommandParameter#isOptional <em>Optional</em>}</li> * </ul> * * @model * @generated */ public interface MCommandParameter extends MApplicationElement { /** * Returns the value of the '<em><b>Name</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * <p> * The name of the parameter. * </p> * <!-- end-model-doc --> * @return the value of the '<em>Name</em>' attribute. * @see #setName(String) * @model required="true" * @generated */ String getName(); /** * Sets the value of the '{@link org.eclipse.e4.ui.model.application.commands.MCommandParameter#getName <em>Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Name</em>' attribute. * @see #getName() * @generated */ void setName(String value); /** * Returns the value of the '<em><b>Type Id</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * <p> * The type of the parameter. * </p> * <!-- end-model-doc --> * @return the value of the '<em>Type Id</em>' attribute. * @see #setTypeId(String) * @model * @generated */ String getTypeId(); /** * Sets the value of the '{@link org.eclipse.e4.ui.model.application.commands.MCommandParameter#getTypeId <em>Type Id</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Type Id</em>' attribute. * @see #getTypeId() * @generated */ void setTypeId(String value); /** * Returns the value of the '<em><b>Optional</b></em>' attribute. * The default value is <code>"true"</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * <p> * Determines whether or not this parameter is optional. * </p> * <!-- end-model-doc --> * @return the value of the '<em>Optional</em>' attribute. * @see #setOptional(boolean) * @model default="true" * @generated */ boolean isOptional(); /** * Sets the value of the '{@link org.eclipse.e4.ui.model.application.commands.MCommandParameter#isOptional <em>Optional</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Optional</em>' attribute. * @see #isOptional() * @generated */ void setOptional(boolean value); } // MCommandParameter