aboutsummaryrefslogtreecommitdiffstats
path: root/libmlr/src/main/java/com/yahoo/yst/libmlr/converter/entity/TreeNode.java
blob: a927e01460025d701c99237fac9af2ec3794b6e2 (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
39
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.yst.libmlr.converter.entity;

public class TreeNode {

    private String id;
    private String comment;
    private int idx;

    public TreeNode(String i, String c) {
        id = i;
        comment = c;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getComment() {
        return (comment == null ? "" : comment);
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getIndex() {
        return idx;
    }

    public void setIndex(int idx) {
        this.idx = idx;
    }

}