|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthok.model.TreeFactory
public class TreeFactory
The TreeFactory
provides methods to generate a composite of
ITreeNode
. The generated tree is the model used by the
TreeViewer
of the ConstraintDialog
to represent a tree of owl
model instances.
Field Summary | |
---|---|
static java.lang.String |
ROOT_CONCEPT
The root concept of the owl vocabulary to describe a design problem. |
static java.lang.String |
ROOT_PREDICATE
The root predicate of the owl vocabulary to describe a design problem. |
Constructor Summary | |
---|---|
TreeFactory(com.hp.hpl.jena.ontology.OntModel ontmodel)
The Constructor. |
Method Summary | |
---|---|
ITreeNode |
generateConceptTree(java.lang.String rootConcept)
Generates the concept tree of the owl model starting with the given root concept. |
ITreeNode |
generatePredicateTree(java.lang.String rootPredicate)
Generates the predicate tree of the owl model starting with the given root predicate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROOT_CONCEPT
public static final java.lang.String ROOT_PREDICATE
Constructor Detail |
---|
public TreeFactory(com.hp.hpl.jena.ontology.OntModel ontmodel) throws OntElementNotFoundException
OntModel
.
ontmodel
- the owl model to store.
OntElementNotFoundException
- is thrown when the ontmodel is null.Method Detail |
---|
public ITreeNode generateConceptTree(java.lang.String rootConcept) throws OntElementNotFoundException
rootConcept
- the owl class from which to start constructing the tree.
ITreeNode
.
OntElementNotFoundException
- is thrown when the rootConcept does not exist in the
ontology.public ITreeNode generatePredicateTree(java.lang.String rootPredicate) throws OntElementNotFoundException
rootPredicate
- the owl root object property from which to start constructing
the tree.
ITreeNode
.
OntElementNotFoundException
- is thrown when the rootPredicate does not exist in the
ontology.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |