KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > misc > ExternalProcesses


1 /* ExternalProcesses.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.misc;
12
13 import org.enhydra.jawe.xml.*;
14 import org.enhydra.jawe.xml.elements.*;
15 import org.enhydra.jawe.xml.panels.*;
16
17 import java.util.*;
18
19  // This is not a real WfMC DTD element, but it is introduced to help
20
public class ExternalProcesses extends XMLComplexElement {
21    public ExternalProcesses (
22    final org.enhydra.jawe.xml.elements.Package p) {
23
24       super();
25
26       WorkflowProcess[] wpA;
27       final WorkflowProcesses wps=(WorkflowProcesses)p.get("WorkflowProcesses");
28       Collection ewps=wps.getExternalWorkflowProcesses();
29       wpA=new WorkflowProcess[ewps.size()];
30       ewps.toArray(wpA);
31       XMLComplexChoice workflows=new XMLComplexChoice("Process",wpA,0,
32          true,true,false,false,false);
33       complexStructure.add(workflows);
34    }
35
36    public String JavaDoc toString () {
37       String JavaDoc toRet=XMLUtil.getLanguageDependentString("ExternalKey");
38       if (toRet!=null) {
39          return toRet;
40       } else {
41          return "";
42       }
43    }
44 }
45
Popular Tags