KickJava   Java API By Example, From Geeks To Geeks.

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


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 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,"LowerIndex",true); // required
19
XMLAttribute attrUpperIndex=new XMLAttribute(this,"UpperIndex",true); // required
20
DataTypes refType=new DataTypes(this);
21
22       add(attrLowerIndex);
23       add(attrUpperIndex);
24       add(refType);
25    }
26
27    public DataTypes getDataTypes() {
28       return (DataTypes)get("Type");
29    }
30
31    public String JavaDoc getLowerIndex() {
32       return get("LowerIndex").toValue();
33    }
34    public void setLowerIndex(String JavaDoc li) {
35       set("LowerIndex",li);
36    }
37
38    public String JavaDoc getUpperIndex() {
39       return get("UpperIndex").toValue();
40    }
41    public void setUpperIndex(String JavaDoc ui) {
42       set("UpperIndex",ui);
43    }
44    
45    
46 }
47
Popular Tags