commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gu...@apache.org
Subject svn commit: r945179 [12/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/SendImpl.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/SendImpl.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/SendImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/SendImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,932 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.Content;
+import org.apache.commons.scxml.Param;
+import org.apache.commons.scxml.ScxmlPackage;
+import org.apache.commons.scxml.Send;
+
+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>Send</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getEvent <em>Event</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getEventexpr <em>Eventexpr</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getTarget <em>Target</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getTargetexpr <em>Targetexpr</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getType <em>Type</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getTypeexpr <em>Typeexpr</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getId <em>Id</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getIdlocation <em>Idlocation</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getDelay <em>Delay</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getDelayexpr <em>Delayexpr</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getNamelist <em>Namelist</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getHints <em>Hints</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getHintsexpr <em>Hintsexpr</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getParam <em>Param</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.SendImpl#getContent <em>Content</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SendImpl extends ExecutableContentImpl implements Send {
+	/**
+	 * 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;
+
+	/**
+	 * The default value of the '{@link #getEventexpr() <em>Eventexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getEventexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String EVENTEXPR_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getEventexpr() <em>Eventexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getEventexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected String eventexpr = EVENTEXPR_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getTarget() <em>Target</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTarget()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String TARGET_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getTarget() <em>Target</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTarget()
+	 * @generated
+	 * @ordered
+	 */
+	protected String target = TARGET_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getTargetexpr() <em>Targetexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTargetexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String TARGETEXPR_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getTargetexpr() <em>Targetexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTargetexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected String targetexpr = TARGETEXPR_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;
+
+	/**
+	 * 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 #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 #getDelay() <em>Delay</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getDelay()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String DELAY_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getDelay() <em>Delay</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getDelay()
+	 * @generated
+	 * @ordered
+	 */
+	protected String delay = DELAY_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getDelayexpr() <em>Delayexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getDelayexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String DELAYEXPR_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getDelayexpr() <em>Delayexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getDelayexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected String delayexpr = DELAYEXPR_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 #getHints() <em>Hints</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getHints()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String HINTS_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getHints() <em>Hints</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getHints()
+	 * @generated
+	 * @ordered
+	 */
+	protected String hints = HINTS_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getHintsexpr() <em>Hintsexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getHintsexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String HINTSEXPR_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getHintsexpr() <em>Hintsexpr</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getHintsexpr()
+	 * @generated
+	 * @ordered
+	 */
+	protected String hintsexpr = HINTSEXPR_EDEFAULT;
+
+	/**
+	 * 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 cached value of the '{@link #getContent() <em>Content</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getContent()
+	 * @generated
+	 * @ordered
+	 */
+	protected Content content;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected SendImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.SEND;
+	}
+
+	/**
+	 * <!-- 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.SEND__EVENT, oldEvent, event));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getEventexpr() {
+		return eventexpr;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setEventexpr(String newEventexpr) {
+		String oldEventexpr = eventexpr;
+		eventexpr = newEventexpr;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SEND__EVENTEXPR, oldEventexpr, eventexpr));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getTarget() {
+		return target;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setTarget(String newTarget) {
+		String oldTarget = target;
+		target = newTarget;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SEND__TARGET, oldTarget, target));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getTargetexpr() {
+		return targetexpr;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setTargetexpr(String newTargetexpr) {
+		String oldTargetexpr = targetexpr;
+		targetexpr = newTargetexpr;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SEND__TARGETEXPR, oldTargetexpr, targetexpr));
+	}
+
+	/**
+	 * <!-- 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.SEND__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.SEND__TYPEEXPR, oldTypeexpr, typeexpr));
+	}
+
+	/**
+	 * <!-- 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.SEND__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.SEND__IDLOCATION, oldIdlocation, idlocation));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getDelay() {
+		return delay;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setDelay(String newDelay) {
+		String oldDelay = delay;
+		delay = newDelay;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SEND__DELAY, oldDelay, delay));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getDelayexpr() {
+		return delayexpr;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setDelayexpr(String newDelayexpr) {
+		String oldDelayexpr = delayexpr;
+		delayexpr = newDelayexpr;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SEND__DELAYEXPR, oldDelayexpr, delayexpr));
+	}
+
+	/**
+	 * <!-- 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.SEND__NAMELIST, oldNamelist, namelist));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getHints() {
+		return hints;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setHints(String newHints) {
+		String oldHints = hints;
+		hints = newHints;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SEND__HINTS, oldHints, hints));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getHintsexpr() {
+		return hintsexpr;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setHintsexpr(String newHintsexpr) {
+		String oldHintsexpr = hintsexpr;
+		hintsexpr = newHintsexpr;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SEND__HINTSEXPR, oldHintsexpr, hintsexpr));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getParam() {
+		if (param == null) {
+			param = new EObjectContainmentEList(Param.class, this, ScxmlPackage.SEND__PARAM);
+		}
+		return param;
+	}
+
+	/**
+	 * <!-- 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.SEND__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.SEND__CONTENT, null, msgs);
+			if (newContent != null)
+				msgs = ((InternalEObject)newContent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.SEND__CONTENT, null, msgs);
+			msgs = basicSetContent(newContent, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SEND__CONTENT, newContent, newContent));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.SEND__PARAM:
+				return ((InternalEList)getParam()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.SEND__CONTENT:
+				return basicSetContent(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.SEND__EVENT:
+				return getEvent();
+			case ScxmlPackage.SEND__EVENTEXPR:
+				return getEventexpr();
+			case ScxmlPackage.SEND__TARGET:
+				return getTarget();
+			case ScxmlPackage.SEND__TARGETEXPR:
+				return getTargetexpr();
+			case ScxmlPackage.SEND__TYPE:
+				return getType();
+			case ScxmlPackage.SEND__TYPEEXPR:
+				return getTypeexpr();
+			case ScxmlPackage.SEND__ID:
+				return getId();
+			case ScxmlPackage.SEND__IDLOCATION:
+				return getIdlocation();
+			case ScxmlPackage.SEND__DELAY:
+				return getDelay();
+			case ScxmlPackage.SEND__DELAYEXPR:
+				return getDelayexpr();
+			case ScxmlPackage.SEND__NAMELIST:
+				return getNamelist();
+			case ScxmlPackage.SEND__HINTS:
+				return getHints();
+			case ScxmlPackage.SEND__HINTSEXPR:
+				return getHintsexpr();
+			case ScxmlPackage.SEND__PARAM:
+				return getParam();
+			case ScxmlPackage.SEND__CONTENT:
+				return getContent();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.SEND__EVENT:
+				setEvent((String)newValue);
+				return;
+			case ScxmlPackage.SEND__EVENTEXPR:
+				setEventexpr((String)newValue);
+				return;
+			case ScxmlPackage.SEND__TARGET:
+				setTarget((String)newValue);
+				return;
+			case ScxmlPackage.SEND__TARGETEXPR:
+				setTargetexpr((String)newValue);
+				return;
+			case ScxmlPackage.SEND__TYPE:
+				setType((String)newValue);
+				return;
+			case ScxmlPackage.SEND__TYPEEXPR:
+				setTypeexpr((String)newValue);
+				return;
+			case ScxmlPackage.SEND__ID:
+				setId((String)newValue);
+				return;
+			case ScxmlPackage.SEND__IDLOCATION:
+				setIdlocation((String)newValue);
+				return;
+			case ScxmlPackage.SEND__DELAY:
+				setDelay((String)newValue);
+				return;
+			case ScxmlPackage.SEND__DELAYEXPR:
+				setDelayexpr((String)newValue);
+				return;
+			case ScxmlPackage.SEND__NAMELIST:
+				setNamelist((String)newValue);
+				return;
+			case ScxmlPackage.SEND__HINTS:
+				setHints((String)newValue);
+				return;
+			case ScxmlPackage.SEND__HINTSEXPR:
+				setHintsexpr((String)newValue);
+				return;
+			case ScxmlPackage.SEND__PARAM:
+				getParam().clear();
+				getParam().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.SEND__CONTENT:
+				setContent((Content)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.SEND__EVENT:
+				setEvent(EVENT_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__EVENTEXPR:
+				setEventexpr(EVENTEXPR_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__TARGET:
+				setTarget(TARGET_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__TARGETEXPR:
+				setTargetexpr(TARGETEXPR_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__TYPE:
+				setType(TYPE_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__TYPEEXPR:
+				setTypeexpr(TYPEEXPR_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__ID:
+				setId(ID_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__IDLOCATION:
+				setIdlocation(IDLOCATION_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__DELAY:
+				setDelay(DELAY_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__DELAYEXPR:
+				setDelayexpr(DELAYEXPR_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__NAMELIST:
+				setNamelist(NAMELIST_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__HINTS:
+				setHints(HINTS_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__HINTSEXPR:
+				setHintsexpr(HINTSEXPR_EDEFAULT);
+				return;
+			case ScxmlPackage.SEND__PARAM:
+				getParam().clear();
+				return;
+			case ScxmlPackage.SEND__CONTENT:
+				setContent((Content)null);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.SEND__EVENT:
+				return EVENT_EDEFAULT == null ? event != null : !EVENT_EDEFAULT.equals(event);
+			case ScxmlPackage.SEND__EVENTEXPR:
+				return EVENTEXPR_EDEFAULT == null ? eventexpr != null : !EVENTEXPR_EDEFAULT.equals(eventexpr);
+			case ScxmlPackage.SEND__TARGET:
+				return TARGET_EDEFAULT == null ? target != null : !TARGET_EDEFAULT.equals(target);
+			case ScxmlPackage.SEND__TARGETEXPR:
+				return TARGETEXPR_EDEFAULT == null ? targetexpr != null : !TARGETEXPR_EDEFAULT.equals(targetexpr);
+			case ScxmlPackage.SEND__TYPE:
+				return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+			case ScxmlPackage.SEND__TYPEEXPR:
+				return TYPEEXPR_EDEFAULT == null ? typeexpr != null : !TYPEEXPR_EDEFAULT.equals(typeexpr);
+			case ScxmlPackage.SEND__ID:
+				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+			case ScxmlPackage.SEND__IDLOCATION:
+				return IDLOCATION_EDEFAULT == null ? idlocation != null : !IDLOCATION_EDEFAULT.equals(idlocation);
+			case ScxmlPackage.SEND__DELAY:
+				return DELAY_EDEFAULT == null ? delay != null : !DELAY_EDEFAULT.equals(delay);
+			case ScxmlPackage.SEND__DELAYEXPR:
+				return DELAYEXPR_EDEFAULT == null ? delayexpr != null : !DELAYEXPR_EDEFAULT.equals(delayexpr);
+			case ScxmlPackage.SEND__NAMELIST:
+				return NAMELIST_EDEFAULT == null ? namelist != null : !NAMELIST_EDEFAULT.equals(namelist);
+			case ScxmlPackage.SEND__HINTS:
+				return HINTS_EDEFAULT == null ? hints != null : !HINTS_EDEFAULT.equals(hints);
+			case ScxmlPackage.SEND__HINTSEXPR:
+				return HINTSEXPR_EDEFAULT == null ? hintsexpr != null : !HINTSEXPR_EDEFAULT.equals(hintsexpr);
+			case ScxmlPackage.SEND__PARAM:
+				return param != null && !param.isEmpty();
+			case ScxmlPackage.SEND__CONTENT:
+				return content != 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(" (event: ");
+		result.append(event);
+		result.append(", eventexpr: ");
+		result.append(eventexpr);
+		result.append(", target: ");
+		result.append(target);
+		result.append(", targetexpr: ");
+		result.append(targetexpr);
+		result.append(", type: ");
+		result.append(type);
+		result.append(", typeexpr: ");
+		result.append(typeexpr);
+		result.append(", id: ");
+		result.append(id);
+		result.append(", idlocation: ");
+		result.append(idlocation);
+		result.append(", delay: ");
+		result.append(delay);
+		result.append(", delayexpr: ");
+		result.append(delayexpr);
+		result.append(", namelist: ");
+		result.append(namelist);
+		result.append(", hints: ");
+		result.append(hints);
+		result.append(", hintsexpr: ");
+		result.append(hintsexpr);
+		result.append(')');
+		return result.toString();
+	}
+
+} //SendImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/SendImpl.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/ServiceTemplateImpl.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/ServiceTemplateImpl.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/ServiceTemplateImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ServiceTemplateImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,770 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.DataModel;
+import org.apache.commons.scxml.FinalState;
+import org.apache.commons.scxml.InitialState;
+import org.apache.commons.scxml.Parallel;
+import org.apache.commons.scxml.Script;
+import org.apache.commons.scxml.ScxmlPackage;
+import org.apache.commons.scxml.ServiceTemplate;
+import org.apache.commons.scxml.State;
+import org.apache.commons.scxml.Translation;
+
+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>Service Template</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getTransList <em>Trans List</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getStateList <em>State List</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getInitial <em>Initial</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getXmlns <em>Xmlns</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getVersion <em>Version</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getProfile <em>Profile</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getExmode <em>Exmode</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getInitialState <em>Initial State</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getFinalState <em>Final State</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getParallel <em>Parallel</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getDataModel <em>Data Model</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.ServiceTemplateImpl#getScript <em>Script</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ServiceTemplateImpl extends EObjectImpl implements ServiceTemplate {
+	/**
+	 * The cached value of the '{@link #getTransList() <em>Trans List</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTransList()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList transList;
+
+	/**
+	 * The cached value of the '{@link #getStateList() <em>State List</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getStateList()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList stateList;
+
+	/**
+	 * The default value of the '{@link #getInitial() <em>Initial</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getInitial()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String INITIAL_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getInitial() <em>Initial</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getInitial()
+	 * @generated
+	 * @ordered
+	 */
+	protected String initial = INITIAL_EDEFAULT;
+
+	/**
+	 * 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 #getXmlns() <em>Xmlns</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getXmlns()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String XMLNS_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getXmlns() <em>Xmlns</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getXmlns()
+	 * @generated
+	 * @ordered
+	 */
+	protected String xmlns = XMLNS_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getVersion()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String VERSION_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getVersion()
+	 * @generated
+	 * @ordered
+	 */
+	protected String version = VERSION_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getProfile() <em>Profile</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getProfile()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String PROFILE_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getProfile() <em>Profile</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getProfile()
+	 * @generated
+	 * @ordered
+	 */
+	protected String profile = PROFILE_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getExmode() <em>Exmode</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getExmode()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String EXMODE_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getExmode() <em>Exmode</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getExmode()
+	 * @generated
+	 * @ordered
+	 */
+	protected String exmode = EXMODE_EDEFAULT;
+
+	/**
+	 * The cached value of the '{@link #getInitialState() <em>Initial State</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getInitialState()
+	 * @generated
+	 * @ordered
+	 */
+	protected InitialState initialState;
+
+	/**
+	 * The cached value of the '{@link #getFinalState() <em>Final State</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getFinalState()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList finalState;
+
+	/**
+	 * 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 #getDataModel() <em>Data Model</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getDataModel()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList dataModel;
+
+	/**
+	 * 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 ServiceTemplateImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.SERVICE_TEMPLATE;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getTransList() {
+		if (transList == null) {
+			transList = new EObjectContainmentEList(Translation.class, this, ScxmlPackage.SERVICE_TEMPLATE__TRANS_LIST);
+		}
+		return transList;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getStateList() {
+		if (stateList == null) {
+			stateList = new EObjectContainmentEList(State.class, this, ScxmlPackage.SERVICE_TEMPLATE__STATE_LIST);
+		}
+		return stateList;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getInitial() {
+		return initial;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setInitial(String newInitial) {
+		String oldInitial = initial;
+		initial = newInitial;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SERVICE_TEMPLATE__INITIAL, oldInitial, initial));
+	}
+
+	/**
+	 * <!-- 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.SERVICE_TEMPLATE__NAME, oldName, name));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getXmlns() {
+		return xmlns;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setXmlns(String newXmlns) {
+		String oldXmlns = xmlns;
+		xmlns = newXmlns;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SERVICE_TEMPLATE__XMLNS, oldXmlns, xmlns));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getVersion() {
+		return version;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setVersion(String newVersion) {
+		String oldVersion = version;
+		version = newVersion;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SERVICE_TEMPLATE__VERSION, oldVersion, version));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getProfile() {
+		return profile;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setProfile(String newProfile) {
+		String oldProfile = profile;
+		profile = newProfile;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SERVICE_TEMPLATE__PROFILE, oldProfile, profile));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getExmode() {
+		return exmode;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setExmode(String newExmode) {
+		String oldExmode = exmode;
+		exmode = newExmode;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SERVICE_TEMPLATE__EXMODE, oldExmode, exmode));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public InitialState getInitialState() {
+		return initialState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetInitialState(InitialState newInitialState, NotificationChain msgs) {
+		InitialState oldInitialState = initialState;
+		initialState = newInitialState;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE, oldInitialState, newInitialState);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setInitialState(InitialState newInitialState) {
+		if (newInitialState != initialState) {
+			NotificationChain msgs = null;
+			if (initialState != null)
+				msgs = ((InternalEObject)initialState).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE, null, msgs);
+			if (newInitialState != null)
+				msgs = ((InternalEObject)newInitialState).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE, null, msgs);
+			msgs = basicSetInitialState(newInitialState, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE, newInitialState, newInitialState));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getFinalState() {
+		if (finalState == null) {
+			finalState = new EObjectContainmentEList(FinalState.class, this, ScxmlPackage.SERVICE_TEMPLATE__FINAL_STATE);
+		}
+		return finalState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getParallel() {
+		if (parallel == null) {
+			parallel = new EObjectContainmentEList(Parallel.class, this, ScxmlPackage.SERVICE_TEMPLATE__PARALLEL);
+		}
+		return parallel;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getDataModel() {
+		if (dataModel == null) {
+			dataModel = new EObjectContainmentEList(DataModel.class, this, ScxmlPackage.SERVICE_TEMPLATE__DATA_MODEL);
+		}
+		return dataModel;
+	}
+
+	/**
+	 * <!-- 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.SERVICE_TEMPLATE__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.SERVICE_TEMPLATE__SCRIPT, null, msgs);
+			if (newScript != null)
+				msgs = ((InternalEObject)newScript).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.SERVICE_TEMPLATE__SCRIPT, null, msgs);
+			msgs = basicSetScript(newScript, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.SERVICE_TEMPLATE__SCRIPT, newScript, newScript));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.SERVICE_TEMPLATE__TRANS_LIST:
+				return ((InternalEList)getTransList()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.SERVICE_TEMPLATE__STATE_LIST:
+				return ((InternalEList)getStateList()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE:
+				return basicSetInitialState(null, msgs);
+			case ScxmlPackage.SERVICE_TEMPLATE__FINAL_STATE:
+				return ((InternalEList)getFinalState()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.SERVICE_TEMPLATE__PARALLEL:
+				return ((InternalEList)getParallel()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.SERVICE_TEMPLATE__DATA_MODEL:
+				return ((InternalEList)getDataModel()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.SERVICE_TEMPLATE__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.SERVICE_TEMPLATE__TRANS_LIST:
+				return getTransList();
+			case ScxmlPackage.SERVICE_TEMPLATE__STATE_LIST:
+				return getStateList();
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL:
+				return getInitial();
+			case ScxmlPackage.SERVICE_TEMPLATE__NAME:
+				return getName();
+			case ScxmlPackage.SERVICE_TEMPLATE__XMLNS:
+				return getXmlns();
+			case ScxmlPackage.SERVICE_TEMPLATE__VERSION:
+				return getVersion();
+			case ScxmlPackage.SERVICE_TEMPLATE__PROFILE:
+				return getProfile();
+			case ScxmlPackage.SERVICE_TEMPLATE__EXMODE:
+				return getExmode();
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE:
+				return getInitialState();
+			case ScxmlPackage.SERVICE_TEMPLATE__FINAL_STATE:
+				return getFinalState();
+			case ScxmlPackage.SERVICE_TEMPLATE__PARALLEL:
+				return getParallel();
+			case ScxmlPackage.SERVICE_TEMPLATE__DATA_MODEL:
+				return getDataModel();
+			case ScxmlPackage.SERVICE_TEMPLATE__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.SERVICE_TEMPLATE__TRANS_LIST:
+				getTransList().clear();
+				getTransList().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__STATE_LIST:
+				getStateList().clear();
+				getStateList().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL:
+				setInitial((String)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__NAME:
+				setName((String)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__XMLNS:
+				setXmlns((String)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__VERSION:
+				setVersion((String)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__PROFILE:
+				setProfile((String)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__EXMODE:
+				setExmode((String)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE:
+				setInitialState((InitialState)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__FINAL_STATE:
+				getFinalState().clear();
+				getFinalState().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__PARALLEL:
+				getParallel().clear();
+				getParallel().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__DATA_MODEL:
+				getDataModel().clear();
+				getDataModel().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__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.SERVICE_TEMPLATE__TRANS_LIST:
+				getTransList().clear();
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__STATE_LIST:
+				getStateList().clear();
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL:
+				setInitial(INITIAL_EDEFAULT);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__NAME:
+				setName(NAME_EDEFAULT);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__XMLNS:
+				setXmlns(XMLNS_EDEFAULT);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__VERSION:
+				setVersion(VERSION_EDEFAULT);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__PROFILE:
+				setProfile(PROFILE_EDEFAULT);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__EXMODE:
+				setExmode(EXMODE_EDEFAULT);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE:
+				setInitialState((InitialState)null);
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__FINAL_STATE:
+				getFinalState().clear();
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__PARALLEL:
+				getParallel().clear();
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__DATA_MODEL:
+				getDataModel().clear();
+				return;
+			case ScxmlPackage.SERVICE_TEMPLATE__SCRIPT:
+				setScript((Script)null);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.SERVICE_TEMPLATE__TRANS_LIST:
+				return transList != null && !transList.isEmpty();
+			case ScxmlPackage.SERVICE_TEMPLATE__STATE_LIST:
+				return stateList != null && !stateList.isEmpty();
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL:
+				return INITIAL_EDEFAULT == null ? initial != null : !INITIAL_EDEFAULT.equals(initial);
+			case ScxmlPackage.SERVICE_TEMPLATE__NAME:
+				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+			case ScxmlPackage.SERVICE_TEMPLATE__XMLNS:
+				return XMLNS_EDEFAULT == null ? xmlns != null : !XMLNS_EDEFAULT.equals(xmlns);
+			case ScxmlPackage.SERVICE_TEMPLATE__VERSION:
+				return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+			case ScxmlPackage.SERVICE_TEMPLATE__PROFILE:
+				return PROFILE_EDEFAULT == null ? profile != null : !PROFILE_EDEFAULT.equals(profile);
+			case ScxmlPackage.SERVICE_TEMPLATE__EXMODE:
+				return EXMODE_EDEFAULT == null ? exmode != null : !EXMODE_EDEFAULT.equals(exmode);
+			case ScxmlPackage.SERVICE_TEMPLATE__INITIAL_STATE:
+				return initialState != null;
+			case ScxmlPackage.SERVICE_TEMPLATE__FINAL_STATE:
+				return finalState != null && !finalState.isEmpty();
+			case ScxmlPackage.SERVICE_TEMPLATE__PARALLEL:
+				return parallel != null && !parallel.isEmpty();
+			case ScxmlPackage.SERVICE_TEMPLATE__DATA_MODEL:
+				return dataModel != null && !dataModel.isEmpty();
+			case ScxmlPackage.SERVICE_TEMPLATE__SCRIPT:
+				return script != 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(" (initial: ");
+		result.append(initial);
+		result.append(", name: ");
+		result.append(name);
+		result.append(", xmlns: ");
+		result.append(xmlns);
+		result.append(", version: ");
+		result.append(version);
+		result.append(", profile: ");
+		result.append(profile);
+		result.append(", exmode: ");
+		result.append(exmode);
+		result.append(')');
+		return result.toString();
+	}
+
+} //ServiceTemplateImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ServiceTemplateImpl.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/StateImpl.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/StateImpl.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/StateImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/StateImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,716 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.Anchor;
+import org.apache.commons.scxml.FinalState;
+import org.apache.commons.scxml.HistoryState;
+import org.apache.commons.scxml.InitialState;
+import org.apache.commons.scxml.Invoke;
+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>State</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getId <em>Id</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getInitial <em>Initial</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getOnEntry <em>On Entry</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getOnExit <em>On Exit</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getInitState <em>Init State</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getSubState <em>Sub State</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getFinalState <em>Final State</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getSubParallel <em>Sub Parallel</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getHistoryState <em>History State</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getAnchor <em>Anchor</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.StateImpl#getInvoke <em>Invoke</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class StateImpl extends NamedElementImpl implements State {
+	/**
+	 * 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 #getInitial() <em>Initial</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getInitial()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String INITIAL_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getInitial() <em>Initial</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getInitial()
+	 * @generated
+	 * @ordered
+	 */
+	protected String initial = INITIAL_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 #getInitState() <em>Init State</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getInitState()
+	 * @generated
+	 * @ordered
+	 */
+	protected InitialState initState;
+
+	/**
+	 * The cached value of the '{@link #getSubState() <em>Sub State</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getSubState()
+	 * @generated
+	 * @ordered
+	 */
+	protected State subState;
+
+	/**
+	 * The cached value of the '{@link #getFinalState() <em>Final State</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getFinalState()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList finalState;
+
+	/**
+	 * The cached value of the '{@link #getSubParallel() <em>Sub Parallel</em>}' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getSubParallel()
+	 * @generated
+	 * @ordered
+	 */
+	protected EList subParallel;
+
+	/**
+	 * 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;
+
+	/**
+	 * The cached value of the '{@link #getInvoke() <em>Invoke</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getInvoke()
+	 * @generated
+	 * @ordered
+	 */
+	protected Invoke invoke;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected StateImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.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.STATE__ID, oldId, id));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getInitial() {
+		return initial;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setInitial(String newInitial) {
+		String oldInitial = initial;
+		initial = newInitial;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.STATE__INITIAL, oldInitial, initial));
+	}
+
+	/**
+	 * <!-- 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.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.STATE__ON_ENTRY, null, msgs);
+			if (newOnEntry != null)
+				msgs = ((InternalEObject)newOnEntry).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.STATE__ON_ENTRY, null, msgs);
+			msgs = basicSetOnEntry(newOnEntry, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.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.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.STATE__ON_EXIT, null, msgs);
+			if (newOnExit != null)
+				msgs = ((InternalEObject)newOnExit).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.STATE__ON_EXIT, null, msgs);
+			msgs = basicSetOnExit(newOnExit, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.STATE__ON_EXIT, newOnExit, newOnExit));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public InitialState getInitState() {
+		return initState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetInitState(InitialState newInitState, NotificationChain msgs) {
+		InitialState oldInitState = initState;
+		initState = newInitState;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.STATE__INIT_STATE, oldInitState, newInitState);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setInitState(InitialState newInitState) {
+		if (newInitState != initState) {
+			NotificationChain msgs = null;
+			if (initState != null)
+				msgs = ((InternalEObject)initState).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.STATE__INIT_STATE, null, msgs);
+			if (newInitState != null)
+				msgs = ((InternalEObject)newInitState).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.STATE__INIT_STATE, null, msgs);
+			msgs = basicSetInitState(newInitState, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.STATE__INIT_STATE, newInitState, newInitState));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public State getSubState() {
+		return subState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetSubState(State newSubState, NotificationChain msgs) {
+		State oldSubState = subState;
+		subState = newSubState;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.STATE__SUB_STATE, oldSubState, newSubState);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setSubState(State newSubState) {
+		if (newSubState != subState) {
+			NotificationChain msgs = null;
+			if (subState != null)
+				msgs = ((InternalEObject)subState).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.STATE__SUB_STATE, null, msgs);
+			if (newSubState != null)
+				msgs = ((InternalEObject)newSubState).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.STATE__SUB_STATE, null, msgs);
+			msgs = basicSetSubState(newSubState, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.STATE__SUB_STATE, newSubState, newSubState));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getFinalState() {
+		if (finalState == null) {
+			finalState = new EObjectContainmentEList(FinalState.class, this, ScxmlPackage.STATE__FINAL_STATE);
+		}
+		return finalState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getSubParallel() {
+		if (subParallel == null) {
+			subParallel = new EObjectContainmentEList(Parallel.class, this, ScxmlPackage.STATE__SUB_PARALLEL);
+		}
+		return subParallel;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getHistoryState() {
+		if (historyState == null) {
+			historyState = new EObjectContainmentEList(HistoryState.class, this, ScxmlPackage.STATE__HISTORY_STATE);
+		}
+		return historyState;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public EList getAnchor() {
+		if (anchor == null) {
+			anchor = new EObjectContainmentEList(Anchor.class, this, ScxmlPackage.STATE__ANCHOR);
+		}
+		return anchor;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Invoke getInvoke() {
+		return invoke;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain basicSetInvoke(Invoke newInvoke, NotificationChain msgs) {
+		Invoke oldInvoke = invoke;
+		invoke = newInvoke;
+		if (eNotificationRequired()) {
+			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.STATE__INVOKE, oldInvoke, newInvoke);
+			if (msgs == null) msgs = notification; else msgs.add(notification);
+		}
+		return msgs;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setInvoke(Invoke newInvoke) {
+		if (newInvoke != invoke) {
+			NotificationChain msgs = null;
+			if (invoke != null)
+				msgs = ((InternalEObject)invoke).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.STATE__INVOKE, null, msgs);
+			if (newInvoke != null)
+				msgs = ((InternalEObject)newInvoke).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.STATE__INVOKE, null, msgs);
+			msgs = basicSetInvoke(newInvoke, msgs);
+			if (msgs != null) msgs.dispatch();
+		}
+		else if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.STATE__INVOKE, newInvoke, newInvoke));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+		switch (featureID) {
+			case ScxmlPackage.STATE__ON_ENTRY:
+				return basicSetOnEntry(null, msgs);
+			case ScxmlPackage.STATE__ON_EXIT:
+				return basicSetOnExit(null, msgs);
+			case ScxmlPackage.STATE__INIT_STATE:
+				return basicSetInitState(null, msgs);
+			case ScxmlPackage.STATE__SUB_STATE:
+				return basicSetSubState(null, msgs);
+			case ScxmlPackage.STATE__FINAL_STATE:
+				return ((InternalEList)getFinalState()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.STATE__SUB_PARALLEL:
+				return ((InternalEList)getSubParallel()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.STATE__HISTORY_STATE:
+				return ((InternalEList)getHistoryState()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.STATE__ANCHOR:
+				return ((InternalEList)getAnchor()).basicRemove(otherEnd, msgs);
+			case ScxmlPackage.STATE__INVOKE:
+				return basicSetInvoke(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.STATE__ID:
+				return getId();
+			case ScxmlPackage.STATE__INITIAL:
+				return getInitial();
+			case ScxmlPackage.STATE__ON_ENTRY:
+				return getOnEntry();
+			case ScxmlPackage.STATE__ON_EXIT:
+				return getOnExit();
+			case ScxmlPackage.STATE__INIT_STATE:
+				return getInitState();
+			case ScxmlPackage.STATE__SUB_STATE:
+				return getSubState();
+			case ScxmlPackage.STATE__FINAL_STATE:
+				return getFinalState();
+			case ScxmlPackage.STATE__SUB_PARALLEL:
+				return getSubParallel();
+			case ScxmlPackage.STATE__HISTORY_STATE:
+				return getHistoryState();
+			case ScxmlPackage.STATE__ANCHOR:
+				return getAnchor();
+			case ScxmlPackage.STATE__INVOKE:
+				return getInvoke();
+		}
+		return super.eGet(featureID, resolve, coreType);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eSet(int featureID, Object newValue) {
+		switch (featureID) {
+			case ScxmlPackage.STATE__ID:
+				setId((String)newValue);
+				return;
+			case ScxmlPackage.STATE__INITIAL:
+				setInitial((String)newValue);
+				return;
+			case ScxmlPackage.STATE__ON_ENTRY:
+				setOnEntry((OnEntry)newValue);
+				return;
+			case ScxmlPackage.STATE__ON_EXIT:
+				setOnExit((OnExit)newValue);
+				return;
+			case ScxmlPackage.STATE__INIT_STATE:
+				setInitState((InitialState)newValue);
+				return;
+			case ScxmlPackage.STATE__SUB_STATE:
+				setSubState((State)newValue);
+				return;
+			case ScxmlPackage.STATE__FINAL_STATE:
+				getFinalState().clear();
+				getFinalState().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.STATE__SUB_PARALLEL:
+				getSubParallel().clear();
+				getSubParallel().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.STATE__HISTORY_STATE:
+				getHistoryState().clear();
+				getHistoryState().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.STATE__ANCHOR:
+				getAnchor().clear();
+				getAnchor().addAll((Collection)newValue);
+				return;
+			case ScxmlPackage.STATE__INVOKE:
+				setInvoke((Invoke)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.STATE__ID:
+				setId(ID_EDEFAULT);
+				return;
+			case ScxmlPackage.STATE__INITIAL:
+				setInitial(INITIAL_EDEFAULT);
+				return;
+			case ScxmlPackage.STATE__ON_ENTRY:
+				setOnEntry((OnEntry)null);
+				return;
+			case ScxmlPackage.STATE__ON_EXIT:
+				setOnExit((OnExit)null);
+				return;
+			case ScxmlPackage.STATE__INIT_STATE:
+				setInitState((InitialState)null);
+				return;
+			case ScxmlPackage.STATE__SUB_STATE:
+				setSubState((State)null);
+				return;
+			case ScxmlPackage.STATE__FINAL_STATE:
+				getFinalState().clear();
+				return;
+			case ScxmlPackage.STATE__SUB_PARALLEL:
+				getSubParallel().clear();
+				return;
+			case ScxmlPackage.STATE__HISTORY_STATE:
+				getHistoryState().clear();
+				return;
+			case ScxmlPackage.STATE__ANCHOR:
+				getAnchor().clear();
+				return;
+			case ScxmlPackage.STATE__INVOKE:
+				setInvoke((Invoke)null);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.STATE__ID:
+				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+			case ScxmlPackage.STATE__INITIAL:
+				return INITIAL_EDEFAULT == null ? initial != null : !INITIAL_EDEFAULT.equals(initial);
+			case ScxmlPackage.STATE__ON_ENTRY:
+				return onEntry != null;
+			case ScxmlPackage.STATE__ON_EXIT:
+				return onExit != null;
+			case ScxmlPackage.STATE__INIT_STATE:
+				return initState != null;
+			case ScxmlPackage.STATE__SUB_STATE:
+				return subState != null;
+			case ScxmlPackage.STATE__FINAL_STATE:
+				return finalState != null && !finalState.isEmpty();
+			case ScxmlPackage.STATE__SUB_PARALLEL:
+				return subParallel != null && !subParallel.isEmpty();
+			case ScxmlPackage.STATE__HISTORY_STATE:
+				return historyState != null && !historyState.isEmpty();
+			case ScxmlPackage.STATE__ANCHOR:
+				return anchor != null && !anchor.isEmpty();
+			case ScxmlPackage.STATE__INVOKE:
+				return invoke != 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(", initial: ");
+		result.append(initial);
+		result.append(')');
+		return result.toString();
+	}
+
+} //StateImpl

Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/StateImpl.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/TranslationImpl.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/TranslationImpl.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/TranslationImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/TranslationImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,445 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.NamedElement;
+import org.apache.commons.scxml.ScxmlPackage;
+import org.apache.commons.scxml.Translation;
+
+import org.eclipse.emf.common.notify.Notification;
+
+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;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Translation</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.commons.scxml.impl.TranslationImpl#getTargetStatus <em>Target Status</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.TranslationImpl#getSourceStatus <em>Source Status</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.TranslationImpl#getEvent <em>Event</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.TranslationImpl#getCond <em>Cond</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.TranslationImpl#getTarget <em>Target</em>}</li>
+ *   <li>{@link org.apache.commons.scxml.impl.TranslationImpl#getAnchor <em>Anchor</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class TranslationImpl extends EObjectImpl implements Translation {
+	/**
+	 * The cached value of the '{@link #getTargetStatus() <em>Target Status</em>}' reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTargetStatus()
+	 * @generated
+	 * @ordered
+	 */
+	protected NamedElement targetStatus;
+
+	/**
+	 * The cached value of the '{@link #getSourceStatus() <em>Source Status</em>}' reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getSourceStatus()
+	 * @generated
+	 * @ordered
+	 */
+	protected NamedElement sourceStatus;
+
+	/**
+	 * 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;
+
+	/**
+	 * 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 default value of the '{@link #getTarget() <em>Target</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTarget()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String TARGET_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getTarget() <em>Target</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getTarget()
+	 * @generated
+	 * @ordered
+	 */
+	protected String target = TARGET_EDEFAULT;
+
+	/**
+	 * The default value of the '{@link #getAnchor() <em>Anchor</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getAnchor()
+	 * @generated
+	 * @ordered
+	 */
+	protected static final String ANCHOR_EDEFAULT = null;
+
+	/**
+	 * The cached value of the '{@link #getAnchor() <em>Anchor</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see #getAnchor()
+	 * @generated
+	 * @ordered
+	 */
+	protected String anchor = ANCHOR_EDEFAULT;
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected TranslationImpl() {
+		super();
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	protected EClass eStaticClass() {
+		return ScxmlPackage.Literals.TRANSLATION;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NamedElement getTargetStatus() {
+		if (targetStatus != null && targetStatus.eIsProxy()) {
+			InternalEObject oldTargetStatus = (InternalEObject)targetStatus;
+			targetStatus = (NamedElement)eResolveProxy(oldTargetStatus);
+			if (targetStatus != oldTargetStatus) {
+				if (eNotificationRequired())
+					eNotify(new ENotificationImpl(this, Notification.RESOLVE, ScxmlPackage.TRANSLATION__TARGET_STATUS, oldTargetStatus, targetStatus));
+			}
+		}
+		return targetStatus;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NamedElement basicGetTargetStatus() {
+		return targetStatus;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setTargetStatus(NamedElement newTargetStatus) {
+		NamedElement oldTargetStatus = targetStatus;
+		targetStatus = newTargetStatus;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.TRANSLATION__TARGET_STATUS, oldTargetStatus, targetStatus));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NamedElement getSourceStatus() {
+		if (sourceStatus != null && sourceStatus.eIsProxy()) {
+			InternalEObject oldSourceStatus = (InternalEObject)sourceStatus;
+			sourceStatus = (NamedElement)eResolveProxy(oldSourceStatus);
+			if (sourceStatus != oldSourceStatus) {
+				if (eNotificationRequired())
+					eNotify(new ENotificationImpl(this, Notification.RESOLVE, ScxmlPackage.TRANSLATION__SOURCE_STATUS, oldSourceStatus, sourceStatus));
+			}
+		}
+		return sourceStatus;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public NamedElement basicGetSourceStatus() {
+		return sourceStatus;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setSourceStatus(NamedElement newSourceStatus) {
+		NamedElement oldSourceStatus = sourceStatus;
+		sourceStatus = newSourceStatus;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.TRANSLATION__SOURCE_STATUS, oldSourceStatus, sourceStatus));
+	}
+
+	/**
+	 * <!-- 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.TRANSLATION__EVENT, oldEvent, event));
+	}
+
+	/**
+	 * <!-- 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.TRANSLATION__COND, oldCond, cond));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getTarget() {
+		return target;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setTarget(String newTarget) {
+		String oldTarget = target;
+		target = newTarget;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.TRANSLATION__TARGET, oldTarget, target));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public String getAnchor() {
+		return anchor;
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void setAnchor(String newAnchor) {
+		String oldAnchor = anchor;
+		anchor = newAnchor;
+		if (eNotificationRequired())
+			eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.TRANSLATION__ANCHOR, oldAnchor, anchor));
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+		switch (featureID) {
+			case ScxmlPackage.TRANSLATION__TARGET_STATUS:
+				if (resolve) return getTargetStatus();
+				return basicGetTargetStatus();
+			case ScxmlPackage.TRANSLATION__SOURCE_STATUS:
+				if (resolve) return getSourceStatus();
+				return basicGetSourceStatus();
+			case ScxmlPackage.TRANSLATION__EVENT:
+				return getEvent();
+			case ScxmlPackage.TRANSLATION__COND:
+				return getCond();
+			case ScxmlPackage.TRANSLATION__TARGET:
+				return getTarget();
+			case ScxmlPackage.TRANSLATION__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.TRANSLATION__TARGET_STATUS:
+				setTargetStatus((NamedElement)newValue);
+				return;
+			case ScxmlPackage.TRANSLATION__SOURCE_STATUS:
+				setSourceStatus((NamedElement)newValue);
+				return;
+			case ScxmlPackage.TRANSLATION__EVENT:
+				setEvent((String)newValue);
+				return;
+			case ScxmlPackage.TRANSLATION__COND:
+				setCond((String)newValue);
+				return;
+			case ScxmlPackage.TRANSLATION__TARGET:
+				setTarget((String)newValue);
+				return;
+			case ScxmlPackage.TRANSLATION__ANCHOR:
+				setAnchor((String)newValue);
+				return;
+		}
+		super.eSet(featureID, newValue);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public void eUnset(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.TRANSLATION__TARGET_STATUS:
+				setTargetStatus((NamedElement)null);
+				return;
+			case ScxmlPackage.TRANSLATION__SOURCE_STATUS:
+				setSourceStatus((NamedElement)null);
+				return;
+			case ScxmlPackage.TRANSLATION__EVENT:
+				setEvent(EVENT_EDEFAULT);
+				return;
+			case ScxmlPackage.TRANSLATION__COND:
+				setCond(COND_EDEFAULT);
+				return;
+			case ScxmlPackage.TRANSLATION__TARGET:
+				setTarget(TARGET_EDEFAULT);
+				return;
+			case ScxmlPackage.TRANSLATION__ANCHOR:
+				setAnchor(ANCHOR_EDEFAULT);
+				return;
+		}
+		super.eUnset(featureID);
+	}
+
+	/**
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	public boolean eIsSet(int featureID) {
+		switch (featureID) {
+			case ScxmlPackage.TRANSLATION__TARGET_STATUS:
+				return targetStatus != null;
+			case ScxmlPackage.TRANSLATION__SOURCE_STATUS:
+				return sourceStatus != null;
+			case ScxmlPackage.TRANSLATION__EVENT:
+				return EVENT_EDEFAULT == null ? event != null : !EVENT_EDEFAULT.equals(event);
+			case ScxmlPackage.TRANSLATION__COND:
+				return COND_EDEFAULT == null ? cond != null : !COND_EDEFAULT.equals(cond);
+			case ScxmlPackage.TRANSLATION__TARGET:
+				return TARGET_EDEFAULT == null ? target != null : !TARGET_EDEFAULT.equals(target);
+			case ScxmlPackage.TRANSLATION__ANCHOR:
+				return ANCHOR_EDEFAULT == null ? anchor != null : !ANCHOR_EDEFAULT.equals(anchor);
+		}
+		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(", cond: ");
+		result.append(cond);
+		result.append(", target: ");
+		result.append(target);
+		result.append(", anchor: ");
+		result.append(anchor);
+		result.append(')');
+		return result.toString();
+	}
+
+} //TranslationImpl

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



Mime
View raw message