1 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 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 toString () { 37 String toRet=XMLUtil.getLanguageDependentString("ExternalKey"); 38 if (toRet!=null) { 39 return toRet; 40 } else { 41 return ""; 42 } 43 } 44 } 45 | Popular Tags |