KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > xpdl > elements > TransitionRef


1 package org.enhydra.shark.xpdl.elements;
2
3 import org.enhydra.shark.xpdl.XMLAttribute;
4 import org.enhydra.shark.xpdl.XMLComplexElement;
5
6 /**
7  * Represents coresponding element from XPDL schema.
8  *
9  * @author Sasa Bojanic
10  */

11 public class TransitionRef extends XMLComplexElement {
12
13    public TransitionRef (TransitionRefs parent) {
14       super (parent, true);
15    }
16
17    protected void fillStructure() {
18       XMLAttribute attrId=new XMLAttribute(this,"Id", true); //required
19

20       add(attrId);
21    }
22
23    public String JavaDoc getId () {
24       return get("Id").toValue();
25    }
26    public void setId (String JavaDoc id) {
27       set("Id",id);
28    }
29 }
30
Popular Tags