E - the type of entities in the nodepublic abstract class DefaultNode<E extends OWLObject> extends Object implements Node<E>
| Constructor and Description |
|---|
DefaultNode(Collection<E> entities) |
DefaultNode(E entity) |
DefaultNode(Stream<E> entities) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E entity) |
boolean |
contains(E entity)
Determines if this node contains the specified entity.
|
Stream<E> |
entities()
Gets the entities contained in this node.
|
boolean |
equals(Object obj) |
Set<E> |
getEntitiesMinus(E e)
Gets the entities contained in this node minus the specified entitie
e. |
Set<E> |
getEntitiesMinusBottom()
Gets the entities contained in this node minus the bottom entity.
|
Set<E> |
getEntitiesMinusTop()
Gets the entities contained in this node minus the top entity.
|
E |
getRepresentativeElement()
Gets one of the entities contained in this entity set.
|
int |
getSize()
Gets the number of entities contained in this
Node. |
int |
hashCode() |
boolean |
isBottomNode()
Determines if this node represents the bottom node (in a hierarchy).
|
boolean |
isSingleton()
Determines if this
Node contains just one entity. |
boolean |
isTopNode()
Determines if this node represents the top node (in a hierarchy).
|
Iterator<E> |
iterator() |
String |
toString() |
getEntitiesforEach, spliteratorpublic DefaultNode(E entity)
entity - the entity to addpublic DefaultNode(Collection<E> entities)
entities - the entities to addpublic void add(E entity)
entity - entity to be addedpublic boolean isTopNode()
Nodeowl:Thing. For an object property node, the top node is the node
that contains owl:topObjectProperty. For a data property node,
the top node is the node that contains owl:topDataPropertyisTopNode in interface Node<E extends OWLObject>true if this node is an OWLClass node and it contains owl:Thing. true if this node is an OWLObjectProperty node and it
contains owl:topObjectProperty. true if this node is an OWLDataProperty node and it contains owl:topDataProperty. false if none
of the above.public boolean isBottomNode()
Nodeowl:Nothing. For an object property node, the bottom node is the
node that contains owl:bottomObjectProperty. For a data property
node, the bottom node is the node that contains
owl:bottomDataPropertyisBottomNode in interface Node<E extends OWLObject>true if this node is an OWLClass node and it contains owl:Nothing. true if this node is an OWLObjectProperty node and it
contains owl:bottomObjectProperty. true if this node is an OWLDataProperty node and it contains owl:bottomDataProperty. false if
none of the above.public Stream<E> entities()
Nodepublic int getSize()
NodeNode.public boolean contains(E entity)
Nodepublic Set<E> getEntitiesMinus(E e)
Nodee. This essentially returns the entities that are returned by
Node.getEntities() minus the specified entity egetEntitiesMinus in interface Node<E extends OWLObject>e - The entity that, is contained within this node, but should not be included in the
return set.e. If e is not contained within this node then the full set of entities
returned is the same as that returned by Node.getEntities()public Set<E> getEntitiesMinusTop()
Nodeowl:Thing. For a node of
object properties the top entity is owl:topObjectProperty. For a
node of data properties the top entity is owl:topDataPropertygetEntitiesMinusTop in interface Node<E extends OWLObject>Node.getEntities().public Set<E> getEntitiesMinusBottom()
Nodeowl:Nothing. For a
node of object properties the bottom entity is
owl:bottomObjectProperty. For a node of data properties the
bottom entity is owl:bottomDataPropertygetEntitiesMinusBottom in interface Node<E extends OWLObject>Node.getEntities().public boolean isSingleton()
NodeNode contains just one entity.isSingleton in interface Node<E extends OWLObject>true if this Node contains just one entity, otherwise falsepublic E getRepresentativeElement()
NodegetRepresentativeElement in interface Node<E extends OWLObject>Copyright © 2019 The University of Manchester. All rights reserved.