KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > context > exe > variableinstance > DoubleInstance


1 package org.jbpm.context.exe.variableinstance;
2
3 import org.jbpm.context.exe.*;
4 import org.jbpm.context.log.variableinstance.*;
5
6 public class DoubleInstance extends VariableInstance {
7
8   private static final long serialVersionUID = 1L;
9   
10   protected Double JavaDoc value = null;
11
12   protected boolean supports(Class JavaDoc clazz) {
13     return (Double JavaDoc.class==clazz);
14   }
15
16   public Object JavaDoc getObject() {
17     return value;
18   }
19
20   public void setObject(Object JavaDoc value) {
21     token.addLog(new DoubleUpdateLog(this, this.value, (Double JavaDoc) value));
22     this.value = (Double JavaDoc) value;
23   }
24 }
25
Popular Tags