1 package org.jbpm.bpel.data.def; 2 3 import java.io.Serializable ; 4 import java.util.HashMap ; 5 import java.util.Map ; 6 7 import javax.xml.namespace.QName ; 8 9 import org.jbpm.bpel.data.exe.VariableInstance; 10 import org.jbpm.bpel.wsdl.def.PropertyAlias; 11 12 16 public abstract class VariableTypeInfo implements Serializable { 17 18 long id; 19 private Map propertyAliases; 20 21 private static final long serialVersionUID = 1L; 22 23 protected VariableTypeInfo() { 24 } 25 26 public abstract QName getName(); 27 28 public Map getPropertyAliases() { 29 return propertyAliases; 30 } 31 32 public void setPropertyAliases(Map propertyAliases) { 33 this.propertyAliases = propertyAliases; 34 } 35 36 public void addPropertyAlias(PropertyAlias alias) { 37 if (propertyAliases == null) { 38 propertyAliases = new HashMap (); 39 } 40 propertyAliases.put(alias.getProperty().getQName(), alias); 41 } 42 43 public PropertyAlias getPropertyAlias(QName propertyName) { 44 return propertyAliases != null ? (PropertyAlias) propertyAliases.get(propertyName) : null; 45 } 46 47 public abstract VariableInstance createVariableInstance(); 48 } 49 | Popular Tags |