01: package org.enhydra.shark.xpdl.elements;
02:
03: import org.enhydra.shark.xpdl.XMLComplexElement;
04:
05: /**
06: * Represents coresponding element from XPDL schema.
07: *
08: * @author Sasa Bojanic
09: */
10: public class TransitionRestriction extends XMLComplexElement {
11:
12: public TransitionRestriction(TransitionRestrictions parent) {
13: super (parent, true);
14: }
15:
16: protected void fillStructure() {
17: Join refJoin = new Join(this ); // min=0
18: Split refSplit = new Split(this ); // min=0
19:
20: add(refJoin);
21: add(refSplit);
22: }
23:
24: public Join getJoin() {
25: return (Join) get("Join");
26: }
27:
28: public Split getSplit() {
29: return (Split) get("Split");
30: }
31: }
|