The Meta-Environment API

nl.cwi.sen1.gui.plugin.data
Class ModuleTreeNode

java.lang.Object
  extended by nl.cwi.sen1.gui.plugin.data.ModuleTreeNode

public class ModuleTreeNode
extends java.lang.Object


Field Summary
(package private)  java.util.ArrayList<ModuleTreeNode> children
           
(package private)  boolean error
           
(package private)  aterm.ATerm id
           
(package private)  boolean leaf
           
(package private)  java.lang.String name
           
(package private)  java.lang.String prefix
           
 
Constructor Summary
ModuleTreeNode(aterm.ATerm id, java.lang.String name, java.lang.String prefix, boolean leaf)
           
 
Method Summary
 ModuleTreeNode addChild(aterm.ATerm id, java.lang.String p, nl.cwi.sen1.ioapi.types.File file)
           
 void clearChildren()
           
 ModuleTreeNode getChild(int index)
           
 int getChild(java.lang.String n)
           
 int getChildCount()
           
 java.lang.String getFullName()
           
 aterm.ATerm getId()
           
 int getIndexOfChild(ModuleTreeNode child)
           
 int getInsertIndex(java.lang.String n)
           
 int getLeafChild(java.lang.String n)
           
 java.lang.String getName()
           
 int getNodeChild(java.lang.String n)
           
 boolean hasError()
           
 boolean isLeaf()
           
 java.util.List<ModuleTreeNode> makePath(nl.cwi.sen1.ioapi.types.File file)
           
 java.util.List<ModuleTreeNode> makePath(nl.cwi.sen1.ioapi.types.SegmentList segments, java.util.List<ModuleTreeNode> result)
           
 void removeChild(nl.cwi.sen1.ioapi.types.File file)
           
 void removeChild(nl.cwi.sen1.ioapi.types.SegmentList segments)
           
 void setErrorState(nl.cwi.sen1.ioapi.types.File file, boolean b)
           
private  void setErrorState(nl.cwi.sen1.ioapi.types.SegmentList segments, boolean b)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

aterm.ATerm id

name

java.lang.String name

prefix

java.lang.String prefix

children

java.util.ArrayList<ModuleTreeNode> children

leaf

boolean leaf

error

boolean error
Constructor Detail

ModuleTreeNode

public ModuleTreeNode(aterm.ATerm id,
                      java.lang.String name,
                      java.lang.String prefix,
                      boolean leaf)
Method Detail

hasError

public boolean hasError()

getId

public aterm.ATerm getId()

getName

public java.lang.String getName()

getFullName

public java.lang.String getFullName()

addChild

public ModuleTreeNode addChild(aterm.ATerm id,
                               java.lang.String p,
                               nl.cwi.sen1.ioapi.types.File file)

removeChild

public void removeChild(nl.cwi.sen1.ioapi.types.File file)

removeChild

public void removeChild(nl.cwi.sen1.ioapi.types.SegmentList segments)

clearChildren

public void clearChildren()

getChild

public ModuleTreeNode getChild(int index)

getChild

public int getChild(java.lang.String n)

getLeafChild

public int getLeafChild(java.lang.String n)

getNodeChild

public int getNodeChild(java.lang.String n)

getInsertIndex

public int getInsertIndex(java.lang.String n)

getChildCount

public int getChildCount()

isLeaf

public boolean isLeaf()

getIndexOfChild

public int getIndexOfChild(ModuleTreeNode child)

makePath

public java.util.List<ModuleTreeNode> makePath(nl.cwi.sen1.ioapi.types.File file)

makePath

public java.util.List<ModuleTreeNode> makePath(nl.cwi.sen1.ioapi.types.SegmentList segments,
                                               java.util.List<ModuleTreeNode> result)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setErrorState

public void setErrorState(nl.cwi.sen1.ioapi.types.File file,
                          boolean b)

setErrorState

private void setErrorState(nl.cwi.sen1.ioapi.types.SegmentList segments,
                           boolean b)

The Meta-Environment API