commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gu...@apache.org
Subject svn commit: r945179 [9/13] - in /commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml: ./ .settings/ META-INF/ bin/ model/ src/ src/org/ src/org/apache/ src/org/apache/commons/ src/org/apache/commons/scxml/ src/org/apach...
Date Mon, 17 May 2010 14:27:35 GMT
Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DonedataImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DonedataImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DonedataImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DonedataImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,218 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.Content;
+import org.apache.commons.scxml.Donedata;
+import org.apache.commons.scxml.Param;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Donedata</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.DonedataImpl#getContent <em>Content</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.DonedataImpl#getParam <em>Param</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DonedataImpl extends EObjectImpl implements Donedata {
+	/**
+	 * The cached value of the '{@link #getContent() <em>Content</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getContent()
+	 * @generated
+	 * @ordered
+	 */
+	protected Content content;
+
+	/**
+	 * The cached value of the '{@link #getParam() <em>Param</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getParam()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList param;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected DonedataImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.DONEDATA;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Content getContent() {
+		return content;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetContent(Content newContent, NotificationChain msgs) {
+		Content oldContent = content;
+		content = newContent;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.DONEDATA__CONTENT, oldContent, newContent);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setContent(Content newContent) {
+		if (newContent != content) {
+			NotificationChain msgs = null;
+			if (content != null)
+				msgs = ((InternalEObject)content).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.DONEDATA__CONTENT, null, msgs);
+			if (newContent != null)
+				msgs = ((InternalEObject)newContent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.DONEDATA__CONTENT, null, msgs);
+			msgs = basicSetContent(newContent, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.DONEDATA__CONTENT, newContent, newContent));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getParam() {
+		if (param == null) {
+			param = new EObjectContainmentEList(Param.class, this, ScxmlPackage.DONEDATA__PARAM);
+		}
+		return param;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.DONEDATA__CONTENT:
+				return basicSetContent(null, msgs);
+			case ScxmlPackage.DONEDATA__PARAM:
+				return ((InternalEList)getParam()).basicRemove(otherEnd, msgs);
+		}
+		return super.eInverseRemove(otherEnd, featureID, msgs);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.DONEDATA__CONTENT:
+				return getContent();
+			case ScxmlPackage.DONEDATA__PARAM:
+				return getParam();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.DONEDATA__CONTENT:
+				setContent((Content)newValue);
+				return;
+			case ScxmlPackage.DONEDATA__PARAM:
+				getParam().clear();
+				getParam().addAll((Collection)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.DONEDATA__CONTENT:
+				setContent((Content)null);
+				return;
+			case ScxmlPackage.DONEDATA__PARAM:
+				getParam().clear();
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.DONEDATA__CONTENT:
+				return content != null;
+			case ScxmlPackage.DONEDATA__PARAM:
+				return param != null && !param.isEmpty();
+		}
+		return super.eIsSet(featureID);
+	}
+
+} //DonedataImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DonedataImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseIfImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseIfImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseIfImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseIfImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,160 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.ElseIf;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Else If</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.ElseIfImpl#getCond <em>Cond</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ElseIfImpl extends ExecutableContentImpl implements ElseIf {
+	/**
+	 * The default value of the '{@link #getCond() <em>Cond</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getCond()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String COND_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getCond() <em>Cond</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getCond()
+	 * @generated
+	 * @ordered
+	 */
+	protected String cond = COND_EDEFAULT;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected ElseIfImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.ELSE_IF;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getCond() {
+		return cond;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setCond(String newCond) {
+		String oldCond = cond;
+		cond = newCond;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.ELSE_IF__COND, oldCond, cond));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.ELSE_IF__COND:
+				return getCond();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.ELSE_IF__COND:
+				setCond((String)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.ELSE_IF__COND:
+				setCond(COND_EDEFAULT);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.ELSE_IF__COND:
+				return COND_EDEFAULT == null ? cond != null : !COND_EDEFAULT.equals(cond);
+		}
+		return super.eIsSet(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String toString() {
+		if (eIsProxy()) return super.toString();
+
+		StringBuffer result = new StringBuffer(super.toString());
+		result.append(" (cond: ");
+		result.append(cond);
+		result.append(')');
+		return result.toString();
+	}
+
+} //ElseIfImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseIfImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,42 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.Else;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Else</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class ElseImpl extends ExecutableContentImpl implements Else {
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected ElseImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.ELSE;
+	}
+
+} //ElseImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ElseImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExecutableContentImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExecutableContentImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExecutableContentImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExecutableContentImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,44 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.ExecutableContent;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Executable Content</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class ExecutableContentImpl extends EObjectImpl implements ExecutableContent {
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected ExecutableContentImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.EXECUTABLE_CONTENT;
+	}
+
+} //ExecutableContentImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExecutableContentImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExtenExecContentImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExtenExecContentImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExtenExecContentImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExtenExecContentImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,42 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.ExtenExecContent;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Exten Exec Content</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class ExtenExecContentImpl extends ExecutableContentImpl implements ExtenExecContent {
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected ExtenExecContentImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.EXTEN_EXEC_CONTENT;
+	}
+
+} //ExtenExecContentImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ExtenExecContentImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalStateImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalStateImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalStateImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalStateImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,374 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.Donedata;
+import org.apache.commons.scxml.FinalState;
+import org.apache.commons.scxml.OnEntry;
+import org.apache.commons.scxml.OnExit;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Final State</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.FinalStateImpl#getId <em>Id</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.FinalStateImpl#getOnEntry <em>On Entry</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.FinalStateImpl#getOnExit <em>On Exit</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.FinalStateImpl#getDonedata <em>Donedata</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class FinalStateImpl extends NamedElementImpl implements FinalState {
+	/**
+	 * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getId()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String ID_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getId()
+	 * @generated
+	 * @ordered
+	 */
+	protected String id = ID_EDEFAULT;
+
+	/**
+	 * The cached value of the '{@link #getOnEntry() <em>On Entry</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getOnEntry()
+	 * @generated
+	 * @ordered
+	 */
+	protected OnEntry onEntry;
+
+	/**
+	 * The cached value of the '{@link #getOnExit() <em>On Exit</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getOnExit()
+	 * @generated
+	 * @ordered
+	 */
+	protected OnExit onExit;
+
+	/**
+	 * The cached value of the '{@link #getDonedata() <em>Donedata</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getDonedata()
+	 * @generated
+	 * @ordered
+	 */
+	protected Donedata donedata;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected FinalStateImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.FINAL_STATE;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getId() {
+		return id;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setId(String newId) {
+		String oldId = id;
+		id = newId;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.FINAL_STATE__ID, oldId, id));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public OnEntry getOnEntry() {
+		return onEntry;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetOnEntry(OnEntry newOnEntry, NotificationChain msgs) {
+		OnEntry oldOnEntry = onEntry;
+		onEntry = newOnEntry;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.FINAL_STATE__ON_ENTRY, oldOnEntry, newOnEntry);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setOnEntry(OnEntry newOnEntry) {
+		if (newOnEntry != onEntry) {
+			NotificationChain msgs = null;
+			if (onEntry != null)
+				msgs = ((InternalEObject)onEntry).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.FINAL_STATE__ON_ENTRY, null, msgs);
+			if (newOnEntry != null)
+				msgs = ((InternalEObject)newOnEntry).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.FINAL_STATE__ON_ENTRY, null, msgs);
+			msgs = basicSetOnEntry(newOnEntry, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.FINAL_STATE__ON_ENTRY, newOnEntry, newOnEntry));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public OnExit getOnExit() {
+		return onExit;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetOnExit(OnExit newOnExit, NotificationChain msgs) {
+		OnExit oldOnExit = onExit;
+		onExit = newOnExit;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.FINAL_STATE__ON_EXIT, oldOnExit, newOnExit);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setOnExit(OnExit newOnExit) {
+		if (newOnExit != onExit) {
+			NotificationChain msgs = null;
+			if (onExit != null)
+				msgs = ((InternalEObject)onExit).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.FINAL_STATE__ON_EXIT, null, msgs);
+			if (newOnExit != null)
+				msgs = ((InternalEObject)newOnExit).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.FINAL_STATE__ON_EXIT, null, msgs);
+			msgs = basicSetOnExit(newOnExit, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.FINAL_STATE__ON_EXIT, newOnExit, newOnExit));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Donedata getDonedata() {
+		return donedata;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetDonedata(Donedata newDonedata, NotificationChain msgs) {
+		Donedata oldDonedata = donedata;
+		donedata = newDonedata;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.FINAL_STATE__DONEDATA, oldDonedata, newDonedata);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setDonedata(Donedata newDonedata) {
+		if (newDonedata != donedata) {
+			NotificationChain msgs = null;
+			if (donedata != null)
+				msgs = ((InternalEObject)donedata).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.FINAL_STATE__DONEDATA, null, msgs);
+			if (newDonedata != null)
+				msgs = ((InternalEObject)newDonedata).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.FINAL_STATE__DONEDATA, null, msgs);
+			msgs = basicSetDonedata(newDonedata, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.FINAL_STATE__DONEDATA, newDonedata, newDonedata));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.FINAL_STATE__ON_ENTRY:
+				return basicSetOnEntry(null, msgs);
+			case ScxmlPackage.FINAL_STATE__ON_EXIT:
+				return basicSetOnExit(null, msgs);
+			case ScxmlPackage.FINAL_STATE__DONEDATA:
+				return basicSetDonedata(null, msgs);
+		}
+		return super.eInverseRemove(otherEnd, featureID, msgs);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.FINAL_STATE__ID:
+				return getId();
+			case ScxmlPackage.FINAL_STATE__ON_ENTRY:
+				return getOnEntry();
+			case ScxmlPackage.FINAL_STATE__ON_EXIT:
+				return getOnExit();
+			case ScxmlPackage.FINAL_STATE__DONEDATA:
+				return getDonedata();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.FINAL_STATE__ID:
+				setId((String)newValue);
+				return;
+			case ScxmlPackage.FINAL_STATE__ON_ENTRY:
+				setOnEntry((OnEntry)newValue);
+				return;
+			case ScxmlPackage.FINAL_STATE__ON_EXIT:
+				setOnExit((OnExit)newValue);
+				return;
+			case ScxmlPackage.FINAL_STATE__DONEDATA:
+				setDonedata((Donedata)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.FINAL_STATE__ID:
+				setId(ID_EDEFAULT);
+				return;
+			case ScxmlPackage.FINAL_STATE__ON_ENTRY:
+				setOnEntry((OnEntry)null);
+				return;
+			case ScxmlPackage.FINAL_STATE__ON_EXIT:
+				setOnExit((OnExit)null);
+				return;
+			case ScxmlPackage.FINAL_STATE__DONEDATA:
+				setDonedata((Donedata)null);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.FINAL_STATE__ID:
+				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+			case ScxmlPackage.FINAL_STATE__ON_ENTRY:
+				return onEntry != null;
+			case ScxmlPackage.FINAL_STATE__ON_EXIT:
+				return onExit != null;
+			case ScxmlPackage.FINAL_STATE__DONEDATA:
+				return donedata != null;
+		}
+		return super.eIsSet(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String toString() {
+		if (eIsProxy()) return super.toString();
+
+		StringBuffer result = new StringBuffer(super.toString());
+		result.append(" (id: ");
+		result.append(id);
+		result.append(')');
+		return result.toString();
+	}
+
+} //FinalStateImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalStateImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalizeImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalizeImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalizeImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalizeImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,149 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.ExecutableContent;
+import org.apache.commons.scxml.Finalize;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Finalize</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.FinalizeImpl#getExecutableContent <em>Executable Content</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class FinalizeImpl extends EObjectImpl implements Finalize {
+	/**
+	 * The cached value of the '{@link #getExecutableContent() <em>Executable Content</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getExecutableContent()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList executableContent;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected FinalizeImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.FINALIZE;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getExecutableContent() {
+		if (executableContent == null) {
+			executableContent = new EObjectContainmentEList(ExecutableContent.class, this, ScxmlPackage.FINALIZE__EXECUTABLE_CONTENT);
+		}
+		return executableContent;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.FINALIZE__EXECUTABLE_CONTENT:
+				return ((InternalEList)getExecutableContent()).basicRemove(otherEnd, msgs);
+		}
+		return super.eInverseRemove(otherEnd, featureID, msgs);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.FINALIZE__EXECUTABLE_CONTENT:
+				return getExecutableContent();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.FINALIZE__EXECUTABLE_CONTENT:
+				getExecutableContent().clear();
+				getExecutableContent().addAll((Collection)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.FINALIZE__EXECUTABLE_CONTENT:
+				getExecutableContent().clear();
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.FINALIZE__EXECUTABLE_CONTENT:
+				return executableContent != null && !executableContent.isEmpty();
+		}
+		return super.eIsSet(featureID);
+	}
+
+} //FinalizeImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/FinalizeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/HistoryStateImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/HistoryStateImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/HistoryStateImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/HistoryStateImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,214 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.HistoryState;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>History State</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.HistoryStateImpl#getId <em>Id</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.HistoryStateImpl#getType <em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class HistoryStateImpl extends NamedElementImpl implements HistoryState {
+	/**
+	 * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getId()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String ID_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getId()
+	 * @generated
+	 * @ordered
+	 */
+	protected String id = ID_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getType() <em>Type</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getType()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String TYPE_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getType()
+	 * @generated
+	 * @ordered
+	 */
+	protected String type = TYPE_EDEFAULT;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected HistoryStateImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.HISTORY_STATE;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getId() {
+		return id;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setId(String newId) {
+		String oldId = id;
+		id = newId;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.HISTORY_STATE__ID, oldId, id));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getType() {
+		return type;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setType(String newType) {
+		String oldType = type;
+		type = newType;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.HISTORY_STATE__TYPE, oldType, type));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.HISTORY_STATE__ID:
+				return getId();
+			case ScxmlPackage.HISTORY_STATE__TYPE:
+				return getType();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.HISTORY_STATE__ID:
+				setId((String)newValue);
+				return;
+			case ScxmlPackage.HISTORY_STATE__TYPE:
+				setType((String)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.HISTORY_STATE__ID:
+				setId(ID_EDEFAULT);
+				return;
+			case ScxmlPackage.HISTORY_STATE__TYPE:
+				setType(TYPE_EDEFAULT);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.HISTORY_STATE__ID:
+				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+			case ScxmlPackage.HISTORY_STATE__TYPE:
+				return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+		}
+		return super.eIsSet(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String toString() {
+		if (eIsProxy()) return super.toString();
+
+		StringBuffer result = new StringBuffer(super.toString());
+		result.append(" (id: ");
+		result.append(id);
+		result.append(", type: ");
+		result.append(type);
+		result.append(')');
+		return result.toString();
+	}
+
+} //HistoryStateImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/HistoryStateImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/IfImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/IfImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/IfImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/IfImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,284 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.Else;
+import org.apache.commons.scxml.ElseIf;
+import org.apache.commons.scxml.If;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>If</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.IfImpl#getCond <em>Cond</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.IfImpl#getElseif <em>Elseif</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.IfImpl#getElse <em>Else</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class IfImpl extends ExecutableContentImpl implements If {
+	/**
+	 * The default value of the '{@link #getCond() <em>Cond</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getCond()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String COND_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getCond() <em>Cond</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getCond()
+	 * @generated
+	 * @ordered
+	 */
+	protected String cond = COND_EDEFAULT;
+
+	/**
+	 * The cached value of the '{@link #getElseif() <em>Elseif</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getElseif()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList elseif;
+
+	/**
+	 * The cached value of the '{@link #getElse() <em>Else</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getElse()
+	 * @generated
+	 * @ordered
+	 */
+	protected Else else_;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected IfImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.IF;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getCond() {
+		return cond;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setCond(String newCond) {
+		String oldCond = cond;
+		cond = newCond;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.IF__COND, oldCond, cond));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getElseif() {
+		if (elseif == null) {
+			elseif = new EObjectContainmentEList(ElseIf.class, this, ScxmlPackage.IF__ELSEIF);
+		}
+		return elseif;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Else getElse() {
+		return else_;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetElse(Else newElse, NotificationChain msgs) {
+		Else oldElse = else_;
+		else_ = newElse;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.IF__ELSE, oldElse, newElse);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setElse(Else newElse) {
+		if (newElse != else_) {
+			NotificationChain msgs = null;
+			if (else_ != null)
+				msgs = ((InternalEObject)else_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.IF__ELSE, null, msgs);
+			if (newElse != null)
+				msgs = ((InternalEObject)newElse).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.IF__ELSE, null, msgs);
+			msgs = basicSetElse(newElse, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.IF__ELSE, newElse, newElse));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.IF__ELSEIF:
+				return ((InternalEList)getElseif()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.IF__ELSE:
+				return basicSetElse(null, msgs);
+		}
+		return super.eInverseRemove(otherEnd, featureID, msgs);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.IF__COND:
+				return getCond();
+			case ScxmlPackage.IF__ELSEIF:
+				return getElseif();
+			case ScxmlPackage.IF__ELSE:
+				return getElse();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.IF__COND:
+				setCond((String)newValue);
+				return;
+			case ScxmlPackage.IF__ELSEIF:
+				getElseif().clear();
+				getElseif().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.IF__ELSE:
+				setElse((Else)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.IF__COND:
+				setCond(COND_EDEFAULT);
+				return;
+			case ScxmlPackage.IF__ELSEIF:
+				getElseif().clear();
+				return;
+			case ScxmlPackage.IF__ELSE:
+				setElse((Else)null);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.IF__COND:
+				return COND_EDEFAULT == null ? cond != null : !COND_EDEFAULT.equals(cond);
+			case ScxmlPackage.IF__ELSEIF:
+				return elseif != null && !elseif.isEmpty();
+			case ScxmlPackage.IF__ELSE:
+				return else_ != null;
+		}
+		return super.eIsSet(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String toString() {
+		if (eIsProxy()) return super.toString();
+
+		StringBuffer result = new StringBuffer(super.toString());
+		result.append(" (cond: ");
+		result.append(cond);
+		result.append(')');
+		return result.toString();
+	}
+
+} //IfImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/IfImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InitialStateImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InitialStateImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InitialStateImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InitialStateImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,42 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.InitialState;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Initial State</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class InitialStateImpl extends NamedElementImpl implements InitialState {
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected InitialStateImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.INITIAL_STATE;
+	}
+
+} //InitialStateImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InitialStateImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InvokeImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InvokeImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InvokeImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InvokeImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,730 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.Content;
+import org.apache.commons.scxml.Finalize;
+import org.apache.commons.scxml.Invoke;
+import org.apache.commons.scxml.Param;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Invoke</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getContent <em>Content</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getParam <em>Param</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getType <em>Type</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getTypeexpr <em>Typeexpr</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getSrc <em>Src</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getSrcexpr <em>Srcexpr</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getId <em>Id</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getIdlocation <em>Idlocation</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getNamelist <em>Namelist</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getAutoforward <em>Autoforward</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.InvokeImpl#getFinalize <em>Finalize</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class InvokeImpl extends EObjectImpl implements Invoke {
+	/**
+	 * The cached value of the '{@link #getContent() <em>Content</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getContent()
+	 * @generated
+	 * @ordered
+	 */
+	protected Content content;
+
+	/**
+	 * The cached value of the '{@link #getParam() <em>Param</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getParam()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList param;
+
+	/**
+	 * The default value of the '{@link #getType() <em>Type</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getType()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String TYPE_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getType()
+	 * @generated
+	 * @ordered
+	 */
+	protected String type = TYPE_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getTypeexpr() <em>Typeexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTypeexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String TYPEEXPR_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getTypeexpr() <em>Typeexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTypeexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected String typeexpr = TYPEEXPR_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getSrc() <em>Src</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getSrc()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String SRC_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getSrc() <em>Src</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getSrc()
+	 * @generated
+	 * @ordered
+	 */
+	protected String src = SRC_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getSrcexpr() <em>Srcexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getSrcexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String SRCEXPR_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getSrcexpr() <em>Srcexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getSrcexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected String srcexpr = SRCEXPR_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getId()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String ID_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getId()
+	 * @generated
+	 * @ordered
+	 */
+	protected String id = ID_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getIdlocation() <em>Idlocation</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getIdlocation()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String IDLOCATION_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getIdlocation() <em>Idlocation</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getIdlocation()
+	 * @generated
+	 * @ordered
+	 */
+	protected String idlocation = IDLOCATION_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getNamelist() <em>Namelist</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getNamelist()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String NAMELIST_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getNamelist() <em>Namelist</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getNamelist()
+	 * @generated
+	 * @ordered
+	 */
+	protected String namelist = NAMELIST_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getAutoforward() <em>Autoforward</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getAutoforward()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String AUTOFORWARD_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getAutoforward() <em>Autoforward</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getAutoforward()
+	 * @generated
+	 * @ordered
+	 */
+	protected String autoforward = AUTOFORWARD_EDEFAULT;
+
+	/**
+	 * The cached value of the '{@link #getFinalize() <em>Finalize</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getFinalize()
+	 * @generated
+	 * @ordered
+	 */
+	protected Finalize finalize;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected InvokeImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.INVOKE;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Content getContent() {
+		return content;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetContent(Content newContent, NotificationChain msgs) {
+		Content oldContent = content;
+		content = newContent;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__CONTENT, oldContent, newContent);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setContent(Content newContent) {
+		if (newContent != content) {
+			NotificationChain msgs = null;
+			if (content != null)
+				msgs = ((InternalEObject)content).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.INVOKE__CONTENT, null, msgs);
+			if (newContent != null)
+				msgs = ((InternalEObject)newContent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.INVOKE__CONTENT, null, msgs);
+			msgs = basicSetContent(newContent, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__CONTENT, newContent, newContent));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getParam() {
+		if (param == null) {
+			param = new EObjectContainmentEList(Param.class, this, ScxmlPackage.INVOKE__PARAM);
+		}
+		return param;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getType() {
+		return type;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setType(String newType) {
+		String oldType = type;
+		type = newType;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__TYPE, oldType, type));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getTypeexpr() {
+		return typeexpr;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setTypeexpr(String newTypeexpr) {
+		String oldTypeexpr = typeexpr;
+		typeexpr = newTypeexpr;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__TYPEEXPR, oldTypeexpr, typeexpr));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getSrc() {
+		return src;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setSrc(String newSrc) {
+		String oldSrc = src;
+		src = newSrc;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__SRC, oldSrc, src));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getSrcexpr() {
+		return srcexpr;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setSrcexpr(String newSrcexpr) {
+		String oldSrcexpr = srcexpr;
+		srcexpr = newSrcexpr;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__SRCEXPR, oldSrcexpr, srcexpr));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getId() {
+		return id;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setId(String newId) {
+		String oldId = id;
+		id = newId;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__ID, oldId, id));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getIdlocation() {
+		return idlocation;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setIdlocation(String newIdlocation) {
+		String oldIdlocation = idlocation;
+		idlocation = newIdlocation;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__IDLOCATION, oldIdlocation, idlocation));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getNamelist() {
+		return namelist;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setNamelist(String newNamelist) {
+		String oldNamelist = namelist;
+		namelist = newNamelist;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__NAMELIST, oldNamelist, namelist));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getAutoforward() {
+		return autoforward;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setAutoforward(String newAutoforward) {
+		String oldAutoforward = autoforward;
+		autoforward = newAutoforward;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__AUTOFORWARD, oldAutoforward, autoforward));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Finalize getFinalize() {
+		return finalize;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetFinalize(Finalize newFinalize, NotificationChain msgs) {
+		Finalize oldFinalize = finalize;
+		finalize = newFinalize;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__FINALIZE, oldFinalize, newFinalize);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setFinalize(Finalize newFinalize) {
+		if (newFinalize != finalize) {
+			NotificationChain msgs = null;
+			if (finalize != null)
+				msgs = ((InternalEObject)finalize).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.INVOKE__FINALIZE, null, msgs);
+			if (newFinalize != null)
+				msgs = ((InternalEObject)newFinalize).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.INVOKE__FINALIZE, null, msgs);
+			msgs = basicSetFinalize(newFinalize, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.INVOKE__FINALIZE, newFinalize, newFinalize));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.INVOKE__CONTENT:
+				return basicSetContent(null, msgs);
+			case ScxmlPackage.INVOKE__PARAM:
+				return ((InternalEList)getParam()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.INVOKE__FINALIZE:
+				return basicSetFinalize(null, msgs);
+		}
+		return super.eInverseRemove(otherEnd, featureID, msgs);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.INVOKE__CONTENT:
+				return getContent();
+			case ScxmlPackage.INVOKE__PARAM:
+				return getParam();
+			case ScxmlPackage.INVOKE__TYPE:
+				return getType();
+			case ScxmlPackage.INVOKE__TYPEEXPR:
+				return getTypeexpr();
+			case ScxmlPackage.INVOKE__SRC:
+				return getSrc();
+			case ScxmlPackage.INVOKE__SRCEXPR:
+				return getSrcexpr();
+			case ScxmlPackage.INVOKE__ID:
+				return getId();
+			case ScxmlPackage.INVOKE__IDLOCATION:
+				return getIdlocation();
+			case ScxmlPackage.INVOKE__NAMELIST:
+				return getNamelist();
+			case ScxmlPackage.INVOKE__AUTOFORWARD:
+				return getAutoforward();
+			case ScxmlPackage.INVOKE__FINALIZE:
+				return getFinalize();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.INVOKE__CONTENT:
+				setContent((Content)newValue);
+				return;
+			case ScxmlPackage.INVOKE__PARAM:
+				getParam().clear();
+				getParam().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.INVOKE__TYPE:
+				setType((String)newValue);
+				return;
+			case ScxmlPackage.INVOKE__TYPEEXPR:
+				setTypeexpr((String)newValue);
+				return;
+			case ScxmlPackage.INVOKE__SRC:
+				setSrc((String)newValue);
+				return;
+			case ScxmlPackage.INVOKE__SRCEXPR:
+				setSrcexpr((String)newValue);
+				return;
+			case ScxmlPackage.INVOKE__ID:
+				setId((String)newValue);
+				return;
+			case ScxmlPackage.INVOKE__IDLOCATION:
+				setIdlocation((String)newValue);
+				return;
+			case ScxmlPackage.INVOKE__NAMELIST:
+				setNamelist((String)newValue);
+				return;
+			case ScxmlPackage.INVOKE__AUTOFORWARD:
+				setAutoforward((String)newValue);
+				return;
+			case ScxmlPackage.INVOKE__FINALIZE:
+				setFinalize((Finalize)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.INVOKE__CONTENT:
+				setContent((Content)null);
+				return;
+			case ScxmlPackage.INVOKE__PARAM:
+				getParam().clear();
+				return;
+			case ScxmlPackage.INVOKE__TYPE:
+				setType(TYPE_EDEFAULT);
+				return;
+			case ScxmlPackage.INVOKE__TYPEEXPR:
+				setTypeexpr(TYPEEXPR_EDEFAULT);
+				return;
+			case ScxmlPackage.INVOKE__SRC:
+				setSrc(SRC_EDEFAULT);
+				return;
+			case ScxmlPackage.INVOKE__SRCEXPR:
+				setSrcexpr(SRCEXPR_EDEFAULT);
+				return;
+			case ScxmlPackage.INVOKE__ID:
+				setId(ID_EDEFAULT);
+				return;
+			case ScxmlPackage.INVOKE__IDLOCATION:
+				setIdlocation(IDLOCATION_EDEFAULT);
+				return;
+			case ScxmlPackage.INVOKE__NAMELIST:
+				setNamelist(NAMELIST_EDEFAULT);
+				return;
+			case ScxmlPackage.INVOKE__AUTOFORWARD:
+				setAutoforward(AUTOFORWARD_EDEFAULT);
+				return;
+			case ScxmlPackage.INVOKE__FINALIZE:
+				setFinalize((Finalize)null);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.INVOKE__CONTENT:
+				return content != null;
+			case ScxmlPackage.INVOKE__PARAM:
+				return param != null && !param.isEmpty();
+			case ScxmlPackage.INVOKE__TYPE:
+				return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+			case ScxmlPackage.INVOKE__TYPEEXPR:
+				return TYPEEXPR_EDEFAULT == null ? typeexpr != null : !TYPEEXPR_EDEFAULT.equals(typeexpr);
+			case ScxmlPackage.INVOKE__SRC:
+				return SRC_EDEFAULT == null ? src != null : !SRC_EDEFAULT.equals(src);
+			case ScxmlPackage.INVOKE__SRCEXPR:
+				return SRCEXPR_EDEFAULT == null ? srcexpr != null : !SRCEXPR_EDEFAULT.equals(srcexpr);
+			case ScxmlPackage.INVOKE__ID:
+				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+			case ScxmlPackage.INVOKE__IDLOCATION:
+				return IDLOCATION_EDEFAULT == null ? idlocation != null : !IDLOCATION_EDEFAULT.equals(idlocation);
+			case ScxmlPackage.INVOKE__NAMELIST:
+				return NAMELIST_EDEFAULT == null ? namelist != null : !NAMELIST_EDEFAULT.equals(namelist);
+			case ScxmlPackage.INVOKE__AUTOFORWARD:
+				return AUTOFORWARD_EDEFAULT == null ? autoforward != null : !AUTOFORWARD_EDEFAULT.equals(autoforward);
+			case ScxmlPackage.INVOKE__FINALIZE:
+				return finalize != null;
+		}
+		return super.eIsSet(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String toString() {
+		if (eIsProxy()) return super.toString();
+
+		StringBuffer result = new StringBuffer(super.toString());
+		result.append(" (type: ");
+		result.append(type);
+		result.append(", typeexpr: ");
+		result.append(typeexpr);
+		result.append(", src: ");
+		result.append(src);
+		result.append(", srcexpr: ");
+		result.append(srcexpr);
+		result.append(", id: ");
+		result.append(id);
+		result.append(", idlocation: ");
+		result.append(idlocation);
+		result.append(", namelist: ");
+		result.append(namelist);
+		result.append(", autoforward: ");
+		result.append(autoforward);
+		result.append(')');
+		return result.toString();
+	}
+
+} //InvokeImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/InvokeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/LogImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/LogImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/LogImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/LogImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,268 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.Log;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Log</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.LogImpl#getLabel <em>Label</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.LogImpl#getExpr <em>Expr</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.LogImpl#getLevel <em>Level</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class LogImpl extends ExecutableContentImpl implements Log {
+	/**
+	 * The default value of the '{@link #getLabel() <em>Label</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getLabel()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String LABEL_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getLabel()
+	 * @generated
+	 * @ordered
+	 */
+	protected String label = LABEL_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getExpr() <em>Expr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getExpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String EXPR_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getExpr() <em>Expr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getExpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected String expr = EXPR_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getLevel() <em>Level</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getLevel()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String LEVEL_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getLevel() <em>Level</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getLevel()
+	 * @generated
+	 * @ordered
+	 */
+	protected String level = LEVEL_EDEFAULT;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected LogImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.LOG;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getLabel() {
+		return label;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setLabel(String newLabel) {
+		String oldLabel = label;
+		label = newLabel;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.LOG__LABEL, oldLabel, label));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getExpr() {
+		return expr;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setExpr(String newExpr) {
+		String oldExpr = expr;
+		expr = newExpr;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.LOG__EXPR, oldExpr, expr));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getLevel() {
+		return level;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setLevel(String newLevel) {
+		String oldLevel = level;
+		level = newLevel;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.LOG__LEVEL, oldLevel, level));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.LOG__LABEL:
+				return getLabel();
+			case ScxmlPackage.LOG__EXPR:
+				return getExpr();
+			case ScxmlPackage.LOG__LEVEL:
+				return getLevel();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.LOG__LABEL:
+				setLabel((String)newValue);
+				return;
+			case ScxmlPackage.LOG__EXPR:
+				setExpr((String)newValue);
+				return;
+			case ScxmlPackage.LOG__LEVEL:
+				setLevel((String)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.LOG__LABEL:
+				setLabel(LABEL_EDEFAULT);
+				return;
+			case ScxmlPackage.LOG__EXPR:
+				setExpr(EXPR_EDEFAULT);
+				return;
+			case ScxmlPackage.LOG__LEVEL:
+				setLevel(LEVEL_EDEFAULT);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.LOG__LABEL:
+				return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label);
+			case ScxmlPackage.LOG__EXPR:
+				return EXPR_EDEFAULT == null ? expr != null : !EXPR_EDEFAULT.equals(expr);
+			case ScxmlPackage.LOG__LEVEL:
+				return LEVEL_EDEFAULT == null ? level != null : !LEVEL_EDEFAULT.equals(level);
+		}
+		return super.eIsSet(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String toString() {
+		if (eIsProxy()) return super.toString();
+
+		StringBuffer result = new StringBuffer(super.toString());
+		result.append(" (label: ");
+		result.append(label);
+		result.append(", expr: ");
+		result.append(expr);
+		result.append(", level: ");
+		result.append(level);
+		result.append(')');
+		return result.toString();
+	}
+
+} //LogImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/LogImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/NamedElementImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/NamedElementImpl.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/NamedElementImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/NamedElementImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,222 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.DataModel;
+import org.apache.commons.scxml.NamedElement;
+import org.apache.commons.scxml.ScxmlPackage;
+import org.apache.commons.scxml.Translation;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Named Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.NamedElementImpl#getSourceConnection <em>Source Connection</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.NamedElementImpl#getTargetConnection <em>Target Connection</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.NamedElementImpl#getDataModel <em>Data Model</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class NamedElementImpl extends EObjectImpl implements NamedElement {
+	/**
+	 * The cached value of the '{@link #getSourceConnection() <em>Source Connection</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getSourceConnection()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList sourceConnection;
+
+	/**
+	 * The cached value of the '{@link #getTargetConnection() <em>Target Connection</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTargetConnection()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList targetConnection;
+
+	/**
+	 * The cached value of the '{@link #getDataModel() <em>Data Model</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getDataModel()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList dataModel;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected NamedElementImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.NAMED_ELEMENT;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getSourceConnection() {
+		if (sourceConnection == null) {
+			sourceConnection = new EObjectContainmentEList(Translation.class, this, ScxmlPackage.NAMED_ELEMENT__SOURCE_CONNECTION);
+		}
+		return sourceConnection;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getTargetConnection() {
+		if (targetConnection == null) {
+			targetConnection = new EObjectContainmentEList(Translation.class, this, ScxmlPackage.NAMED_ELEMENT__TARGET_CONNECTION);
+		}
+		return targetConnection;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getDataModel() {
+		if (dataModel == null) {
+			dataModel = new EObjectContainmentEList(DataModel.class, this, ScxmlPackage.NAMED_ELEMENT__DATA_MODEL);
+		}
+		return dataModel;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.NAMED_ELEMENT__SOURCE_CONNECTION:
+				return ((InternalEList)getSourceConnection()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.NAMED_ELEMENT__TARGET_CONNECTION:
+				return ((InternalEList)getTargetConnection()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.NAMED_ELEMENT__DATA_MODEL:
+				return ((InternalEList)getDataModel()).basicRemove(otherEnd, msgs);
+		}
+		return super.eInverseRemove(otherEnd, featureID, msgs);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.NAMED_ELEMENT__SOURCE_CONNECTION:
+				return getSourceConnection();
+			case ScxmlPackage.NAMED_ELEMENT__TARGET_CONNECTION:
+				return getTargetConnection();
+			case ScxmlPackage.NAMED_ELEMENT__DATA_MODEL:
+				return getDataModel();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.NAMED_ELEMENT__SOURCE_CONNECTION:
+				getSourceConnection().clear();
+				getSourceConnection().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.NAMED_ELEMENT__TARGET_CONNECTION:
+				getTargetConnection().clear();
+				getTargetConnection().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.NAMED_ELEMENT__DATA_MODEL:
+				getDataModel().clear();
+				getDataModel().addAll((Collection)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.NAMED_ELEMENT__SOURCE_CONNECTION:
+				getSourceConnection().clear();
+				return;
+			case ScxmlPackage.NAMED_ELEMENT__TARGET_CONNECTION:
+				getTargetConnection().clear();
+				return;
+			case ScxmlPackage.NAMED_ELEMENT__DATA_MODEL:
+				getDataModel().clear();
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.NAMED_ELEMENT__SOURCE_CONNECTION:
+				return sourceConnection != null && !sourceConnection.isEmpty();
+			case ScxmlPackage.NAMED_ELEMENT__TARGET_CONNECTION:
+				return targetConnection != null && !targetConnection.isEmpty();
+			case ScxmlPackage.NAMED_ELEMENT__DATA_MODEL:
+				return dataModel != null && !dataModel.isEmpty();
+		}
+		return super.eIsSet(featureID);
+	}
+
+} //NamedElementImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/NamedElementImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message