blob: 6fd3f14de4e2e3901645742aeffbf74e37f5c207 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2019 Xored Software Inc 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
* https://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.ecl.data.commands;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.rcptt.ecl.core.Command;
import org.eclipse.rcptt.ecl.data.objects.Tree;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Set Attribute</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.rcptt.ecl.data.commands.SetAttr#getObject <em>Object</em>}</li>
* <li>{@link org.eclipse.rcptt.ecl.data.commands.SetAttr#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.rcptt.ecl.data.commands.SetAttr#getValue <em>Value</em>}</li>
* </ul>
*
* @see org.eclipse.rcptt.ecl.data.commands.CommandsPackage#getSetAttr()
* @model annotation="http://www.eclipse.org/ecl/docs description='Sets value of the object attribute. If <code>value</code> parameter is not specified, the attribute will be removed.' returns='The value of <code>object</code> argument' example='tree-node \"Device\" [map [entry \"id\" \"1\"] [entry \"name\" \"first\"]]\n\t| get-attr \"name\" | log\n\n\n--set-attr-\n\n\n\ntree-node \"Device\" [map [entry \"id\" \"1\"] [entry \"name\" \"first\"]]\n\t| set-attr \"name\" \"second\" | get-attr \"name\" | log'"
* @generated
*/
public interface SetAttr extends Command {
/**
* Returns the value of the '<em><b>Object</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Object</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Object</em>' reference.
* @see #setObject(EObject)
* @see org.eclipse.rcptt.ecl.data.commands.CommandsPackage#getSetAttr_Object()
* @model required="true"
* annotation="http://www.eclipse.org/ecl/docs description='Object to set attribute to'"
* @generated
*/
EObject getObject();
/**
* Sets the value of the '{@link org.eclipse.rcptt.ecl.data.commands.SetAttr#getObject <em>Object</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Object</em>' reference.
* @see #getObject()
* @generated
*/
void setObject(EObject value);
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.rcptt.ecl.data.commands.CommandsPackage#getSetAttr_Name()
* @model required="true"
* annotation="http://www.eclipse.org/ecl/docs description='Name of the attribute'"
* @generated
*/
String getName();
/**
* Sets the value of the '{@link org.eclipse.rcptt.ecl.data.commands.SetAttr#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>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.rcptt.ecl.data.commands.CommandsPackage#getSetAttr_Value()
* @model annotation="http://www.eclipse.org/ecl/docs description='New value of the attribute'"
* @generated
*/
String getValue();
/**
* Sets the value of the '{@link org.eclipse.rcptt.ecl.data.commands.SetAttr#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);
} // SetAttribute