summaryrefslogtreecommitdiffstats
path: root/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/commons/parser/ParseInstructions.java
blob: 2044ac45e96ba095d86bc462a5d27eaafa76e080 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.yahoo.vespa.hosted.node.verification.commons.parser;

import java.util.ArrayList;

/**
 * Created by sgrostad on 17/07/2017.
 */
public class ParseInstructions {

    private final int searchElementIndex;
    private final int valueElementIndex;
    private final String splitRegex;
    private final ArrayList<String> searchWords;

    public ParseInstructions(int searchElementIndex, int returnElementNum, String splitRegex, ArrayList<String> searchWords) {
        this.searchElementIndex = searchElementIndex;
        this.valueElementIndex = returnElementNum;
        this.splitRegex = splitRegex;
        this.searchWords = searchWords;
    }

    public int getSearchElementIndex() {
        return searchElementIndex;
    }

    public int getValueElementIndex() {
        return valueElementIndex;
    }

    public String getSplitRegex() {
        return splitRegex;
    }

    public ArrayList<String> getSearchWords() {
        return searchWords;
    }

}