KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > def > Import


1 package org.jbpm.bpel.def;
2
3 import java.io.Serializable;
4
5 import org.apache.commons.lang.enum.Enum;
6
7 import com.ibm.wsdl.Constants;
8
9 import org.jbpm.bpel.xml.BpelConstants;
10
11 /**
12  * @author Alejandro Guízar
13  * @version $Revision: 1.7 $ $Date: 2005/05/05 01:00:45 $
14  */

15 public class Import implements Serializable {
16   
17   private static final long serialVersionUID = 1L;
18   
19   long id;
20   private String namespace;
21   private String location;
22   private Type type;
23   
24   private transient Object document;
25
26   public String getNamespace() {
27     return namespace;
28   }
29   
30   public void setNamespace(String namespace) {
31     this.namespace = namespace;
32   }
33   
34   public String getLocation() {
35     return location;
36   }
37   
38   public void setLocation(String location) {
39     this.location = location;
40   }
41
42   public Type getType() {
43     return type;
44   }
45
46   public void setType(Type type) {
47     this.type = type;
48   }
49   
50   public Object getDocument() {
51     return document;
52   }
53   
54   public void setDocument(Object document) {
55     this.document = document;
56   }
57   
58   public static class Type extends Enum {
59     
60     private static final long serialVersionUID = 1L;
61     
62     public static Type WSDL = new Type(Constants.NS_URI_WSDL);
63     public static Type XML_SCHEMA = new Type(BpelConstants.NS_XML_SCHEMA);
64     
65     private Type(String name) {
66       super(name);
67     }
68     
69     public static Type valueOf(String name) {
70       return (Type) Enum.getEnum(Type.class, name);
71     }
72   }
73 }
74
Popular Tags