KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > xml > elements > TransitionRestriction


1 /* TransitionRestriction.java
2  *
3  * Authors:
4  * Stefanovic Nenad chupo@iis.ns.ac.yu
5  * Bojanic Sasa sasaboy@neobee.net
6  * Puskas Vladimir vpuskas@eunet.yu
7  * Pilipovic Goran zboniek@uns.ac.yu
8  *
9  */

10
11 package org.enhydra.jawe.xml.elements;
12
13 import org.enhydra.jawe.xml.*;
14 import org.enhydra.jawe.xml.panels.*;
15
16 /**
17 * Represents a WfMC DTD element that has the similar name.
18 */

19 public class TransitionRestriction extends XMLComplexElement {
20    private Join refJoin=new Join(); // min=0
21
private Split refSplit=new Split(); // min=0
22

23    /**
24    * Creates a new instance of the class.
25    */

26    public TransitionRestriction () {
27       super();
28
29       fillStructure();
30    }
31
32    /**
33    * Defines the super-class method. Read the explanation for
34    * this method within XMLComplexElement class.
35    */

36    protected void fillStructure () {
37       complexStructure.add(refJoin);
38       complexStructure.add(refSplit);
39    }
40
41    /**
42    * Used to create exact copy of instance of this class.
43    * The newly created instance will have all the properties
44    * same as the copied one.
45    *
46    * @return The newly created instance of this class.
47    */

48    public Object JavaDoc clone () {
49       TransitionRestriction t=(TransitionRestriction)super.clone();
50       t.refJoin=(Join)this.refJoin.clone();
51       t.refSplit=(Split)this.refSplit.clone();
52
53       t.fillStructure();
54
55       return t;
56    }
57
58 }
59
Popular Tags