KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* BlockActivity.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
16 import org.w3c.dom.*;
17
18 /**
19 * Represents a WfMC DTD element that has the similar name.
20 *
21 * @see XML
22 */

23 public class BlockActivity extends XMLComplexElement {
24
25    private XMLAttribute attrBlockId=new XMLAttribute("BlockId"); // required
26

27    /**
28    * Creates a new instance of the class.
29    *
30    */

31    public BlockActivity () {
32       super();
33
34       fillStructure();
35    }
36
37    /**
38    * Defines the super-class method. Read the explanation for
39    * this method within XMLComplexElement class.
40    */

41    protected void fillStructure () {
42       attrBlockId.setRequired(true);
43       attrBlockId.setReadOnly(true);
44       attributes.add(attrBlockId);
45       complexStructure.add(attrBlockId);
46    }
47
48 }
49
Popular Tags