

package simple.xml;

import java.util.Map;

/**
 * This is used to create a substitute object.
 *
 * @author Niall Gallagher
 */ 
public interface Substitute<R, V> {

   /**
    * Provides the substitution result given the deserialized value.
    */         
   public R read(Class field, V value, Map map) throws Exception;

   /**
    * Provides a serialization value given the result from the object.
    */ 
   public V write(Class type, R value, Map map) throws Exception;
                   
}

@@ -168,12 +168,12 @@
 ute%3C
-R, V
+T, F
 %3E %7B%0D
@@ -284,34 +284,20 @@
 lic 
-R
+F
  read(
-Class field, V valu
+T typ
 e, M
@@ -428,35 +428,23 @@
 lic 
-V
+T
  write(
-Class type, R value
+F field
 , Ma

Update substitute