/** * Checks whether a named class is a conjunct in a given class expression. * For class expressions which aren't named classes or object intersections this * method will always return false. * * @param conjunct The conjunct to check for * @param classExpression The expression to be checked */ public boolean isNamedConjunct(OWLClass conjunct, OWLClassExpression classExpression) { reset(); this.conjunct = conjunct; classExpression.accept(visitor); return found; }
/** * Gets the named conjuncts for the specified expression. * * @param classExpression The expression whose conjuncts are to be retrieved. * @return A set containing the named conjuncts of the specified expression. If * the expression is not a named class or an intersection then the set will * definitely be empty. */ public Set<OWLClass> getNamedConjuncts(OWLClassExpression classExpression) { conjuncts.clear(); reset(); collect = true; classExpression.accept(visitor); return conjuncts; }
/** * Checks whether the specified expression has a named conjunct. For * For class expressions which aren't named classes or object intersections this * method will always return false. * * @param classExpression The expression to be checked. * @return <code>true</code> if the expression is in fact a named class (<code>OWLClass</code>) * or if the expression is an intersection that has a named operand (included nested intersections), * otherwise <code>false</code> */ public boolean hasNamedConjunct(OWLClassExpression classExpression) { reset(); conjunct = null; classExpression.accept(visitor); return found; }
/** * Gets the named conjuncts for the specified expression. * * @param classExpression The expression whose conjuncts are to be retrieved. * @return A set containing the named conjuncts of the specified expression. If the expression * is not a named class or an intersection then the set will definitely be empty. */ public Set<OWLClass> getNamedConjuncts(OWLClassExpression classExpression) { checkNotNull(classExpression, "classExpression cannot be null"); conjuncts.clear(); reset(); collect = true; classExpression.accept(visitor); return conjuncts; }
/** * Gets the named conjuncts for the specified expression. * * @param classExpression The expression whose conjuncts are to be retrieved. * @return A set containing the named conjuncts of the specified expression. If the expression * is not a named class or an intersection then the set will definitely be empty. */ public Set<OWLClass> getNamedConjuncts(OWLClassExpression classExpression) { checkNotNull(classExpression, "classExpression cannot be null"); conjuncts.clear(); reset(); collect = true; classExpression.accept(visitor); return conjuncts; }
/** * Gets the named conjuncts for the specified expression. * * @param classExpression The expression whose conjuncts are to be retrieved. * @return A set containing the named conjuncts of the specified expression. If the expression * is not a named class or an intersection then the set will definitely be empty. */ public Set<OWLClass> getNamedConjuncts(OWLClassExpression classExpression) { checkNotNull(classExpression, "classExpression cannot be null"); conjuncts.clear(); reset(); collect = true; classExpression.accept(visitor); return conjuncts; }
/** * Checks whether the specified expression has a named conjunct. For For * class expressions which aren't named classes or object intersections this * method will always return false. * * @param classExpression The expression to be checked. * @return {@code true} if the expression is in fact a named class ( {@code OWLClass}) or if the * expression is an intersection that has a named operand (included nested intersections), * otherwise {@code false} */ public boolean hasNamedConjunct(OWLClassExpression classExpression) { checkNotNull(classExpression, "classExpression cannot be null"); reset(); conjunct = null; classExpression.accept(visitor); return found; }
/** * Checks whether the specified expression has a named conjunct. For For * class expressions which aren't named classes or object intersections this * method will always return false. * * @param classExpression The expression to be checked. * @return {@code true} if the expression is in fact a named class ( {@code OWLClass}) or if the * expression is an intersection that has a named operand (included nested intersections), * otherwise {@code false} */ public boolean hasNamedConjunct(OWLClassExpression classExpression) { checkNotNull(classExpression, "classExpression cannot be null"); reset(); conjunct = null; classExpression.accept(visitor); return found; }
/** * Checks whether the specified expression has a named conjunct. For For * class expressions which aren't named classes or object intersections this * method will always return false. * * @param classExpression The expression to be checked. * @return {@code true} if the expression is in fact a named class ( {@code OWLClass}) or if the * expression is an intersection that has a named operand (included nested intersections), * otherwise {@code false} */ public boolean hasNamedConjunct(OWLClassExpression classExpression) { checkNotNull(classExpression, "classExpression cannot be null"); reset(); conjunct = null; classExpression.accept(visitor); return found; }
/** * @param conj The conjunct to check for * @param classExpression The expression to be checked * @return true ifa named class is a conjunct in a given class expression. For class expressions * which aren't named classes or object intersections this method will always return false. */ public boolean isNamedConjunct(OWLClass conj, OWLClassExpression classExpression) { checkNotNull(conj, "conj cannot be null"); checkNotNull(classExpression, "classExpression cannot be null"); reset(); conjunct = conj; classExpression.accept(visitor); return found; }
/** * @param conj The conjunct to check for * @param classExpression The expression to be checked * @return true ifa named class is a conjunct in a given class expression. For class expressions * which aren't named classes or object intersections this method will always return false. */ public boolean isNamedConjunct(OWLClass conj, OWLClassExpression classExpression) { checkNotNull(conj, "conj cannot be null"); checkNotNull(classExpression, "classExpression cannot be null"); reset(); conjunct = conj; classExpression.accept(visitor); return found; }
/** * @param conj The conjunct to check for * @param classExpression The expression to be checked * @return true ifa named class is a conjunct in a given class expression. For class expressions * which aren't named classes or object intersections this method will always return false. */ public boolean isNamedConjunct(OWLClass conj, OWLClassExpression classExpression) { checkNotNull(conj, "conj cannot be null"); checkNotNull(classExpression, "classExpression cannot be null"); reset(); conjunct = conj; classExpression.accept(visitor); return found; }