Package org.semanticweb.owlapi.reasoner
Interface NodeSet<E extends OWLObject>
- Type Parameters:
E
- the type of elements in the node set
- All Known Implementing Classes:
DefaultNodeSet
,OWLClassNodeSet
,OWLDataPropertyNodeSet
,OWLDatatypeNodeSet
,OWLNamedIndividualNodeSet
,OWLObjectPropertyNodeSet
A set of
Node
s.- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsEntity
(E e) A convenience method that determines if thisNodeSet
contains a specific entity.entities()
A convenience method that gets all of the entities contained in theNodes
in thisNodeSet
.A convenience method that gets all of the entities contained in theNodes
in thisNodeSet
.getNodes()
Gets theNode
s contained in thisNodeSet
.boolean
Determines if thisNodeSet
is a singleton that only contains the bottom node (in a hierarchy).boolean
isEmpty()
boolean
Determines if thisNodeSet
is a singleton.boolean
Determines if thisNodeSet
is a singleton node that only contains the top node (in a hierarchy).nodes()
Gets theNode
s contained in thisNodeSet
.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getFlattened
A convenience method that gets all of the entities contained in theNodes
in thisNodeSet
.- Returns:
- The union of the entities contained in the
Nodes
in thisNodeSet
. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
entities
A convenience method that gets all of the entities contained in theNodes
in thisNodeSet
.- Returns:
- The union of the entities contained in the
Nodes
in thisNodeSet
.
-
isEmpty
boolean isEmpty()- Returns:
- true if the node set is empty
-
containsEntity
A convenience method that determines if thisNodeSet
contains a specific entity.- Parameters:
e
- The entity to test for- Returns:
true
if thisNodeSet
contains aNode
that contains the entity,e
, andfalse
if thisNodeSet
does not contain aNode
that contains the entity,e
.
-
isSingleton
boolean isSingleton()Determines if thisNodeSet
is a singleton. ANodeSet
is a singleton if it contains only oneNode
.- Returns:
true
if thisNodeSet
is a singleton, otherwisefalse
.
-
isTopSingleton
boolean isTopSingleton()Determines if thisNodeSet
is a singleton node that only contains the top node (in a hierarchy).- Returns:
true
if thisNodeSet
is a singleton that contains only the top node, andfalse
otherwise.- See Also:
-
isBottomSingleton
boolean isBottomSingleton()Determines if thisNodeSet
is a singleton that only contains the bottom node (in a hierarchy).- Returns:
true
if thisNodeSet
is a singleton that only contains a node that is the bottom node, otherwisefalse
- See Also:
-
getNodes
Gets theNode
s contained in thisNodeSet
.- Returns:
- The set of
Node
s contained in thisNodeSet
. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
nodes
Gets theNode
s contained in thisNodeSet
.- Returns:
- stream of
Node
s contained in thisNodeSet
.
-