streamlet-examples/Streamlet.java
branchv_0
changeset 75 ecbf6504915c
parent 72 f7b9db6fc32b
--- a/streamlet-examples/Streamlet.java	Wed Jan 29 20:50:12 2020 +0100
+++ b/streamlet-examples/Streamlet.java	Thu Jan 30 14:19:14 2020 +0100
@@ -179,12 +179,23 @@
 		}
 	}
 
-	protected List<String> versionsSupported = new LinkedList<>();
-	protected List<AttributeMetadata> inputAttributes = new ArrayList<>();
-	protected List<String> outputAttributeAliases = new ArrayList<>();
-	protected List<Option> options = new LinkedList<>();
-	protected String currentRelation;
-	protected String currentFile;
+	private List<String> versionsSupported = new LinkedList<>();
+	private List<AttributeMetadata> inputAttributes = new ArrayList<>();
+	private List<String> outputAttributeAliases = new ArrayList<>();
+	private List<Option> options = new LinkedList<>();
+	private String currentRelation;
+	private String currentFile;
+
+	/**
+	 * @return n.b. generic streamlet (later in relpipe-tr-streamler) will not have currentFile
+	 */
+	public String getCurrentFile() {
+		return currentFile;
+	}
+
+	public String getCurrentRelation() {
+		return currentRelation;
+	}
 
 	protected static enum Type {
 		BOOLEAN,