blob: 64710b8f748474475fc4aaf1a771c1e1e35e2c12 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2016 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.ecl.data.commands;
import org.eclipse.rcptt.ecl.core.Command;
import org.eclipse.rcptt.ecl.data.objects.Table;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Get Column Names</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.rcptt.ecl.data.commands.GetColumnNames#getTable <em>Table</em>}</li>
* </ul>
*
* @see org.eclipse.rcptt.ecl.data.commands.CommandsPackage#getGetColumnNames()
* @model annotation="http://www.eclipse.org/ecl/docs description='Get list of column names from table' returns='List of table column names' example='proc logInfoItem [val row] [val columns] {\n\t$columns | each [val column] {\n\t\tlog [format \"%s: %s\" $column [$row | get $column]]\n\t}\n}\n\nget-view \"Error Log\" | get-tree | expand-all\nget-view \"Error Log\" | get-tree | get-table-data\n\t| write-excel-file \"workspace:/MyProject/AssertData/table.xls\"\n\nread-excel-file \"workspace:/MyProject/AssertData/table.xls\"\n\t| to-list | each [val table] {\n\tlet [val columns [$table | get-column-names]] {\n\t\t$table | get-rows-data | each [val item] {\n\t\t\tlogInfoItem $item $columns\n\t\t}\n\t}\n}'"
* @generated
*/
public interface GetColumnNames extends Command {
/**
* Returns the value of the '<em><b>Table</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Table</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Table</em>' reference.
* @see #setTable(Table)
* @see org.eclipse.rcptt.ecl.data.commands.CommandsPackage#getGetColumnNames_Table()
* @model required="true"
* annotation="http://www.eclipse.org/ecl/docs description='Table to get column names from'"
* @generated
*/
Table getTable();
/**
* Sets the value of the '{@link org.eclipse.rcptt.ecl.data.commands.GetColumnNames#getTable <em>Table</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Table</em>' reference.
* @see #getTable()
* @generated
*/
void setTable(Table value);
} // GetColumnNames