KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* ExternalReference.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 javax.swing.*;
14
15 import org.enhydra.jawe.xml.*;
16 import org.enhydra.jawe.xml.panels.*;
17
18 /**
19 * Represents a WfMC DTD element that has the similar name.
20 *
21 * @see XML
22 */

23 public class ExternalReference extends XMLComplexElement {
24    private XMLAttribute attrXref=new XMLAttribute("xref"); // optional
25
private XMLAttribute attrLocation=new XMLAttribute("location",1); // required
26
private XMLAttribute attrNamespace=new XMLAttribute("namespace",1); // optional
27

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

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

42    protected void fillStructure () {
43       complexStructure.add(attrXref);
44       attributes.add(attrXref);
45       attrLocation.setRequired(true);
46       complexStructure.add(attrLocation);
47       attributes.add(attrLocation);
48       complexStructure.add(attrNamespace);
49       attributes.add(attrNamespace);
50    }
51
52 }
53
Popular Tags