All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gui.webdiff.tree.TreeNodeInfo Maven / Gradle / Ivy

package gui.webdiff.tree;

import java.util.Optional;

public class TreeNodeInfo {
    private final String name;
    private final String fullPath;
    private Optional srcFilePath = Optional.empty();
    private int id = -1; // NonLeafNode has id = -1;

    public String getName() {
        return name;
    }

    public String getFullPath() {
        return fullPath;
    }

    public int getId() {
        return id;
    }

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

    public void setSrcFilePath(String srcFilePath) {
    	this.srcFilePath = Optional.of(srcFilePath);
    }

    public Optional getSrcFilePath() {
		return srcFilePath;
	}

	public TreeNodeInfo(String name, String fullPath) {
        this.name = name;
        this.fullPath = fullPath;
    }

    public TreeNodeInfo(String name, String fullPath, int id) {
        this.name = name;
        this.fullPath = fullPath;
        this.id = id;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy