/*
 * Created on Jun 30, 2006
 */
package org.griphyn.vdl.mapping;

import java.util.Collection;
import java.util.Map;

public interface Mapper {
	void setParams(Map params);
    
    String map(Path path);
    
    boolean exists(Path path);
    
    Collection existing();
    
    /**
     * Returns true if data mapped by this mapper cannot
     * change in structure at run-time. Typically this applies
     * to all mappers which work on pre determined data.
     */
    
    /* A short explanation of why this is here:
     *   Since we don't yet deal with apps returning things with
     *   undetermined sizes, yet I2U2 needs to return arrays, this
     *   tells the system that it can close top-level arrays. This
     *   allows the system to know exactly what files need to be 
     *   staged out before a job is run if the return type of the
     *   app is an array. This is not a permanent or nice solution,
     *   but a necessary compromise.
     */
    boolean isStatic();
    
    void setParam(String name, Object value);
    
    Object getParam(String name);
}

@@ -143,9 +143,12 @@
 r %7B%0A
-%09
+    
 void
@@ -171,20 +171,16 @@
 arams);%0A
-    
 %0A    Str
@@ -195,29 +195,25 @@
 Path path);%0A
-    
 %0A
+
     boolean 
@@ -231,21 +231,17 @@
  path);%0A
-    
 %0A
+
     Coll
@@ -255,28 +255,24 @@
 existing();%0A
-    
 %0A    /**%0A   
@@ -453,20 +453,16 @@
      */%0A
-    
 %0A    /* 
@@ -970,20 +970,16 @@
 atic();%0A
-    
 %0A    voi
@@ -1017,20 +1017,16 @@
 value);%0A
-    
 %0A    Obj

tidy whitespace in Mapper interface