View Javadoc

1   // BSD License (http://galagosearch.org)
2   
3   package org.galagosearch.tupleflow.execution;
4   
5   import java.io.Serializable;
6   
7   /***
8    * This is a mixin class that allows a Job stage/step class to be associated
9    * with a file location.  This is used to provide helpful error messages
10   * when users make errors in the XML parameter files.
11   * 
12   * @author trevor
13   */
14  public class Locatable implements Serializable {
15      public FileLocation location;
16  
17      public Locatable(FileLocation location) {
18          setLocation(location);
19      }
20  
21      public void setLocation(FileLocation location) {
22          this.location = location;
23      }
24  
25      public FileLocation getLocation() {
26          return location;
27      }
28  }