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 ArrayType extends XMLComplexElement {
12:
13: public ArrayType(DataTypes parent) {
14: super (parent, true);
15: }
16:
17: protected void fillStructure() {
18: XMLAttribute attrLowerIndex = new XMLAttribute(this ,
19: "LowerIndex", true); // required
20: XMLAttribute attrUpperIndex = new XMLAttribute(this ,
21: "UpperIndex", true); // required
22: DataTypes refType = new DataTypes(this );
23:
24: add(attrLowerIndex);
25: add(attrUpperIndex);
26: add(refType);
27: }
28:
29: public DataTypes getDataTypes() {
30: return (DataTypes) get("DataTypes");
31: }
32:
33: public String getLowerIndex() {
34: return get("LowerIndex").toValue();
35: }
36:
37: public void setLowerIndex(String li) {
38: set("LowerIndex", li);
39: }
40:
41: public String getUpperIndex() {
42: return get("UpperIndex").toValue();
43: }
44:
45: public void setUpperIndex(String ui) {
46: set("UpperIndex", ui);
47: }
48:
49: }
|