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 EnumerationValue extends XMLComplexElement {
12:
13: public EnumerationValue(EnumerationType parent) {
14: super (parent, true);
15: }
16:
17: protected void fillStructure() {
18: XMLAttribute attrName = new XMLAttribute(this , "Name", true); // required
19: add(attrName);
20: }
21:
22: public String getName() {
23: return get("Name").toValue();
24: }
25:
26: public void setName(String name) {
27: set("Name", name);
28: }
29:
30: }
|