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