Return-Path:
Delivered-To: apmail-commons-commits-archive@minotaur.apache.org
Received: (qmail 68333 invoked from network); 17 May 2010 14:28:52 -0000
Received: from unknown (HELO mail.apache.org) (140.211.11.3)
by 140.211.11.9 with SMTP; 17 May 2010 14:28:52 -0000
Received: (qmail 77523 invoked by uid 500); 17 May 2010 14:28:51 -0000
Delivered-To: apmail-commons-commits-archive@commons.apache.org
Received: (qmail 77451 invoked by uid 500); 17 May 2010 14:28:51 -0000
Mailing-List: contact commits-help@commons.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: dev@commons.apache.org
Delivered-To: mailing list commits@commons.apache.org
Received: (qmail 77431 invoked by uid 99); 17 May 2010 14:28:51 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 14:28:51 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=10.0
tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT
X-Spam-Check-By: apache.org
Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 14:28:40 +0000
Received: by eris.apache.org (Postfix, from userid 65534)
id DD6BA238899C; Mon, 17 May 2010 14:27:36 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r945179 [8/13] - in
/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml:
./ .settings/ META-INF/ bin/ model/ src/ src/org/ src/org/apache/
src/org/apache/commons/ src/org/apache/commons/scxml/ src/org/apach...
Date: Mon, 17 May 2010 14:27:35 -0000
To: commits@commons.apache.org
From: guixl@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20100517142758.DD6BA238899C@eris.apache.org>
X-Virus-Checked: Checked by ClamAV on apache.org
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/ScxmlPackage.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/Send.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/Send.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Send.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Send.java Mon May 17 14:27:33 2010
@@ -0,0 +1,422 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ *
+ * A representation of the model object 'Send'.
+ *
+ *
+ *
+ * The following features are supported:
+ *
+ * - {@link org.apache.commons.scxml.Send#getEvent Event}
+ * - {@link org.apache.commons.scxml.Send#getEventexpr Eventexpr}
+ * - {@link org.apache.commons.scxml.Send#getTarget Target}
+ * - {@link org.apache.commons.scxml.Send#getTargetexpr Targetexpr}
+ * - {@link org.apache.commons.scxml.Send#getType Type}
+ * - {@link org.apache.commons.scxml.Send#getTypeexpr Typeexpr}
+ * - {@link org.apache.commons.scxml.Send#getId Id}
+ * - {@link org.apache.commons.scxml.Send#getIdlocation Idlocation}
+ * - {@link org.apache.commons.scxml.Send#getDelay Delay}
+ * - {@link org.apache.commons.scxml.Send#getDelayexpr Delayexpr}
+ * - {@link org.apache.commons.scxml.Send#getNamelist Namelist}
+ * - {@link org.apache.commons.scxml.Send#getHints Hints}
+ * - {@link org.apache.commons.scxml.Send#getHintsexpr Hintsexpr}
+ * - {@link org.apache.commons.scxml.Send#getParam Param}
+ * - {@link org.apache.commons.scxml.Send#getContent Content}
+ *
+ *
+ *
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend()
+ * @model
+ * @generated
+ */
+public interface Send extends ExecutableContent {
+ /**
+ * Returns the value of the 'Event' attribute.
+ *
+ *
+ * If the meaning of the 'Event' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Event' attribute.
+ * @see #setEvent(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Event()
+ * @model
+ * @generated
+ */
+ String getEvent();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getEvent Event}' attribute.
+ *
+ *
+ * @param value the new value of the 'Event' attribute.
+ * @see #getEvent()
+ * @generated
+ */
+ void setEvent(String value);
+
+ /**
+ * Returns the value of the 'Eventexpr' attribute.
+ *
+ *
+ * If the meaning of the 'Eventexpr' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Eventexpr' attribute.
+ * @see #setEventexpr(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Eventexpr()
+ * @model
+ * @generated
+ */
+ String getEventexpr();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getEventexpr Eventexpr}' attribute.
+ *
+ *
+ * @param value the new value of the 'Eventexpr' attribute.
+ * @see #getEventexpr()
+ * @generated
+ */
+ void setEventexpr(String value);
+
+ /**
+ * Returns the value of the 'Target' attribute.
+ *
+ *
+ * If the meaning of the 'Target' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Target' attribute.
+ * @see #setTarget(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Target()
+ * @model
+ * @generated
+ */
+ String getTarget();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getTarget Target}' attribute.
+ *
+ *
+ * @param value the new value of the 'Target' attribute.
+ * @see #getTarget()
+ * @generated
+ */
+ void setTarget(String value);
+
+ /**
+ * Returns the value of the 'Targetexpr' attribute.
+ *
+ *
+ * If the meaning of the 'Targetexpr' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Targetexpr' attribute.
+ * @see #setTargetexpr(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Targetexpr()
+ * @model
+ * @generated
+ */
+ String getTargetexpr();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getTargetexpr Targetexpr}' attribute.
+ *
+ *
+ * @param value the new value of the 'Targetexpr' attribute.
+ * @see #getTargetexpr()
+ * @generated
+ */
+ void setTargetexpr(String value);
+
+ /**
+ * Returns the value of the 'Type' attribute.
+ *
+ *
+ * If the meaning of the 'Type' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Type' attribute.
+ * @see #setType(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Type()
+ * @model
+ * @generated
+ */
+ String getType();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getType Type}' attribute.
+ *
+ *
+ * @param value the new value of the 'Type' attribute.
+ * @see #getType()
+ * @generated
+ */
+ void setType(String value);
+
+ /**
+ * Returns the value of the 'Typeexpr' attribute.
+ *
+ *
+ * If the meaning of the 'Typeexpr' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Typeexpr' attribute.
+ * @see #setTypeexpr(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Typeexpr()
+ * @model
+ * @generated
+ */
+ String getTypeexpr();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getTypeexpr Typeexpr}' attribute.
+ *
+ *
+ * @param value the new value of the 'Typeexpr' attribute.
+ * @see #getTypeexpr()
+ * @generated
+ */
+ void setTypeexpr(String value);
+
+ /**
+ * Returns the value of the 'Id' attribute.
+ *
+ *
+ * If the meaning of the 'Id' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Id' attribute.
+ * @see #setId(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Id()
+ * @model
+ * @generated
+ */
+ String getId();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getId Id}' attribute.
+ *
+ *
+ * @param value the new value of the 'Id' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
+
+ /**
+ * Returns the value of the 'Idlocation' attribute.
+ *
+ *
+ * If the meaning of the 'Idlocation' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Idlocation' attribute.
+ * @see #setIdlocation(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Idlocation()
+ * @model
+ * @generated
+ */
+ String getIdlocation();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getIdlocation Idlocation}' attribute.
+ *
+ *
+ * @param value the new value of the 'Idlocation' attribute.
+ * @see #getIdlocation()
+ * @generated
+ */
+ void setIdlocation(String value);
+
+ /**
+ * Returns the value of the 'Delay' attribute.
+ *
+ *
+ * If the meaning of the 'Delay' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Delay' attribute.
+ * @see #setDelay(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Delay()
+ * @model
+ * @generated
+ */
+ String getDelay();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getDelay Delay}' attribute.
+ *
+ *
+ * @param value the new value of the 'Delay' attribute.
+ * @see #getDelay()
+ * @generated
+ */
+ void setDelay(String value);
+
+ /**
+ * Returns the value of the 'Delayexpr' attribute.
+ *
+ *
+ * If the meaning of the 'Delayexpr' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Delayexpr' attribute.
+ * @see #setDelayexpr(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Delayexpr()
+ * @model
+ * @generated
+ */
+ String getDelayexpr();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getDelayexpr Delayexpr}' attribute.
+ *
+ *
+ * @param value the new value of the 'Delayexpr' attribute.
+ * @see #getDelayexpr()
+ * @generated
+ */
+ void setDelayexpr(String value);
+
+ /**
+ * Returns the value of the 'Namelist' attribute.
+ *
+ *
+ * If the meaning of the 'Namelist' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Namelist' attribute.
+ * @see #setNamelist(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Namelist()
+ * @model
+ * @generated
+ */
+ String getNamelist();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getNamelist Namelist}' attribute.
+ *
+ *
+ * @param value the new value of the 'Namelist' attribute.
+ * @see #getNamelist()
+ * @generated
+ */
+ void setNamelist(String value);
+
+ /**
+ * Returns the value of the 'Hints' attribute.
+ *
+ *
+ * If the meaning of the 'Hints' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Hints' attribute.
+ * @see #setHints(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Hints()
+ * @model
+ * @generated
+ */
+ String getHints();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getHints Hints}' attribute.
+ *
+ *
+ * @param value the new value of the 'Hints' attribute.
+ * @see #getHints()
+ * @generated
+ */
+ void setHints(String value);
+
+ /**
+ * Returns the value of the 'Hintsexpr' attribute.
+ *
+ *
+ * If the meaning of the 'Hintsexpr' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Hintsexpr' attribute.
+ * @see #setHintsexpr(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Hintsexpr()
+ * @model
+ * @generated
+ */
+ String getHintsexpr();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getHintsexpr Hintsexpr}' attribute.
+ *
+ *
+ * @param value the new value of the 'Hintsexpr' attribute.
+ * @see #getHintsexpr()
+ * @generated
+ */
+ void setHintsexpr(String value);
+
+ /**
+ * Returns the value of the 'Param' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.Param}.
+ *
+ *
+ * If the meaning of the 'Param' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Param' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Param()
+ * @model type="org.apache.commons.scxml.Param" containment="true"
+ * @generated
+ */
+ EList getParam();
+
+ /**
+ * Returns the value of the 'Content' containment reference.
+ *
+ *
+ * If the meaning of the 'Content' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Content' containment reference.
+ * @see #setContent(Content)
+ * @see org.apache.commons.scxml.ScxmlPackage#getSend_Content()
+ * @model containment="true"
+ * @generated
+ */
+ Content getContent();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Send#getContent Content}' containment reference.
+ *
+ *
+ * @param value the new value of the 'Content' containment reference.
+ * @see #getContent()
+ * @generated
+ */
+ void setContent(Content value);
+
+} // Send
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Send.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/ServiceTemplate.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/ServiceTemplate.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/ServiceTemplate.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/ServiceTemplate.java Mon May 17 14:27:33 2010
@@ -0,0 +1,330 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Service Template'.
+ *
+ *
+ *
+ * The following features are supported:
+ *
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getTransList Trans List}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getStateList State List}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getInitial Initial}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getName Name}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getXmlns Xmlns}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getVersion Version}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getProfile Profile}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getExmode Exmode}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getInitialState Initial State}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getFinalState Final State}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getParallel Parallel}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getDataModel Data Model}
+ * - {@link org.apache.commons.scxml.ServiceTemplate#getScript Script}
+ *
+ *
+ *
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate()
+ * @model
+ * @generated
+ */
+public interface ServiceTemplate extends EObject {
+ /**
+ * Returns the value of the 'Trans List' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.Translation}.
+ *
+ *
+ * If the meaning of the 'Trans List' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Trans List' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_TransList()
+ * @model type="org.apache.commons.scxml.Translation" containment="true"
+ * @generated
+ */
+ EList getTransList();
+
+ /**
+ * Returns the value of the 'State List' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.State}.
+ *
+ *
+ * If the meaning of the 'State List' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'State List' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_StateList()
+ * @model type="org.apache.commons.scxml.State" containment="true"
+ * @generated
+ */
+ EList getStateList();
+
+ /**
+ * Returns the value of the 'Initial' attribute.
+ *
+ *
+ * If the meaning of the 'Initial' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Initial' attribute.
+ * @see #setInitial(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_Initial()
+ * @model
+ * @generated
+ */
+ String getInitial();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.ServiceTemplate#getInitial Initial}' attribute.
+ *
+ *
+ * @param value the new value of the 'Initial' attribute.
+ * @see #getInitial()
+ * @generated
+ */
+ void setInitial(String value);
+
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.ServiceTemplate#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Xmlns' attribute.
+ *
+ *
+ * If the meaning of the 'Xmlns' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Xmlns' attribute.
+ * @see #setXmlns(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_Xmlns()
+ * @model
+ * @generated
+ */
+ String getXmlns();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.ServiceTemplate#getXmlns Xmlns}' attribute.
+ *
+ *
+ * @param value the new value of the 'Xmlns' attribute.
+ * @see #getXmlns()
+ * @generated
+ */
+ void setXmlns(String value);
+
+ /**
+ * Returns the value of the 'Version' attribute.
+ *
+ *
+ * If the meaning of the 'Version' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Version' attribute.
+ * @see #setVersion(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_Version()
+ * @model
+ * @generated
+ */
+ String getVersion();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.ServiceTemplate#getVersion Version}' attribute.
+ *
+ *
+ * @param value the new value of the 'Version' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
+
+ /**
+ * Returns the value of the 'Profile' attribute.
+ *
+ *
+ * If the meaning of the 'Profile' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Profile' attribute.
+ * @see #setProfile(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_Profile()
+ * @model
+ * @generated
+ */
+ String getProfile();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.ServiceTemplate#getProfile Profile}' attribute.
+ *
+ *
+ * @param value the new value of the 'Profile' attribute.
+ * @see #getProfile()
+ * @generated
+ */
+ void setProfile(String value);
+
+ /**
+ * Returns the value of the 'Exmode' attribute.
+ *
+ *
+ * If the meaning of the 'Exmode' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Exmode' attribute.
+ * @see #setExmode(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_Exmode()
+ * @model
+ * @generated
+ */
+ String getExmode();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.ServiceTemplate#getExmode Exmode}' attribute.
+ *
+ *
+ * @param value the new value of the 'Exmode' attribute.
+ * @see #getExmode()
+ * @generated
+ */
+ void setExmode(String value);
+
+ /**
+ * Returns the value of the 'Initial State' containment reference.
+ *
+ *
+ * If the meaning of the 'Initial State' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Initial State' containment reference.
+ * @see #setInitialState(InitialState)
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_InitialState()
+ * @model containment="true"
+ * @generated
+ */
+ InitialState getInitialState();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.ServiceTemplate#getInitialState Initial State}' containment reference.
+ *
+ *
+ * @param value the new value of the 'Initial State' containment reference.
+ * @see #getInitialState()
+ * @generated
+ */
+ void setInitialState(InitialState value);
+
+ /**
+ * Returns the value of the 'Final State' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.FinalState}.
+ *
+ *
+ * If the meaning of the 'Final State' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Final State' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_FinalState()
+ * @model type="org.apache.commons.scxml.FinalState" containment="true"
+ * @generated
+ */
+ EList getFinalState();
+
+ /**
+ * Returns the value of the 'Parallel' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.Parallel}.
+ *
+ *
+ * If the meaning of the 'Parallel' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Parallel' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_Parallel()
+ * @model type="org.apache.commons.scxml.Parallel" containment="true"
+ * @generated
+ */
+ EList getParallel();
+
+ /**
+ * Returns the value of the 'Data Model' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.DataModel}.
+ *
+ *
+ * If the meaning of the 'Data Model' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Data Model' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_DataModel()
+ * @model type="org.apache.commons.scxml.DataModel" containment="true"
+ * @generated
+ */
+ EList getDataModel();
+
+ /**
+ * Returns the value of the 'Script' containment reference.
+ *
+ *
+ * If the meaning of the 'Script' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Script' containment reference.
+ * @see #setScript(Script)
+ * @see org.apache.commons.scxml.ScxmlPackage#getServiceTemplate_Script()
+ * @model containment="true"
+ * @generated
+ */
+ Script getScript();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.ServiceTemplate#getScript Script}' containment reference.
+ *
+ *
+ * @param value the new value of the 'Script' containment reference.
+ * @see #getScript()
+ * @generated
+ */
+ void setScript(Script value);
+
+} // ServiceTemplate
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/ServiceTemplate.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/State.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/State.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/State.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/State.java Mon May 17 14:27:33 2010
@@ -0,0 +1,284 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ *
+ * A representation of the model object 'State'.
+ *
+ *
+ *
+ * The following features are supported:
+ *
+ * - {@link org.apache.commons.scxml.State#getId Id}
+ * - {@link org.apache.commons.scxml.State#getInitial Initial}
+ * - {@link org.apache.commons.scxml.State#getOnEntry On Entry}
+ * - {@link org.apache.commons.scxml.State#getOnExit On Exit}
+ * - {@link org.apache.commons.scxml.State#getInitState Init State}
+ * - {@link org.apache.commons.scxml.State#getSubState Sub State}
+ * - {@link org.apache.commons.scxml.State#getFinalState Final State}
+ * - {@link org.apache.commons.scxml.State#getSubParallel Sub Parallel}
+ * - {@link org.apache.commons.scxml.State#getHistoryState History State}
+ * - {@link org.apache.commons.scxml.State#getAnchor Anchor}
+ * - {@link org.apache.commons.scxml.State#getInvoke Invoke}
+ *
+ *
+ *
+ * @see org.apache.commons.scxml.ScxmlPackage#getState()
+ * @model
+ * @generated
+ */
+public interface State extends NamedElement {
+ /**
+ * Returns the value of the 'Id' attribute.
+ *
+ *
+ * If the meaning of the 'Id' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Id' attribute.
+ * @see #setId(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_Id()
+ * @model
+ * @generated
+ */
+ String getId();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.State#getId Id}' attribute.
+ *
+ *
+ * @param value the new value of the 'Id' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
+
+ /**
+ * Returns the value of the 'Initial' attribute.
+ *
+ *
+ * If the meaning of the 'Initial' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Initial' attribute.
+ * @see #setInitial(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_Initial()
+ * @model
+ * @generated
+ */
+ String getInitial();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.State#getInitial Initial}' attribute.
+ *
+ *
+ * @param value the new value of the 'Initial' attribute.
+ * @see #getInitial()
+ * @generated
+ */
+ void setInitial(String value);
+
+ /**
+ * Returns the value of the 'On Entry' containment reference.
+ *
+ *
+ * If the meaning of the 'On Entry' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'On Entry' containment reference.
+ * @see #setOnEntry(OnEntry)
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_OnEntry()
+ * @model containment="true"
+ * @generated
+ */
+ OnEntry getOnEntry();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.State#getOnEntry On Entry}' containment reference.
+ *
+ *
+ * @param value the new value of the 'On Entry' containment reference.
+ * @see #getOnEntry()
+ * @generated
+ */
+ void setOnEntry(OnEntry value);
+
+ /**
+ * Returns the value of the 'On Exit' containment reference.
+ *
+ *
+ * If the meaning of the 'On Exit' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'On Exit' containment reference.
+ * @see #setOnExit(OnExit)
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_OnExit()
+ * @model containment="true"
+ * @generated
+ */
+ OnExit getOnExit();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.State#getOnExit On Exit}' containment reference.
+ *
+ *
+ * @param value the new value of the 'On Exit' containment reference.
+ * @see #getOnExit()
+ * @generated
+ */
+ void setOnExit(OnExit value);
+
+ /**
+ * Returns the value of the 'Init State' containment reference.
+ *
+ *
+ * If the meaning of the 'Init State' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Init State' containment reference.
+ * @see #setInitState(InitialState)
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_InitState()
+ * @model containment="true"
+ * @generated
+ */
+ InitialState getInitState();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.State#getInitState Init State}' containment reference.
+ *
+ *
+ * @param value the new value of the 'Init State' containment reference.
+ * @see #getInitState()
+ * @generated
+ */
+ void setInitState(InitialState value);
+
+ /**
+ * Returns the value of the 'Sub State' containment reference.
+ *
+ *
+ * If the meaning of the 'Sub State' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Sub State' containment reference.
+ * @see #setSubState(State)
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_SubState()
+ * @model containment="true"
+ * @generated
+ */
+ State getSubState();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.State#getSubState Sub State}' containment reference.
+ *
+ *
+ * @param value the new value of the 'Sub State' containment reference.
+ * @see #getSubState()
+ * @generated
+ */
+ void setSubState(State value);
+
+ /**
+ * Returns the value of the 'Final State' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.FinalState}.
+ *
+ *
+ * If the meaning of the 'Final State' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Final State' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_FinalState()
+ * @model type="org.apache.commons.scxml.FinalState" containment="true"
+ * @generated
+ */
+ EList getFinalState();
+
+ /**
+ * Returns the value of the 'Sub Parallel' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.Parallel}.
+ *
+ *
+ * If the meaning of the 'Sub Parallel' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Sub Parallel' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_SubParallel()
+ * @model type="org.apache.commons.scxml.Parallel" containment="true"
+ * @generated
+ */
+ EList getSubParallel();
+
+ /**
+ * Returns the value of the 'History State' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.HistoryState}.
+ *
+ *
+ * If the meaning of the 'History State' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'History State' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_HistoryState()
+ * @model type="org.apache.commons.scxml.HistoryState" containment="true"
+ * @generated
+ */
+ EList getHistoryState();
+
+ /**
+ * Returns the value of the 'Anchor' containment reference list.
+ * The list contents are of type {@link org.apache.commons.scxml.Anchor}.
+ *
+ *
+ * If the meaning of the 'Anchor' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Anchor' containment reference list.
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_Anchor()
+ * @model type="org.apache.commons.scxml.Anchor" containment="true"
+ * @generated
+ */
+ EList getAnchor();
+
+ /**
+ * Returns the value of the 'Invoke' containment reference.
+ *
+ *
+ * If the meaning of the 'Invoke' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Invoke' containment reference.
+ * @see #setInvoke(Invoke)
+ * @see org.apache.commons.scxml.ScxmlPackage#getState_Invoke()
+ * @model containment="true"
+ * @generated
+ */
+ Invoke getInvoke();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.State#getInvoke Invoke}' containment reference.
+ *
+ *
+ * @param value the new value of the 'Invoke' containment reference.
+ * @see #getInvoke()
+ * @generated
+ */
+ void setInvoke(Invoke value);
+
+} // State
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/State.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/Translation.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/Translation.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Translation.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Translation.java Mon May 17 14:27:33 2010
@@ -0,0 +1,189 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Translation'.
+ *
+ *
+ *
+ * The following features are supported:
+ *
+ * - {@link org.apache.commons.scxml.Translation#getTargetStatus Target Status}
+ * - {@link org.apache.commons.scxml.Translation#getSourceStatus Source Status}
+ * - {@link org.apache.commons.scxml.Translation#getEvent Event}
+ * - {@link org.apache.commons.scxml.Translation#getCond Cond}
+ * - {@link org.apache.commons.scxml.Translation#getTarget Target}
+ * - {@link org.apache.commons.scxml.Translation#getAnchor Anchor}
+ *
+ *
+ *
+ * @see org.apache.commons.scxml.ScxmlPackage#getTranslation()
+ * @model
+ * @generated
+ */
+public interface Translation extends EObject {
+ /**
+ * Returns the value of the 'Target Status' reference.
+ *
+ *
+ * If the meaning of the 'Target Status' reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Target Status' reference.
+ * @see #setTargetStatus(NamedElement)
+ * @see org.apache.commons.scxml.ScxmlPackage#getTranslation_TargetStatus()
+ * @model
+ * @generated
+ */
+ NamedElement getTargetStatus();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Translation#getTargetStatus Target Status}' reference.
+ *
+ *
+ * @param value the new value of the 'Target Status' reference.
+ * @see #getTargetStatus()
+ * @generated
+ */
+ void setTargetStatus(NamedElement value);
+
+ /**
+ * Returns the value of the 'Source Status' reference.
+ *
+ *
+ * If the meaning of the 'Source Status' reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Source Status' reference.
+ * @see #setSourceStatus(NamedElement)
+ * @see org.apache.commons.scxml.ScxmlPackage#getTranslation_SourceStatus()
+ * @model
+ * @generated
+ */
+ NamedElement getSourceStatus();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Translation#getSourceStatus Source Status}' reference.
+ *
+ *
+ * @param value the new value of the 'Source Status' reference.
+ * @see #getSourceStatus()
+ * @generated
+ */
+ void setSourceStatus(NamedElement value);
+
+ /**
+ * Returns the value of the 'Event' attribute.
+ *
+ *
+ * If the meaning of the 'Event' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Event' attribute.
+ * @see #setEvent(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getTranslation_Event()
+ * @model
+ * @generated
+ */
+ String getEvent();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Translation#getEvent Event}' attribute.
+ *
+ *
+ * @param value the new value of the 'Event' attribute.
+ * @see #getEvent()
+ * @generated
+ */
+ void setEvent(String value);
+
+ /**
+ * Returns the value of the 'Cond' attribute.
+ *
+ *
+ * If the meaning of the 'Cond' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Cond' attribute.
+ * @see #setCond(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getTranslation_Cond()
+ * @model
+ * @generated
+ */
+ String getCond();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Translation#getCond Cond}' attribute.
+ *
+ *
+ * @param value the new value of the 'Cond' attribute.
+ * @see #getCond()
+ * @generated
+ */
+ void setCond(String value);
+
+ /**
+ * Returns the value of the 'Target' attribute.
+ *
+ *
+ * If the meaning of the 'Target' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Target' attribute.
+ * @see #setTarget(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getTranslation_Target()
+ * @model
+ * @generated
+ */
+ String getTarget();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Translation#getTarget Target}' attribute.
+ *
+ *
+ * @param value the new value of the 'Target' attribute.
+ * @see #getTarget()
+ * @generated
+ */
+ void setTarget(String value);
+
+ /**
+ * Returns the value of the 'Anchor' attribute.
+ *
+ *
+ * If the meaning of the 'Anchor' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Anchor' attribute.
+ * @see #setAnchor(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getTranslation_Anchor()
+ * @model
+ * @generated
+ */
+ String getAnchor();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Translation#getAnchor Anchor}' attribute.
+ *
+ *
+ * @param value the new value of the 'Anchor' attribute.
+ * @see #getAnchor()
+ * @generated
+ */
+ void setAnchor(String value);
+
+} // Translation
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Translation.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/Validate.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/Validate.java?rev=945179&view=auto
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Validate.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Validate.java Mon May 17 14:27:33 2010
@@ -0,0 +1,80 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml;
+
+
+/**
+ *
+ * A representation of the model object 'Validate'.
+ *
+ *
+ *
+ * The following features are supported:
+ *
+ * - {@link org.apache.commons.scxml.Validate#getLocation Location}
+ * - {@link org.apache.commons.scxml.Validate#getSchema Schema}
+ *
+ *
+ *
+ * @see org.apache.commons.scxml.ScxmlPackage#getValidate()
+ * @model
+ * @generated
+ */
+public interface Validate extends ExecutableContent {
+ /**
+ * Returns the value of the 'Location' attribute.
+ *
+ *
+ * If the meaning of the 'Location' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Location' attribute.
+ * @see #setLocation(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getValidate_Location()
+ * @model
+ * @generated
+ */
+ String getLocation();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Validate#getLocation Location}' attribute.
+ *
+ *
+ * @param value the new value of the 'Location' attribute.
+ * @see #getLocation()
+ * @generated
+ */
+ void setLocation(String value);
+
+ /**
+ * Returns the value of the 'Schema' attribute.
+ *
+ *
+ * If the meaning of the 'Schema' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Schema' attribute.
+ * @see #setSchema(String)
+ * @see org.apache.commons.scxml.ScxmlPackage#getValidate_Schema()
+ * @model
+ * @generated
+ */
+ String getSchema();
+
+ /**
+ * Sets the value of the '{@link org.apache.commons.scxml.Validate#getSchema Schema}' attribute.
+ *
+ *
+ * @param value the new value of the 'Schema' attribute.
+ * @see #getSchema()
+ * @generated
+ */
+ void setSchema(String value);
+
+} // Validate
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/Validate.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/AnchorImpl.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/AnchorImpl.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/AnchorImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/AnchorImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,215 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.Anchor;
+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;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ *
+ * An implementation of the model object 'Anchor'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.commons.scxml.impl.AnchorImpl#getType Type}
+ * - {@link org.apache.commons.scxml.impl.AnchorImpl#getSnapshot Snapshot}
+ *
+ *
+ *
+ * @generated
+ */
+public class AnchorImpl extends EObjectImpl implements Anchor {
+ /**
+ * The default value of the '{@link #getType() Type}' attribute.
+ *
+ *
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getType() Type}' attribute.
+ *
+ *
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected String type = TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSnapshot() Snapshot}' attribute.
+ *
+ *
+ * @see #getSnapshot()
+ * @generated
+ * @ordered
+ */
+ protected static final String SNAPSHOT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSnapshot() Snapshot}' attribute.
+ *
+ *
+ * @see #getSnapshot()
+ * @generated
+ * @ordered
+ */
+ protected String snapshot = SNAPSHOT_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected AnchorImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ScxmlPackage.Literals.ANCHOR;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setType(String newType) {
+ String oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.ANCHOR__TYPE, oldType, type));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getSnapshot() {
+ return snapshot;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setSnapshot(String newSnapshot) {
+ String oldSnapshot = snapshot;
+ snapshot = newSnapshot;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.ANCHOR__SNAPSHOT, oldSnapshot, snapshot));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ScxmlPackage.ANCHOR__TYPE:
+ return getType();
+ case ScxmlPackage.ANCHOR__SNAPSHOT:
+ return getSnapshot();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ScxmlPackage.ANCHOR__TYPE:
+ setType((String)newValue);
+ return;
+ case ScxmlPackage.ANCHOR__SNAPSHOT:
+ setSnapshot((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.ANCHOR__TYPE:
+ setType(TYPE_EDEFAULT);
+ return;
+ case ScxmlPackage.ANCHOR__SNAPSHOT:
+ setSnapshot(SNAPSHOT_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.ANCHOR__TYPE:
+ return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+ case ScxmlPackage.ANCHOR__SNAPSHOT:
+ return SNAPSHOT_EDEFAULT == null ? snapshot != null : !SNAPSHOT_EDEFAULT.equals(snapshot);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (type: ");
+ result.append(type);
+ result.append(", snapshot: ");
+ result.append(snapshot);
+ result.append(')');
+ return result.toString();
+ }
+
+} //AnchorImpl
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/AnchorImpl.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/AssignImpl.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/AssignImpl.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/AssignImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/AssignImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,268 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.Assign;
+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;
+
+/**
+ *
+ * An implementation of the model object 'Assign'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.commons.scxml.impl.AssignImpl#getLocation Location}
+ * - {@link org.apache.commons.scxml.impl.AssignImpl#getDataid Dataid}
+ * - {@link org.apache.commons.scxml.impl.AssignImpl#getExpr Expr}
+ *
+ *
+ *
+ * @generated
+ */
+public class AssignImpl extends ExecutableContentImpl implements Assign {
+ /**
+ * The default value of the '{@link #getLocation() Location}' attribute.
+ *
+ *
+ * @see #getLocation()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getLocation() Location}' attribute.
+ *
+ *
+ * @see #getLocation()
+ * @generated
+ * @ordered
+ */
+ protected String location = LOCATION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDataid() Dataid}' attribute.
+ *
+ *
+ * @see #getDataid()
+ * @generated
+ * @ordered
+ */
+ protected static final String DATAID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDataid() Dataid}' attribute.
+ *
+ *
+ * @see #getDataid()
+ * @generated
+ * @ordered
+ */
+ protected String dataid = DATAID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getExpr() Expr}' attribute.
+ *
+ *
+ * @see #getExpr()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXPR_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getExpr() Expr}' attribute.
+ *
+ *
+ * @see #getExpr()
+ * @generated
+ * @ordered
+ */
+ protected String expr = EXPR_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected AssignImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ScxmlPackage.Literals.ASSIGN;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getLocation() {
+ return location;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setLocation(String newLocation) {
+ String oldLocation = location;
+ location = newLocation;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.ASSIGN__LOCATION, oldLocation, location));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getDataid() {
+ return dataid;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setDataid(String newDataid) {
+ String oldDataid = dataid;
+ dataid = newDataid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.ASSIGN__DATAID, oldDataid, dataid));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getExpr() {
+ return expr;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setExpr(String newExpr) {
+ String oldExpr = expr;
+ expr = newExpr;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.ASSIGN__EXPR, oldExpr, expr));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ScxmlPackage.ASSIGN__LOCATION:
+ return getLocation();
+ case ScxmlPackage.ASSIGN__DATAID:
+ return getDataid();
+ case ScxmlPackage.ASSIGN__EXPR:
+ return getExpr();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ScxmlPackage.ASSIGN__LOCATION:
+ setLocation((String)newValue);
+ return;
+ case ScxmlPackage.ASSIGN__DATAID:
+ setDataid((String)newValue);
+ return;
+ case ScxmlPackage.ASSIGN__EXPR:
+ setExpr((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.ASSIGN__LOCATION:
+ setLocation(LOCATION_EDEFAULT);
+ return;
+ case ScxmlPackage.ASSIGN__DATAID:
+ setDataid(DATAID_EDEFAULT);
+ return;
+ case ScxmlPackage.ASSIGN__EXPR:
+ setExpr(EXPR_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.ASSIGN__LOCATION:
+ return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
+ case ScxmlPackage.ASSIGN__DATAID:
+ return DATAID_EDEFAULT == null ? dataid != null : !DATAID_EDEFAULT.equals(dataid);
+ case ScxmlPackage.ASSIGN__EXPR:
+ return EXPR_EDEFAULT == null ? expr != null : !EXPR_EDEFAULT.equals(expr);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (location: ");
+ result.append(location);
+ result.append(", dataid: ");
+ result.append(dataid);
+ result.append(", expr: ");
+ result.append(expr);
+ result.append(')');
+ return result.toString();
+ }
+
+} //AssignImpl
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/AssignImpl.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/CancelImpl.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/CancelImpl.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/CancelImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/CancelImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,214 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.Cancel;
+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;
+
+/**
+ *
+ * An implementation of the model object 'Cancel'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.commons.scxml.impl.CancelImpl#getSendid Sendid}
+ * - {@link org.apache.commons.scxml.impl.CancelImpl#getSendidexpr Sendidexpr}
+ *
+ *
+ *
+ * @generated
+ */
+public class CancelImpl extends ExecutableContentImpl implements Cancel {
+ /**
+ * The default value of the '{@link #getSendid() Sendid}' attribute.
+ *
+ *
+ * @see #getSendid()
+ * @generated
+ * @ordered
+ */
+ protected static final String SENDID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSendid() Sendid}' attribute.
+ *
+ *
+ * @see #getSendid()
+ * @generated
+ * @ordered
+ */
+ protected String sendid = SENDID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSendidexpr() Sendidexpr}' attribute.
+ *
+ *
+ * @see #getSendidexpr()
+ * @generated
+ * @ordered
+ */
+ protected static final String SENDIDEXPR_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSendidexpr() Sendidexpr}' attribute.
+ *
+ *
+ * @see #getSendidexpr()
+ * @generated
+ * @ordered
+ */
+ protected String sendidexpr = SENDIDEXPR_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected CancelImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ScxmlPackage.Literals.CANCEL;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getSendid() {
+ return sendid;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setSendid(String newSendid) {
+ String oldSendid = sendid;
+ sendid = newSendid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.CANCEL__SENDID, oldSendid, sendid));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getSendidexpr() {
+ return sendidexpr;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setSendidexpr(String newSendidexpr) {
+ String oldSendidexpr = sendidexpr;
+ sendidexpr = newSendidexpr;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.CANCEL__SENDIDEXPR, oldSendidexpr, sendidexpr));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ScxmlPackage.CANCEL__SENDID:
+ return getSendid();
+ case ScxmlPackage.CANCEL__SENDIDEXPR:
+ return getSendidexpr();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ScxmlPackage.CANCEL__SENDID:
+ setSendid((String)newValue);
+ return;
+ case ScxmlPackage.CANCEL__SENDIDEXPR:
+ setSendidexpr((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.CANCEL__SENDID:
+ setSendid(SENDID_EDEFAULT);
+ return;
+ case ScxmlPackage.CANCEL__SENDIDEXPR:
+ setSendidexpr(SENDIDEXPR_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.CANCEL__SENDID:
+ return SENDID_EDEFAULT == null ? sendid != null : !SENDID_EDEFAULT.equals(sendid);
+ case ScxmlPackage.CANCEL__SENDIDEXPR:
+ return SENDIDEXPR_EDEFAULT == null ? sendidexpr != null : !SENDIDEXPR_EDEFAULT.equals(sendidexpr);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (sendid: ");
+ result.append(sendid);
+ result.append(", sendidexpr: ");
+ result.append(sendidexpr);
+ result.append(')');
+ return result.toString();
+ }
+
+} //CancelImpl
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/CancelImpl.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/ContentImpl.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/ContentImpl.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/ContentImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ContentImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,148 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.Content;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ *
+ * An implementation of the model object 'Content'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.commons.scxml.impl.ContentImpl#getContent Content}
+ *
+ *
+ *
+ * @generated
+ */
+public class ContentImpl extends EObjectImpl implements Content {
+ /**
+ * The cached value of the '{@link #getContent() Content}' containment reference list.
+ *
+ *
+ * @see #getContent()
+ * @generated
+ * @ordered
+ */
+ protected EList content;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected ContentImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ScxmlPackage.Literals.CONTENT;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getContent() {
+ if (content == null) {
+ content = new EObjectContainmentEList(Content.class, this, ScxmlPackage.CONTENT__CONTENT);
+ }
+ return content;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case ScxmlPackage.CONTENT__CONTENT:
+ return ((InternalEList)getContent()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ScxmlPackage.CONTENT__CONTENT:
+ return getContent();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ScxmlPackage.CONTENT__CONTENT:
+ getContent().clear();
+ getContent().addAll((Collection)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.CONTENT__CONTENT:
+ getContent().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.CONTENT__CONTENT:
+ return content != null && !content.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //ContentImpl
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/ContentImpl.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/DataImpl.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/DataImpl.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/DataImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DataImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,349 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import org.apache.commons.scxml.Content;
+import org.apache.commons.scxml.Data;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ *
+ * An implementation of the model object 'Data'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.commons.scxml.impl.DataImpl#getId Id}
+ * - {@link org.apache.commons.scxml.impl.DataImpl#getSrc Src}
+ * - {@link org.apache.commons.scxml.impl.DataImpl#getExpr Expr}
+ * - {@link org.apache.commons.scxml.impl.DataImpl#getContent Content}
+ *
+ *
+ *
+ * @generated
+ */
+public class DataImpl extends EObjectImpl implements Data {
+ /**
+ * The default value of the '{@link #getId() Id}' attribute.
+ *
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() Id}' attribute.
+ *
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSrc() Src}' attribute.
+ *
+ *
+ * @see #getSrc()
+ * @generated
+ * @ordered
+ */
+ protected static final String SRC_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSrc() Src}' attribute.
+ *
+ *
+ * @see #getSrc()
+ * @generated
+ * @ordered
+ */
+ protected String src = SRC_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getExpr() Expr}' attribute.
+ *
+ *
+ * @see #getExpr()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXPR_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getExpr() Expr}' attribute.
+ *
+ *
+ * @see #getExpr()
+ * @generated
+ * @ordered
+ */
+ protected String expr = EXPR_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getContent() Content}' containment reference.
+ *
+ *
+ * @see #getContent()
+ * @generated
+ * @ordered
+ */
+ protected Content content;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected DataImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ScxmlPackage.Literals.DATA;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.DATA__ID, oldId, id));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getSrc() {
+ return src;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setSrc(String newSrc) {
+ String oldSrc = src;
+ src = newSrc;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.DATA__SRC, oldSrc, src));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getExpr() {
+ return expr;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setExpr(String newExpr) {
+ String oldExpr = expr;
+ expr = newExpr;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.DATA__EXPR, oldExpr, expr));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Content getContent() {
+ return content;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain basicSetContent(Content newContent, NotificationChain msgs) {
+ Content oldContent = content;
+ content = newContent;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScxmlPackage.DATA__CONTENT, oldContent, newContent);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setContent(Content newContent) {
+ if (newContent != content) {
+ NotificationChain msgs = null;
+ if (content != null)
+ msgs = ((InternalEObject)content).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.DATA__CONTENT, null, msgs);
+ if (newContent != null)
+ msgs = ((InternalEObject)newContent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ScxmlPackage.DATA__CONTENT, null, msgs);
+ msgs = basicSetContent(newContent, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.DATA__CONTENT, newContent, newContent));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case ScxmlPackage.DATA__CONTENT:
+ return basicSetContent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ScxmlPackage.DATA__ID:
+ return getId();
+ case ScxmlPackage.DATA__SRC:
+ return getSrc();
+ case ScxmlPackage.DATA__EXPR:
+ return getExpr();
+ case ScxmlPackage.DATA__CONTENT:
+ return getContent();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ScxmlPackage.DATA__ID:
+ setId((String)newValue);
+ return;
+ case ScxmlPackage.DATA__SRC:
+ setSrc((String)newValue);
+ return;
+ case ScxmlPackage.DATA__EXPR:
+ setExpr((String)newValue);
+ return;
+ case ScxmlPackage.DATA__CONTENT:
+ setContent((Content)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.DATA__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case ScxmlPackage.DATA__SRC:
+ setSrc(SRC_EDEFAULT);
+ return;
+ case ScxmlPackage.DATA__EXPR:
+ setExpr(EXPR_EDEFAULT);
+ return;
+ case ScxmlPackage.DATA__CONTENT:
+ setContent((Content)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.DATA__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case ScxmlPackage.DATA__SRC:
+ return SRC_EDEFAULT == null ? src != null : !SRC_EDEFAULT.equals(src);
+ case ScxmlPackage.DATA__EXPR:
+ return EXPR_EDEFAULT == null ? expr != null : !EXPR_EDEFAULT.equals(expr);
+ case ScxmlPackage.DATA__CONTENT:
+ return content != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: ");
+ result.append(id);
+ result.append(", src: ");
+ result.append(src);
+ result.append(", expr: ");
+ result.append(expr);
+ result.append(')');
+ return result.toString();
+ }
+
+} //DataImpl
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DataImpl.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/DataModelImpl.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/DataModelImpl.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/DataModelImpl.java (added)
+++ commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DataModelImpl.java Mon May 17 14:27:33 2010
@@ -0,0 +1,218 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.impl;
+
+import java.util.Collection;
+
+import org.apache.commons.scxml.Data;
+import org.apache.commons.scxml.DataModel;
+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;
+
+/**
+ *
+ * An implementation of the model object 'Data Model'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.commons.scxml.impl.DataModelImpl#getSchema Schema}
+ * - {@link org.apache.commons.scxml.impl.DataModelImpl#getData Data}
+ *
+ *
+ *
+ * @generated
+ */
+public class DataModelImpl extends EObjectImpl implements DataModel {
+ /**
+ * The default value of the '{@link #getSchema() Schema}' attribute.
+ *
+ *
+ * @see #getSchema()
+ * @generated
+ * @ordered
+ */
+ protected static final String SCHEMA_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSchema() Schema}' attribute.
+ *
+ *
+ * @see #getSchema()
+ * @generated
+ * @ordered
+ */
+ protected String schema = SCHEMA_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getData() Data}' containment reference list.
+ *
+ *
+ * @see #getData()
+ * @generated
+ * @ordered
+ */
+ protected EList data;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected DataModelImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ScxmlPackage.Literals.DATA_MODEL;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getSchema() {
+ return schema;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setSchema(String newSchema) {
+ String oldSchema = schema;
+ schema = newSchema;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ScxmlPackage.DATA_MODEL__SCHEMA, oldSchema, schema));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getData() {
+ if (data == null) {
+ data = new EObjectContainmentEList(Data.class, this, ScxmlPackage.DATA_MODEL__DATA);
+ }
+ return data;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case ScxmlPackage.DATA_MODEL__DATA:
+ return ((InternalEList)getData()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case ScxmlPackage.DATA_MODEL__SCHEMA:
+ return getSchema();
+ case ScxmlPackage.DATA_MODEL__DATA:
+ return getData();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case ScxmlPackage.DATA_MODEL__SCHEMA:
+ setSchema((String)newValue);
+ return;
+ case ScxmlPackage.DATA_MODEL__DATA:
+ getData().clear();
+ getData().addAll((Collection)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.DATA_MODEL__SCHEMA:
+ setSchema(SCHEMA_EDEFAULT);
+ return;
+ case ScxmlPackage.DATA_MODEL__DATA:
+ getData().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case ScxmlPackage.DATA_MODEL__SCHEMA:
+ return SCHEMA_EDEFAULT == null ? schema != null : !SCHEMA_EDEFAULT.equals(schema);
+ case ScxmlPackage.DATA_MODEL__DATA:
+ return data != null && !data.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (schema: ");
+ result.append(schema);
+ result.append(')');
+ return result.toString();
+ }
+
+} //DataModelImpl
Propchange: commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/main/java/org.apache.commons.scxml/src/org/apache/commons/scxml/impl/DataModelImpl.java
------------------------------------------------------------------------------
svn:eol-style = native