01: package org.enhydra.shark.xpdl.elements;
02:
03: import org.enhydra.shark.xpdl.XMLAttribute;
04: import org.enhydra.shark.xpdl.XMLComplexElement;
05:
06: /**
07: * Represents coresponding element from XPDL schema.
08: *
09: * @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",
19: true); // required
20:
21: add(attrBlockId);
22: }
23:
24: public String getBlockId() {
25: return get("BlockId").toValue();
26: }
27:
28: public void setBlockId(String blockId) {
29: set("BlockId", blockId);
30: }
31: }
|