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 DeclaredType extends XMLComplexElement {
12:
13: public DeclaredType(DataTypes 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 getId() {
24: return get("Id").toValue();
25: }
26:
27: public void setId(String id) {
28: set("Id", id);
29: }
30: }
|