commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r517349 - in /jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model: History.java Initial.java State.java TransitionTarget.java
Date Mon, 12 Mar 2007 19:24:51 GMT
Author: rahul
Date: Mon Mar 12 12:24:50 2007
New Revision: 517349

URL: http://svn.apache.org/viewvc?view=rev&rev=517349
Log:
Better handling of parent/child relationships
SCXML-30

Modified:
    jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/History.java
    jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Initial.java
    jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/State.java
    jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/TransitionTarget.java

Modified: jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/History.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/History.java?view=diff&rev=517349&r1=517348&r2=517349
==============================================================================
--- jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/History.java
(original)
+++ jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/History.java
Mon Mar 12 12:24:50 2007
@@ -63,6 +63,7 @@
      */
     public final void setTransition(final Transition transition) {
         this.transition = transition;
+        this.transition.setParent(this);
     }
 
     /**

Modified: jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Initial.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Initial.java?view=diff&rev=517349&r1=517348&r2=517349
==============================================================================
--- jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Initial.java
(original)
+++ jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Initial.java
Mon Mar 12 12:24:50 2007
@@ -58,6 +58,7 @@
      */
     public final void setTransition(final Transition transition) {
         this.transition = transition;
+        this.transition.setParent(this);
     }
 
 }

Modified: jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/State.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/State.java?view=diff&rev=517349&r1=517348&r2=517349
==============================================================================
--- jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/State.java
(original)
+++ jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/State.java
Mon Mar 12 12:24:50 2007
@@ -225,6 +225,7 @@
      */
     public final void addTransition(final Transition transition) {
         transitions.add(transition);
+        transition.setParent(this);
     }
 
     /**

Modified: jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/TransitionTarget.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/TransitionTarget.java?view=diff&rev=517349&r1=517348&r2=517349
==============================================================================
--- jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/TransitionTarget.java
(original)
+++ jakarta/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/TransitionTarget.java
Mon Mar 12 12:24:50 2007
@@ -100,6 +100,7 @@
      */
     public final void setOnEntry(final OnEntry onEntry) {
         this.onEntry = onEntry;
+        this.onEntry.setParent(this);
     }
 
     /**
@@ -118,6 +119,7 @@
      */
     public final void setOnExit(final OnExit onExit) {
         this.onExit = onExit;
+        this.onExit.setParent(this);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message