/** * @param node the node to be contained */ public DefaultNodeSet(Node<E> node) { addNode(checkNotNull(node, "node cannot be null")); }
/** * Adds the specified entities as {@code Node}s to this set. * * @param entities The entities to be added. Each entity will be wrapped in a {@code Node} which * will then be added to this {@code NodeSet}. */ public void addDifferentEntities(Set<E> entities) { entities.forEach(e -> addNode(getNode(e))); }
/** * Adds the specified entities as <code>Node</code>s to this set. * @param entities The entities to be added. Each entity will be wrapped in a <code>Node</code> which will then * be added to this <code>NodeSet</code>. */ public void addDifferentEntities(Set<E> entities) { for(E e : entities) { addNode(getNode(e)); } }
/** * Adds the specified entities as <code>Node</code>s to this set. * @param entities The entities to be added. Each entity will be wrapped in a <code>Node</code> which will then * be added to this <code>NodeSet</code>. */ //XXX not in the interface public void addDifferentEntities(Set<E> entities) { for (E e : entities) { addNode(getNode(e)); } }
/** * Adds the specified entities as {@code Node}s to this set. * * @param entities The entities to be added. Each entity will be wrapped in a {@code Node} which * will then be added to this {@code NodeSet}. */ public void addDifferentEntities(Set<E> entities) { entities.forEach(e -> addNode(getNode(e))); }
/** * Adds the specified entities as {@code Node}s to this set. * * @param entities The entities to be added. Each entity will be wrapped in a {@code Node} which * will then be added to this {@code NodeSet}. */ public void addDifferentEntities(Set<E> entities) { entities.forEach(e -> addNode(getNode(e))); }
/** * @param node the node to be contained */ public DefaultNodeSet(Node<E> node) { addNode(checkNotNull(node, "node cannot be null")); }
/** * Adds the specified entities as {@code Node}s to this set. * * @param entities The entities to be added. Each entity will be wrapped in a {@code Node} which * will then be added to this {@code NodeSet}. */ public void addDifferentEntities(Set<E> entities) { entities.forEach(e -> addNode(getNode(e))); }
/** * Adds an entity to this <code>NodeSet</code> by wrapping it in a <code>Node</code>. * @param entity The entity to be added. The entity will be wrapped in the <code>Node</code> and the <code>Node</code> * added to this set. */ public void addEntity(E entity) { addNode(getNode(entity)); }
/** * @param entity the entity to be contained */ public DefaultNodeSet(E entity) { addNode(getNode(checkNotNull(entity, "entity cannot be null"))); }
/** * Adds an entity to this {@code NodeSet} by wrapping it in a {@code Node}. * * @param entity The entity to be added. The entity will be wrapped in the {@code Node} and the * {@code Node} added to this set. Must not be {@code null}. * @throws NullPointerException if {@code entity} is {@code null}. */ public void addEntity(E entity) { addNode(getNode(checkNotNull(entity, "entity cannot be null"))); }
/** * @param entity the entity to be contained */ public DefaultNodeSet(E entity) { addNode(getNode(checkNotNull(entity, "entity cannot be null"))); }
/** * Adds an entity to this {@code NodeSet} by wrapping it in a {@code Node}. * * @param entity The entity to be added. The entity will be wrapped in the {@code Node} and the * {@code Node} added to this set. Must not be {@code null}. * @throws NullPointerException if {@code entity} is {@code null}. */ public void addEntity(E entity) { addNode(getNode(checkNotNull(entity, "entity cannot be null"))); }
/** * @param entity the entity to be contained */ public DefaultNodeSet(E entity) { addNode(getNode(checkNotNull(entity, "entity cannot be null"))); }
/** * Adds an entity to this {@code NodeSet} by wrapping it in a {@code Node}. * * @param entity The entity to be added. The entity will be wrapped in the {@code Node} and the * {@code Node} added to this set. Must not be {@code null}. * @throws NullPointerException if {@code entity} is {@code null}. */ public void addEntity(E entity) { addNode(getNode(checkNotNull(entity, "entity cannot be null"))); }
protected void addClasses(boolean direct, DefaultNodeSet<OWLClass> result, OWLClassExpression domain) { result.addNode(getEquivalentClasses(domain)); if (!direct) { result.addAllNodes(getSuperClasses(domain, false).nodes()); } }
protected void addClasses(boolean direct, DefaultNodeSet<OWLClass> result, OWLClassExpression domain) { result.addNode(getEquivalentClasses(domain)); if (!direct) { result.addAllNodes(getSuperClasses(domain, false).nodes()); } }
protected void addClasses(boolean direct, DefaultNodeSet<OWLClass> result, OWLClassExpression domain) { result.addNode(getEquivalentClasses(domain)); if (!direct) { result.addAllNodes(getSuperClasses(domain, false).nodes()); } }
protected void addClasses(boolean direct, DefaultNodeSet<OWLClass> result, OWLClassExpression domain) { result.addNode(getEquivalentClasses(domain)); if (!direct) { result.addAllNodes(getSuperClasses(domain, false).nodes()); } }
public NodeSet<OWLClass> getDataPropertyDomains(OWLDataProperty pe, boolean direct) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { DefaultNodeSet<OWLClass> result = new OWLClassNodeSet(); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyDomainAxiom axiom : ontology.getDataPropertyDomainAxioms(pe)) { result.addNode(getEquivalentClasses(axiom.getDomain())); if (!direct) { result.addAllNodes(getSuperClasses(axiom.getDomain(), false).getNodes()); } } } return result; }