/** * @param p filter predicate for annotations. Can be used to match the annotation property or * the annotation value * @return a stream of OWLAnnotations on this object, with filter applied. This will only * include the annotations contained in this object, not the value of annotation * assertion axioms in an ontology or in other ontologies. Use the EntitySearcher * methods for that purpose. */ default Stream<OWLAnnotation> annotations(Predicate<OWLAnnotation> p) { // Default implementation returns a sorted stream already. return annotations().filter(p).sorted(); }
if (inlineAnnotationRendering == RENDER_COMPOUND_ANNOTATIONS_INLINE && value instanceof HasAnnotations) { Page subAnnotationPage = new Page(); for (OWLAnnotation anno : ((HasAnnotations) value).getAnnotations()) { renderCellValue(subAnnotationPage, anno, foreground, background, isSelected);
if (inlineAnnotationRendering == RENDER_COMPOUND_ANNOTATIONS_INLINE && value instanceof HasAnnotations) { Page subAnnotationPage = new Page(); for (OWLAnnotation anno : ((HasAnnotations) value).getAnnotations()) { renderCellValue(subAnnotationPage, anno, foreground, background, isSelected);
/** * @param p filter predicate for annotations. Can be used to match the annotation property or * the annotation value * @return a stream of OWLAnnotations on this object, with filter applied. This will only * include the annotations contained in this object, not the value of annotation * assertion axioms in an ontology or in other ontologies. Use the EntitySearcher * methods for that purpose. */ default Stream<OWLAnnotation> annotations(Predicate<OWLAnnotation> p) { // Default implementation returns a sorted stream already. return annotations().filter(p).sorted(); }
/** * @param p filter predicate for annotations. Can be used to match the annotation property or * the annotation value * @return a stream of OWLAnnotations on this object, with filter applied. This will only * include the annotations contained in this object, not the value of annotation * assertion axioms in an ontology or in other ontologies. Use the EntitySearcher * methods for that purpose. */ default Stream<OWLAnnotation> annotations(Predicate<OWLAnnotation> p) { // Default implementation returns a sorted stream already. return annotations().filter(p).sorted(); }
@Override public <T extends OWLObject> void walk(StructureWalker<T> walker, OWLObject o) { if (o instanceof HasAnnotations) { ((HasAnnotations) o).annotations().forEach(a -> a.accept(walker)); } } };
/** * @param p annotation property to filter on * @return a stream of OWLAnnotations on this object, with filter applied. This will only * include the annotations contained in this object, not the value of annotation * assertion axioms in an ontology or in other ontologies. Use the EntitySearcher * methods for that purpose. */ default Stream<OWLAnnotation> annotations(OWLAnnotationProperty p) { // Default implementation returns a sorted stream already. return annotations().filter(a -> a.getProperty().equals(p)).sorted(); }
@Override public Set<C> doDefault(Object object) { return asUnorderedSet(((HasAnnotations) object).annotations().map(this::get)); }
/** * @param p annotation property to filter on * @return a stream of OWLAnnotations on this object, with filter applied. This will only * include the annotations contained in this object, not the value of annotation * assertion axioms in an ontology or in other ontologies. Use the EntitySearcher * methods for that purpose. */ default Stream<OWLAnnotation> annotations(OWLAnnotationProperty p) { // Default implementation returns a sorted stream already. return annotations().filter(a -> a.getProperty().equals(p)).sorted(); }
@Override public <T extends OWLObject> void walk(StructureWalker<T> walker, OWLObject o) { if (o instanceof HasAnnotations) { ((HasAnnotations) o).annotations().forEach(a -> a.accept(walker)); } } };
@Override public Set<C> doDefault(Object object) { return asUnorderedSet(((HasAnnotations) object).annotations().map(this::get)); }
/** * @param p annotation property to filter on * @return a stream of OWLAnnotations on this object, with filter applied. This will only * include the annotations contained in this object, not the value of annotation * assertion axioms in an ontology or in other ontologies. Use the EntitySearcher * methods for that purpose. */ default Stream<OWLAnnotation> annotations(OWLAnnotationProperty p) { // Default implementation returns a sorted stream already. return annotations().filter(a -> a.getProperty().equals(p)).sorted(); }
@Override public <T extends OWLObject> void walk(StructureWalker<T> walker, OWLObject o) { if (o instanceof HasAnnotations) { ((HasAnnotations) o).annotations().forEach(a -> a.accept(walker)); } } };
/** @return annotation collection s list */ default List<OWLAnnotation> annotationsAsList() { return asList(annotations()); }
/** @return annotation collection s list */ default List<OWLAnnotation> annotationsAsList() { return asList(annotations()); }
@Override public Set<C> doDefault(Object object) { return asUnorderedSet(((HasAnnotations) object).annotations().map(this::get)); }
/** @return annotation collection s list */ default List<OWLAnnotation> annotationsAsList() { return asList(annotations()); }
/** * Gets the annotations on this object. * * @return A set of annotations on this object. For an OWLOntology, these are the ontology * annotations, not the annotations attached to axioms or annotation axioms contained in * the ontology. For an OWLAnnotation, these are the annotations on the annotation; the * annotation itself is not included. The set returned will be a copy - modifying the * set will have no effect on the annotations in this object, similarly, any changes * that affect the annotations on this object will not change the returned set. Note: * for iterating over this set of annotations, using the annotations() stream is more * efficient. * @deprecated use the stream method */ @Deprecated default Set<OWLAnnotation> getAnnotations() { return asSet(annotations()); }
/** * Gets the annotations on this object. * * @return A set of annotations on this object. For an OWLOntology, these are the ontology * annotations, not the annotations attached to axioms or annotation axioms contained in * the ontology. For an OWLAnnotation, these are the annotations on the annotation; the * annotation itself is not included. The set returned will be a copy - modifying the * set will have no effect on the annotations in this object, similarly, any changes * that affect the annotations on this object will not change the returned set. Note: * for iterating over this set of annotations, using the annotations() stream is more * efficient. * @deprecated use the stream method */ @Deprecated default Set<OWLAnnotation> getAnnotations() { return asSet(annotations()); }
/** * Gets the annotations on this object. * * @return A set of annotations on this object. For an OWLOntology, these are the ontology * annotations, not the annotations attached to axioms or annotation axioms contained in * the ontology. For an OWLAnnotation, these are the annotations on the annotation; the * annotation itself is not included. The set returned will be a copy - modifying the * set will have no effect on the annotations in this object, similarly, any changes * that affect the annotations on this object will not change the returned set. Note: * for iterating over this set of annotations, using the annotations() stream is more * efficient. * @deprecated use the stream method */ @Deprecated default Set<OWLAnnotation> getAnnotations() { return asSet(annotations()); }