nl.cwi.sen1.gui.plugin.data
Class ModuleTreeNode
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
ModuleTreeNode
public ModuleTreeNode(aterm.ATerm id,
java.lang.String name,
java.lang.String prefix,
boolean leaf)
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)