commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gu...@apache.org
Subject svn commit: r945179 [10/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/apac...
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/OnEntryImpl.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/OnEntryImpl.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/OnEntryImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/OnEntryImpl.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.ExecutableContent;
+import org.apache.commons.scxml.OnEntry;
+import org.apache.commons.scxml.Script;
+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>On Entry</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.OnEntryImpl#getExecutableContext <em>Executable Context</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.OnEntryImpl#getScript <em>Script</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class OnEntryImpl extends EObjectImpl implements OnEntry {
+	/**
+	 * The cached value of the '{@link #getExecutableContext() <em>Executable Context</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getExecutableContext()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList executableContext;
+
+	/**
+	 * The cached value of the '{@link #getScript() <em>Script</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getScript()
+	 * @generated
+	 * @ordered
+	 */
+	protected Script script;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected OnEntryImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.ON_ENTRY;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getExecutableContext() {
+		if (executableContext == null) {
+			executableContext = new EObjectContainmentEList(ExecutableContent.class, this, ScxmlPackage.ON_ENTRY__EXECUTABLE_CONTEXT);
+		}
+		return executableContext;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Script getScript() {
+		return script;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetScript(Script newScript, NotificationChain msgs) {
+		Script oldScript = script;
+		script = newScript;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.ON_ENTRY__SCRIPT, oldScript, newScript);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setScript(Script newScript) {
+		if (newScript != script) {
+			NotificationChain msgs = null;
+			if (script != null)
+				msgs = ((InternalEObject)script).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.ON_ENTRY__SCRIPT, null, msgs);
+			if (newScript != null)
+				msgs = ((InternalEObject)newScript).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.ON_ENTRY__SCRIPT, null, msgs);
+			msgs = basicSetScript(newScript, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.ON_ENTRY__SCRIPT, newScript, newScript));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.ON_ENTRY__EXECUTABLE_CONTEXT:
+				return ((InternalEList)getExecutableContext()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.ON_ENTRY__SCRIPT:
+				return basicSetScript(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.ON_ENTRY__EXECUTABLE_CONTEXT:
+				return getExecutableContext();
+			case ScxmlPackage.ON_ENTRY__SCRIPT:
+				return getScript();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.ON_ENTRY__EXECUTABLE_CONTEXT:
+				getExecutableContext().clear();
+				getExecutableContext().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.ON_ENTRY__SCRIPT:
+				setScript((Script)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.ON_ENTRY__EXECUTABLE_CONTEXT:
+				getExecutableContext().clear();
+				return;
+			case ScxmlPackage.ON_ENTRY__SCRIPT:
+				setScript((Script)null);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.ON_ENTRY__EXECUTABLE_CONTEXT:
+				return executableContext != null && !executableContext.isEmpty();
+			case ScxmlPackage.ON_ENTRY__SCRIPT:
+				return script != null;
+		}
+		return super.eIsSet(featureID);
+	}
+
+} //OnEntryImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/OnEntryImpl.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/OnExitImpl.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/OnExitImpl.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/OnExitImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/OnExitImpl.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.ExecutableContent;
+import org.apache.commons.scxml.OnExit;
+import org.apache.commons.scxml.Script;
+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>On Exit</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.OnExitImpl#getExecutableContext <em>Executable Context</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.OnExitImpl#getScript <em>Script</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class OnExitImpl extends EObjectImpl implements OnExit {
+	/**
+	 * The cached value of the '{@link #getExecutableContext() <em>Executable Context</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getExecutableContext()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList executableContext;
+
+	/**
+	 * The cached value of the '{@link #getScript() <em>Script</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getScript()
+	 * @generated
+	 * @ordered
+	 */
+	protected Script script;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected OnExitImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.ON_EXIT;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getExecutableContext() {
+		if (executableContext == null) {
+			executableContext = new EObjectContainmentEList(ExecutableContent.class, this, ScxmlPackage.ON_EXIT__EXECUTABLE_CONTEXT);
+		}
+		return executableContext;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Script getScript() {
+		return script;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetScript(Script newScript, NotificationChain msgs) {
+		Script oldScript = script;
+		script = newScript;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.ON_EXIT__SCRIPT, oldScript, newScript);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setScript(Script newScript) {
+		if (newScript != script) {
+			NotificationChain msgs = null;
+			if (script != null)
+				msgs = ((InternalEObject)script).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.ON_EXIT__SCRIPT, null, msgs);
+			if (newScript != null)
+				msgs = ((InternalEObject)newScript).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.ON_EXIT__SCRIPT, null, msgs);
+			msgs = basicSetScript(newScript, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.ON_EXIT__SCRIPT, newScript, newScript));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.ON_EXIT__EXECUTABLE_CONTEXT:
+				return ((InternalEList)getExecutableContext()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.ON_EXIT__SCRIPT:
+				return basicSetScript(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.ON_EXIT__EXECUTABLE_CONTEXT:
+				return getExecutableContext();
+			case ScxmlPackage.ON_EXIT__SCRIPT:
+				return getScript();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.ON_EXIT__EXECUTABLE_CONTEXT:
+				getExecutableContext().clear();
+				getExecutableContext().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.ON_EXIT__SCRIPT:
+				setScript((Script)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.ON_EXIT__EXECUTABLE_CONTEXT:
+				getExecutableContext().clear();
+				return;
+			case ScxmlPackage.ON_EXIT__SCRIPT:
+				setScript((Script)null);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.ON_EXIT__EXECUTABLE_CONTEXT:
+				return executableContext != null && !executableContext.isEmpty();
+			case ScxmlPackage.ON_EXIT__SCRIPT:
+				return script != null;
+		}
+		return super.eIsSet(featureID);
+	}
+
+} //OnExitImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/OnExitImpl.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/ParallelImpl.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/ParallelImpl.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/ParallelImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ParallelImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,461 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.Anchor;
+import org.apache.commons.scxml.HistoryState;
+import org.apache.commons.scxml.OnEntry;
+import org.apache.commons.scxml.OnExit;
+import org.apache.commons.scxml.Parallel;
+import org.apache.commons.scxml.ScxmlPackage;
+import org.apache.commons.scxml.State;
+
+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>Parallel</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.ParallelImpl#getId <em>Id</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ParallelImpl#getOnEntry <em>On Entry</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ParallelImpl#getOnExit <em>On Exit</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ParallelImpl#getParallel <em>Parallel</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ParallelImpl#getState <em>State</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ParallelImpl#getHistoryState <em>History State</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ParallelImpl#getAnchor <em>Anchor</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ParallelImpl extends NamedElementImpl implements Parallel {
+	/**
+	 * 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 #getParallel() <em>Parallel</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getParallel()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList parallel;
+
+	/**
+	 * The cached value of the '{@link #getState() <em>State</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getState()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList state;
+
+	/**
+	 * The cached value of the '{@link #getHistoryState() <em>History State</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getHistoryState()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList historyState;
+
+	/**
+	 * The cached value of the '{@link #getAnchor() <em>Anchor</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getAnchor()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList anchor;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected ParallelImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.PARALLEL;
+	}
+
+	/**
+	 * <!-- 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.PARALLEL__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.PARALLEL__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.PARALLEL__ON_ENTRY, null, msgs);
+			if (newOnEntry != null)
+				msgs = ((InternalEObject)newOnEntry).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.PARALLEL__ON_ENTRY, null, msgs);
+			msgs = basicSetOnEntry(newOnEntry, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.PARALLEL__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.PARALLEL__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.PARALLEL__ON_EXIT, null, msgs);
+			if (newOnExit != null)
+				msgs = ((InternalEObject)newOnExit).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.PARALLEL__ON_EXIT, null, msgs);
+			msgs = basicSetOnExit(newOnExit, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.PARALLEL__ON_EXIT, newOnExit, newOnExit));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getParallel() {
+		if (parallel == null) {
+			parallel = new EObjectContainmentEList(Parallel.class, this, ScxmlPackage.PARALLEL__PARALLEL);
+		}
+		return parallel;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getState() {
+		if (state == null) {
+			state = new EObjectContainmentEList(State.class, this, ScxmlPackage.PARALLEL__STATE);
+		}
+		return state;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getHistoryState() {
+		if (historyState == null) {
+			historyState = new EObjectContainmentEList(HistoryState.class, this, ScxmlPackage.PARALLEL__HISTORY_STATE);
+		}
+		return historyState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getAnchor() {
+		if (anchor == null) {
+			anchor = new EObjectContainmentEList(Anchor.class, this, ScxmlPackage.PARALLEL__ANCHOR);
+		}
+		return anchor;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.PARALLEL__ON_ENTRY:
+				return basicSetOnEntry(null, msgs);
+			case ScxmlPackage.PARALLEL__ON_EXIT:
+				return basicSetOnExit(null, msgs);
+			case ScxmlPackage.PARALLEL__PARALLEL:
+				return ((InternalEList)getParallel()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.PARALLEL__STATE:
+				return ((InternalEList)getState()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.PARALLEL__HISTORY_STATE:
+				return ((InternalEList)getHistoryState()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.PARALLEL__ANCHOR:
+				return ((InternalEList)getAnchor()).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.PARALLEL__ID:
+				return getId();
+			case ScxmlPackage.PARALLEL__ON_ENTRY:
+				return getOnEntry();
+			case ScxmlPackage.PARALLEL__ON_EXIT:
+				return getOnExit();
+			case ScxmlPackage.PARALLEL__PARALLEL:
+				return getParallel();
+			case ScxmlPackage.PARALLEL__STATE:
+				return getState();
+			case ScxmlPackage.PARALLEL__HISTORY_STATE:
+				return getHistoryState();
+			case ScxmlPackage.PARALLEL__ANCHOR:
+				return getAnchor();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.PARALLEL__ID:
+				setId((String)newValue);
+				return;
+			case ScxmlPackage.PARALLEL__ON_ENTRY:
+				setOnEntry((OnEntry)newValue);
+				return;
+			case ScxmlPackage.PARALLEL__ON_EXIT:
+				setOnExit((OnExit)newValue);
+				return;
+			case ScxmlPackage.PARALLEL__PARALLEL:
+				getParallel().clear();
+				getParallel().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.PARALLEL__STATE:
+				getState().clear();
+				getState().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.PARALLEL__HISTORY_STATE:
+				getHistoryState().clear();
+				getHistoryState().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.PARALLEL__ANCHOR:
+				getAnchor().clear();
+				getAnchor().addAll((Collection)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.PARALLEL__ID:
+				setId(ID_EDEFAULT);
+				return;
+			case ScxmlPackage.PARALLEL__ON_ENTRY:
+				setOnEntry((OnEntry)null);
+				return;
+			case ScxmlPackage.PARALLEL__ON_EXIT:
+				setOnExit((OnExit)null);
+				return;
+			case ScxmlPackage.PARALLEL__PARALLEL:
+				getParallel().clear();
+				return;
+			case ScxmlPackage.PARALLEL__STATE:
+				getState().clear();
+				return;
+			case ScxmlPackage.PARALLEL__HISTORY_STATE:
+				getHistoryState().clear();
+				return;
+			case ScxmlPackage.PARALLEL__ANCHOR:
+				getAnchor().clear();
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.PARALLEL__ID:
+				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+			case ScxmlPackage.PARALLEL__ON_ENTRY:
+				return onEntry != null;
+			case ScxmlPackage.PARALLEL__ON_EXIT:
+				return onExit != null;
+			case ScxmlPackage.PARALLEL__PARALLEL:
+				return parallel != null && !parallel.isEmpty();
+			case ScxmlPackage.PARALLEL__STATE:
+				return state != null && !state.isEmpty();
+			case ScxmlPackage.PARALLEL__HISTORY_STATE:
+				return historyState != null && !historyState.isEmpty();
+			case ScxmlPackage.PARALLEL__ANCHOR:
+				return anchor != null && !anchor.isEmpty();
+		}
+		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();
+	}
+
+} //ParallelImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ParallelImpl.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/ParamImpl.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/ParamImpl.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/ParamImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ParamImpl.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.Param;
+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>Param</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.ParamImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ParamImpl#getExpr <em>Expr</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ParamImpl extends ExecutableContentImpl implements Param {
+	/**
+	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getName()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String NAME_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getName()
+	 * @generated
+	 * @ordered
+	 */
+	protected String name = NAME_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;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected ParamImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.PARAM;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setName(String newName) {
+		String oldName = name;
+		name = newName;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.PARAM__NAME, oldName, name));
+	}
+
+	/**
+	 * <!-- 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.PARAM__EXPR, oldExpr, expr));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.PARAM__NAME:
+				return getName();
+			case ScxmlPackage.PARAM__EXPR:
+				return getExpr();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.PARAM__NAME:
+				setName((String)newValue);
+				return;
+			case ScxmlPackage.PARAM__EXPR:
+				setExpr((String)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.PARAM__NAME:
+				setName(NAME_EDEFAULT);
+				return;
+			case ScxmlPackage.PARAM__EXPR:
+				setExpr(EXPR_EDEFAULT);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.PARAM__NAME:
+				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+			case ScxmlPackage.PARAM__EXPR:
+				return EXPR_EDEFAULT == null ? expr != null : !EXPR_EDEFAULT.equals(expr);
+		}
+		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(" (name: ");
+		result.append(name);
+		result.append(", expr: ");
+		result.append(expr);
+		result.append(')');
+		return result.toString();
+	}
+
+} //ParamImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ParamImpl.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/RaiseImpl.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/RaiseImpl.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/RaiseImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/RaiseImpl.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.Raise;
+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>Raise</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.RaiseImpl#getEvent <em>Event</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RaiseImpl extends ExecutableContentImpl implements Raise {
+	/**
+	 * The default value of the '{@link #getEvent() <em>Event</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getEvent()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String EVENT_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getEvent() <em>Event</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getEvent()
+	 * @generated
+	 * @ordered
+	 */
+	protected String event = EVENT_EDEFAULT;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected RaiseImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.RAISE;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getEvent() {
+		return event;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setEvent(String newEvent) {
+		String oldEvent = event;
+		event = newEvent;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.RAISE__EVENT, oldEvent, event));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.RAISE__EVENT:
+				return getEvent();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.RAISE__EVENT:
+				setEvent((String)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.RAISE__EVENT:
+				setEvent(EVENT_EDEFAULT);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.RAISE__EVENT:
+				return EVENT_EDEFAULT == null ? event != null : !EVENT_EDEFAULT.equals(event);
+		}
+		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(" (event: ");
+		result.append(event);
+		result.append(')');
+		return result.toString();
+	}
+
+} //RaiseImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/RaiseImpl.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/ScriptImpl.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/ScriptImpl.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/ScriptImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ScriptImpl.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.Script;
+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>Script</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class ScriptImpl extends EObjectImpl implements Script {
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected ScriptImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.SCRIPT;
+	}
+
+} //ScriptImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ScriptImpl.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/ScxmlFactoryImpl.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/ScxmlFactoryImpl.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/ScxmlFactoryImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ScxmlFactoryImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,416 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ScxmlFactoryImpl extends EFactoryImpl implements ScxmlFactory {
+	/**
+	 * Creates the default factory implementation.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public static ScxmlFactory init() {
+		try {
+			ScxmlFactory theScxmlFactory = (ScxmlFactory)EPackage.Registry.INSTANCE.getEFactory("org.apache.commons.scxml"); 
+			if (theScxmlFactory != null) {
+				return theScxmlFactory;
+			}
+		}
+		catch (Exception exception) {
+			EcorePlugin.INSTANCE.log(exception);
+		}
+		return new ScxmlFactoryImpl();
+	}
+
+	/**
+	 * Creates an instance of the factory.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public ScxmlFactoryImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EObject create(EClass eClass) {
+		switch (eClass.getClassifierID()) {
+			case ScxmlPackage.NAMED_ELEMENT: return createNamedElement();
+			case ScxmlPackage.STATE: return createState();
+			case ScxmlPackage.TRANSLATION: return createTranslation();
+			case ScxmlPackage.ASSIGN: return createAssign();
+			case ScxmlPackage.SERVICE_TEMPLATE: return createServiceTemplate();
+			case ScxmlPackage.EXECUTABLE_CONTENT: return createExecutableContent();
+			case ScxmlPackage.ON_ENTRY: return createOnEntry();
+			case ScxmlPackage.ON_EXIT: return createOnExit();
+			case ScxmlPackage.INITIAL_STATE: return createInitialState();
+			case ScxmlPackage.FINAL_STATE: return createFinalState();
+			case ScxmlPackage.PARALLEL: return createParallel();
+			case ScxmlPackage.HISTORY_STATE: return createHistoryState();
+			case ScxmlPackage.RAISE: return createRaise();
+			case ScxmlPackage.IF: return createIf();
+			case ScxmlPackage.ELSE_IF: return createElseIf();
+			case ScxmlPackage.ELSE: return createElse();
+			case ScxmlPackage.LOG: return createLog();
+			case ScxmlPackage.EXTEN_EXEC_CONTENT: return createExtenExecContent();
+			case ScxmlPackage.DATA_MODEL: return createDataModel();
+			case ScxmlPackage.DATA: return createData();
+			case ScxmlPackage.VALIDATE: return createValidate();
+			case ScxmlPackage.PARAM: return createParam();
+			case ScxmlPackage.SCRIPT: return createScript();
+			case ScxmlPackage.ANCHOR: return createAnchor();
+			case ScxmlPackage.SEND: return createSend();
+			case ScxmlPackage.CANCEL: return createCancel();
+			case ScxmlPackage.CONTENT: return createContent();
+			case ScxmlPackage.DONEDATA: return createDonedata();
+			case ScxmlPackage.INVOKE: return createInvoke();
+			case ScxmlPackage.FINALIZE: return createFinalize();
+			default:
+				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+		}
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NamedElement createNamedElement() {
+		NamedElementImpl namedElement = new NamedElementImpl();
+		return namedElement;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public State createState() {
+		StateImpl state = new StateImpl();
+		return state;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Translation createTranslation() {
+		TranslationImpl translation = new TranslationImpl();
+		return translation;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Assign createAssign() {
+		AssignImpl assign = new AssignImpl();
+		return assign;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public ServiceTemplate createServiceTemplate() {
+		ServiceTemplateImpl serviceTemplate = new ServiceTemplateImpl();
+		return serviceTemplate;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public ExecutableContent createExecutableContent() {
+		ExecutableContentImpl executableContent = new ExecutableContentImpl();
+		return executableContent;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public OnEntry createOnEntry() {
+		OnEntryImpl onEntry = new OnEntryImpl();
+		return onEntry;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public OnExit createOnExit() {
+		OnExitImpl onExit = new OnExitImpl();
+		return onExit;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public InitialState createInitialState() {
+		InitialStateImpl initialState = new InitialStateImpl();
+		return initialState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public FinalState createFinalState() {
+		FinalStateImpl finalState = new FinalStateImpl();
+		return finalState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Parallel createParallel() {
+		ParallelImpl parallel = new ParallelImpl();
+		return parallel;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public HistoryState createHistoryState() {
+		HistoryStateImpl historyState = new HistoryStateImpl();
+		return historyState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Raise createRaise() {
+		RaiseImpl raise = new RaiseImpl();
+		return raise;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public If createIf() {
+		IfImpl if_ = new IfImpl();
+		return if_;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public ElseIf createElseIf() {
+		ElseIfImpl elseIf = new ElseIfImpl();
+		return elseIf;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Else createElse() {
+		ElseImpl else_ = new ElseImpl();
+		return else_;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Log createLog() {
+		LogImpl log = new LogImpl();
+		return log;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public ExtenExecContent createExtenExecContent() {
+		ExtenExecContentImpl extenExecContent = new ExtenExecContentImpl();
+		return extenExecContent;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public DataModel createDataModel() {
+		DataModelImpl dataModel = new DataModelImpl();
+		return dataModel;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Data createData() {
+		DataImpl data = new DataImpl();
+		return data;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Validate createValidate() {
+		ValidateImpl validate = new ValidateImpl();
+		return validate;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Param createParam() {
+		ParamImpl param = new ParamImpl();
+		return param;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Script createScript() {
+		ScriptImpl script = new ScriptImpl();
+		return script;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Anchor createAnchor() {
+		AnchorImpl anchor = new AnchorImpl();
+		return anchor;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Send createSend() {
+		SendImpl send = new SendImpl();
+		return send;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Cancel createCancel() {
+		CancelImpl cancel = new CancelImpl();
+		return cancel;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Content createContent() {
+		ContentImpl content = new ContentImpl();
+		return content;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Donedata createDonedata() {
+		DonedataImpl donedata = new DonedataImpl();
+		return donedata;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Invoke createInvoke() {
+		InvokeImpl invoke = new InvokeImpl();
+		return invoke;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Finalize createFinalize() {
+		FinalizeImpl finalize = new FinalizeImpl();
+		return finalize;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public ScxmlPackage getScxmlPackage() {
+		return (ScxmlPackage)getEPackage();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @deprecated
+	 * @generated
+	 */
+	public static ScxmlPackage getPackage() {
+		return ScxmlPackage.eINSTANCE;
+	}
+
+} //ScxmlFactoryImpl

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



Mime
View raw message