|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--BrowserOntoTree
this class is used to read the protege file in and represent the knowledgebase in the JTrree
| Field Summary | |
static ClsNode |
rootnode
|
static javax.swing.JTree |
tree
|
static javax.swing.tree.DefaultTreeModel |
treemodel
|
| Constructor Summary | |
BrowserOntoTree()
Constructor of the class |
|
BrowserOntoTree(java.lang.String fileName)
|
|
| Method Summary | |
java.util.HashMap |
addnode(ClsNode node,
java.lang.String cls,
edu.stanford.smi.protege.model.Cls parent)
|
void |
createCls(java.lang.String cls,
edu.stanford.smi.protege.model.Cls parent)
|
void |
createNodes(ClsNode top,
edu.stanford.smi.protege.model.Cls par_cls)
|
static edu.stanford.smi.protege.model.KnowledgeBase |
getKnowledgeBase()
return the knowledgeBase instance |
static edu.stanford.smi.protege.model.Project |
getProject()
return the project instance |
static void |
handleErrors(java.util.Collection errors)
|
int |
ifClsExist(java.lang.String name)
|
static void |
saveProject()
save the project back to the format of protege |
void |
SetTreeModel()
set the Tree Model for display |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static javax.swing.JTree tree
public static ClsNode rootnode
public static javax.swing.tree.DefaultTreeModel treemodel
| Constructor Detail |
public BrowserOntoTree()
public BrowserOntoTree(java.lang.String fileName)
| Method Detail |
public static edu.stanford.smi.protege.model.KnowledgeBase getKnowledgeBase()
public static edu.stanford.smi.protege.model.Project getProject()
public void SetTreeModel()
public void createCls(java.lang.String cls,
edu.stanford.smi.protege.model.Cls parent)
public java.util.HashMap addnode(ClsNode node,
java.lang.String cls,
edu.stanford.smi.protege.model.Cls parent)
public static void saveProject()
public void createNodes(ClsNode top,
edu.stanford.smi.protege.model.Cls par_cls)
public static void handleErrors(java.util.Collection errors)
public int ifClsExist(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||