KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > context > exe > Converter


1 package org.jbpm.context.exe;
2
3 import java.io.*;
4
5 /**
6  * converts plain objects to objects that are
7  * persistable via a subclass of VariableInstance.
8  */

9 public interface Converter extends Serializable {
10
11   /**
12    * is true if this converter supports the given type, false otherwise.
13    */

14   boolean supports(Class JavaDoc clazz);
15   
16   /**
17    * converts a given object to its persistable format.
18    */

19   Object JavaDoc convert(Object JavaDoc o);
20
21   /**
22    * reverts a persisted object to its original form.
23    */

24   Object JavaDoc revert(Object JavaDoc o);
25 }
26
Popular Tags