KickJava   Java API By Example, From Geeks To Geeks.

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


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 BlockActivity extends XMLComplexElement {
12
13    public BlockActivity (ActivityTypes parent) {
14       super(parent, true);
15    }
16
17    protected void fillStructure () {
18       XMLAttribute attrBlockId=new XMLAttribute(this,"BlockId", true); // required
19

20       add(attrBlockId);
21    }
22
23    public String JavaDoc getBlockId() {
24       return get("BlockId").toValue();
25    }
26    public void setBlockId(String JavaDoc blockId) {
27       set("BlockId",blockId);
28    }
29 }
30
Popular Tags