aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient-java/src/main/java/com/yahoo/vespasignificance/ClientParameters.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespaclient-java/src/main/java/com/yahoo/vespasignificance/ClientParameters.java')
-rw-r--r--vespaclient-java/src/main/java/com/yahoo/vespasignificance/ClientParameters.java86
1 files changed, 86 insertions, 0 deletions
diff --git a/vespaclient-java/src/main/java/com/yahoo/vespasignificance/ClientParameters.java b/vespaclient-java/src/main/java/com/yahoo/vespasignificance/ClientParameters.java
new file mode 100644
index 00000000000..326b932cabc
--- /dev/null
+++ b/vespaclient-java/src/main/java/com/yahoo/vespasignificance/ClientParameters.java
@@ -0,0 +1,86 @@
+// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.vespasignificance;
+
+
+/**
+ * This class contains the program parameters.
+ *
+ * @author MariusArhaug
+ */
+public class ClientParameters {
+ // Show help page if true
+ public final boolean help;
+
+ // Input file for the program
+ public final String inputFile;
+
+ // Output file for the program
+ public final String outputFile;
+
+ // Field for the program
+ public final String field;
+
+ // Language for the program
+ public final String language;
+
+ // Document type identifier
+ public final String docType;
+
+ public ClientParameters(
+ boolean help,
+ String inputFile,
+ String outputFile,
+ String field,
+ String language,
+ String docType) {
+ this.help = help;
+ this.inputFile = inputFile;
+ this.outputFile = outputFile;
+ this.field = field;
+ this.language = language;
+ this.docType = docType;
+ }
+
+ public static class Builder {
+ private boolean help;
+ private String inputFile;
+ private String outputFile;
+ private String field;
+ private String language;
+
+ private String docType;
+
+ public Builder setHelp(boolean help) {
+ this.help = help;
+ return this;
+ }
+
+ public Builder setInputFile(String inputFile) {
+ this.inputFile = inputFile;
+ return this;
+ }
+
+ public Builder setOutputFile(String outputFile) {
+ this.outputFile = outputFile;
+ return this;
+ }
+
+ public Builder setField(String field) {
+ this.field = field;
+ return this;
+ }
+ public Builder setLanguage(String language) {
+ this.language = language;
+ return this;
+ }
+
+ public Builder setDocType(String docType) {
+ this.docType = docType;
+ return this;
+ }
+
+ public ClientParameters build() {
+ return new ClientParameters(help, inputFile, outputFile, field, language, docType);
+ }
+ }
+}