KickJava   Java API By Example, From Geeks To Geeks.

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


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