KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > xml > elements > Script


1 /* Script.java
2  *
3  * Authors:
4  * Stefanovic Nenad chupo@iis.ns.ac.yu
5  * Bojanic Sasa sasaboy@neobee.net
6  * Puskas Vladimir vpuskas@eunet.yu
7  * Pilipovic Goran zboniek@uns.ac.yu
8  *
9  */

10
11 package org.enhydra.jawe.xml.elements;
12
13 import org.enhydra.jawe.xml.*;
14 import org.enhydra.jawe.xml.panels.*;
15 import org.w3c.dom.*;
16
17 /**
18 * Represents a WfMC DTD element that has the similar name.
19 */

20 public class Script extends XMLComplexElement {
21    private XMLAttribute attrType=new XMLAttribute("Type"); // required
22
private XMLAttribute attrVersion=new XMLAttribute("Version"); // required
23
private XMLAttribute attrGrammar=new XMLAttribute("Grammar",1); // required
24

25    /**
26    * Creates a new instance of the class.
27    */

28    public Script () {
29       super();
30
31       fillStructure ();
32    }
33
34    /**
35    * Defines the super-class method. Read the explanation for
36    * this method within XMLComplexElement class.
37    */

38    protected void fillStructure () {
39       attrType.setRequired(true);
40       complexStructure.add(attrType);
41       attributes.add(attrType);
42       complexStructure.add(attrVersion);
43       attributes.add(attrVersion);
44       complexStructure.add(attrGrammar);
45       attributes.add(attrGrammar);
46    }
47
48 }
49
Popular Tags