KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > data > def > VariableTypeInfo


1 package org.jbpm.bpel.data.def;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.HashMap JavaDoc;
5 import java.util.Map JavaDoc;
6
7 import javax.xml.namespace.QName JavaDoc;
8
9 import org.jbpm.bpel.data.exe.VariableInstance;
10 import org.jbpm.bpel.wsdl.def.PropertyAlias;
11
12 /**
13  * @author Alejandro Guízar
14  * @version $Revision: 1.3 $ $Date: 2005/05/07 00:03:43 $
15  */

16 public abstract class VariableTypeInfo implements Serializable JavaDoc {
17
18   long id;
19   private Map JavaDoc propertyAliases;
20   
21   private static final long serialVersionUID = 1L;
22   
23   protected VariableTypeInfo() {
24   }
25
26   public abstract QName JavaDoc getName();
27   
28   public Map JavaDoc getPropertyAliases() {
29     return propertyAliases;
30   }
31   
32   public void setPropertyAliases(Map JavaDoc propertyAliases) {
33     this.propertyAliases = propertyAliases;
34   }
35   
36   public void addPropertyAlias(PropertyAlias alias) {
37     if (propertyAliases == null) {
38       propertyAliases = new HashMap JavaDoc();
39     }
40     propertyAliases.put(alias.getProperty().getQName(), alias);
41   }
42   
43   public PropertyAlias getPropertyAlias(QName JavaDoc propertyName) {
44     return propertyAliases != null ? (PropertyAlias) propertyAliases.get(propertyName) : null;
45   }
46   
47   public abstract VariableInstance createVariableInstance();
48 }
49
Popular Tags