nl.cwi.sen1.gui.plugin.data
Class Module
java.lang.Object
nl.cwi.sen1.gui.plugin.data.Module
- All Implemented Interfaces:
- java.lang.Comparable<Module>
public class Module
- extends java.lang.Object
- implements java.lang.Comparable<Module>
Constructor Summary |
Module(aterm.ATerm id,
nl.cwi.sen1.ioapi.types.File file,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STATE_NORMAL
public static final int STATE_NORMAL
- See Also:
- Constant Field Values
STATE_NEW
public static final int STATE_NEW
- See Also:
- Constant Field Values
_id
private aterm.ATerm _id
_name
private java.lang.String _name
_file
private nl.cwi.sen1.ioapi.types.File _file
_parent
private java.util.List<java.lang.String> _parent
_child
private java.util.List<java.lang.String> _child
childListModel
private ListModel<java.lang.String> childListModel
parentListModel
private ListModel<java.lang.String> parentListModel
State
private int State
Module
public Module(aterm.ATerm id,
nl.cwi.sen1.ioapi.types.File file,
java.lang.String name)
compareTo
public int compareTo(Module module)
- Specified by:
compareTo
in interface java.lang.Comparable<Module>
getId
public aterm.ATerm getId()
getName
public java.lang.String getName()
getAbbreviation
public java.lang.String getAbbreviation()
setId
private void setId(aterm.ATerm id)
setName
private void setName(java.lang.String name)
setFile
private void setFile(nl.cwi.sen1.ioapi.types.File file)
addParent
public void addParent(java.lang.String parent)
initParentList
private void initParentList()
fetchParentIterator
public java.util.Iterator<java.lang.String> fetchParentIterator()
fetchParentListModel
public ListModel<java.lang.String> fetchParentListModel()
addChild
public void addChild(java.lang.String child)
initChildList
private void initChildList()
getChildren
public java.util.List<java.lang.String> getChildren()
getParents
public java.util.List<java.lang.String> getParents()
fetchChildIterator
public java.util.Iterator<java.lang.String> fetchChildIterator()
fetchChildListModel
public ListModel<java.lang.String> fetchChildListModel()
fetchChildrenArray
public java.lang.Object[] fetchChildrenArray()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getState
public int getState()
setState
public void setState(int State)
getFile
public nl.cwi.sen1.ioapi.types.File getFile()