public class OntologyVisualizationHelper extends java.util.HashMap<java.lang.String,OntologyClass>
Constructor and Description |
---|
OntologyVisualizationHelper(java.util.Vector<java.lang.String> subOntologies)
Constructor of the Class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addSubOntology(java.lang.String newSubOntology)
Adds a new sub-ontology to the current project.
|
javax.swing.tree.DefaultMutableTreeNode |
getClassTreeNode(java.lang.String classReference2Search)
This Method returns the 'TreeNode' for class to
search, which is a part of the project ontology.
|
OntologyClassTreeObject |
getClassTreeObject(java.lang.String classReference2Search)
This Method returns the 'OntologyClassTreeObject' for class to
search, which is a part of the project-ontology.
|
java.lang.String |
getErrorStack()
Gets the error stack.
|
javax.swing.tree.DefaultTreeModel |
getOntologyTree()
This method returns the whole TreeModel for the project ontology, which
can consist of one or more Sub-Ontologies.
|
javax.swing.table.DefaultTableModel |
getSlots4Class(java.lang.String classReference2Search)
This Method returns a DefaultTableModel for a
given class inside of the project-ontology.
|
OntologySingleClassDescription |
getSlots4ClassAsObject(java.lang.String classReference2Search)
This Method returns a ArrayList of Slot-Descriptions for a
given class inside of the project-ontology.
|
java.util.Vector<java.lang.String> |
getSubOntologies()
Returns the references of the sub ontologies.
|
boolean |
hasError()
Checks for error.
|
void |
removeSubOntology(java.lang.String subOntology2Remove)
Removes a sub-ontology from the current project.
|
void |
setSubOntologies(java.util.Vector<java.lang.String> subOntologies)
Sets the references of the sub ontologies.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public OntologyVisualizationHelper(java.util.Vector<java.lang.String> subOntologies)
subOntologies
- the Vector of references to sub ontologiespublic java.util.Vector<java.lang.String> getSubOntologies()
public void setSubOntologies(java.util.Vector<java.lang.String> subOntologies)
subOntologies
- the subOntologies to setpublic javax.swing.tree.DefaultTreeModel getOntologyTree()
public boolean hasError()
public java.lang.String getErrorStack()
public boolean addSubOntology(java.lang.String newSubOntology)
newSubOntology
- the new sub ontologypublic void removeSubOntology(java.lang.String subOntology2Remove)
subOntology2Remove
- the removable sub ontologypublic javax.swing.tree.DefaultMutableTreeNode getClassTreeNode(java.lang.String classReference2Search)
classReference2Search
- the class reference2 searchpublic OntologyClassTreeObject getClassTreeObject(java.lang.String classReference2Search)
classReference2Search
- the class reference2 searchpublic javax.swing.table.DefaultTableModel getSlots4Class(java.lang.String classReference2Search)
classReference2Search
- the class reference2 searchpublic OntologySingleClassDescription getSlots4ClassAsObject(java.lang.String classReference2Search)
classReference2Search
- the class reference2 search