/* * Copyright (c) 2003- michael lawley and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation * which accompanies this distribution, and is available by writing to * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Contributors: * michael lawley * * */ package tefkat.model.impl; import java.util.Iterator; import org.eclipse.emf.ecore.EClass; import tefkat.model.OrTerm; import tefkat.model.TefkatPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Or Term</b></em>'. * <!-- end-user-doc --> * <p> * </p> * * @generated */ public class OrTermImpl extends CompoundTermImpl implements OrTerm { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final String copyright = "Copyright michael lawley Pty Ltd 2003-2007"; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected OrTermImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EClass eStaticClass() { return TefkatPackage.Literals.OR_TERM; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public String toString() { if (eIsProxy()) return super.toString(); String sep = ""; String result = "("; for (Iterator itr = getTerm().iterator(); itr.hasNext(); ) { result = result + sep + itr.next(); sep = " || "; } return result + ")"; } } //OrTermImpl