org.openl.rules.ui.tree.ProjectTreeNode Maven / Gradle / Ivy
package org.openl.rules.ui.tree;
import java.util.Collection;
import java.util.Map;
import java.util.TreeMap;
import org.openl.rules.lang.xls.syntax.TableSyntaxNode;
public class ProjectTreeNode {
private final String[] displayName;
private final TableSyntaxNode tableSyntaxNode;
public ProjectTreeNode(String[] displayName, String type, TableSyntaxNode tsn) {
this.type = type;
this.displayName = displayName;
this.tableSyntaxNode = tsn;
}
public String getDisplayName(int mode) {
return displayName[mode];
}
public TableSyntaxNode getTableSyntaxNode() {
return tableSyntaxNode;
}
/**
* Children of current node.
*/
private Map