/** * Gets an annotation * * @param property the annotation property * @param value The annotation value * @param annotations Annotations on the annotation * @return The annotation on the specified property with the specified value */ public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Set<? extends OWLAnnotation> annotations) { return new OWLAnnotationImpl(this, property, value, annotations); }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(property, value, annotations); } }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(property, value, annotations); } }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(property, value, annotations); } }
@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(property, value, annotations); }
@Override public OWLAnnotation getAnnotation() { return new OWLAnnotationImpl(property, value, NO_ANNOTATIONS); }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(property, value, annotations); } }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, @Nonnull Set<? extends OWLAnnotation> annotations) { return new OWLAnnotationImpl(property, value, annotations); } }
@Override public OWLAnnotation getAnnotatedAnnotation(Set<OWLAnnotation> annotationsToAdd) { if(annotationsToAdd.isEmpty()) { return this; } Set<OWLAnnotation> merged = new HashSet<OWLAnnotation>(this.annotations); merged.addAll(annotationsToAdd); return new OWLAnnotationImpl(property, value, merged); } //XXX not in the interface
@Override public OWLAnnotation getAnnotatedAnnotation( @Nonnull Set<OWLAnnotation> annotations) { if (annotations.isEmpty()) { return this; } Set<OWLAnnotation> merged = new HashSet<>(anns); merged.addAll(annotations); return new OWLAnnotationImpl(property, value, merged); }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> anns) { return annotations.get(new OWLAnnotationImpl(property, value, anns)); } }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> anns) { return annotations.get(new OWLAnnotationImpl(property, value, anns)); } }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> anns) { return annotations.get(new OWLAnnotationImpl(property, value, anns)); } }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> anns) { return annotations.get(new OWLAnnotationImpl(property, value, anns)); } }
@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(getProperty(), getValue(), Stream.concat(annotations(), annotations)); }
@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(getProperty(), getValue(), Stream.concat(annotations(), annotations)); }
@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(getProperty(), getValue(), Stream.concat(annotations(), annotations)); }
@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(getProperty(), getValue(), Stream.concat(annotations(), annotations)); }
@Override public OWLAnnotation getOWLAnnotation(OWLAnnotationProperty property, OWLAnnotationValue value, Set<? extends OWLAnnotation> annotations) { checkNull(property, "property"); checkNull(value, VALUE2); checkNull(annotations, ANNOTATIONS, true); return new OWLAnnotationImpl(property, value, annotations); }
public static OWLAnnotationImpl instantiate(SerializationStreamReader streamReader) throws SerializationException { OWLAnnotationProperty property = (OWLAnnotationProperty) streamReader.readObject(); OWLAnnotationValue value = (OWLAnnotationValue) streamReader.readObject(); Set<OWLAnnotation> annotations = CustomFieldSerializerUtil.deserializeSet(streamReader); return new OWLAnnotationImpl(property, value, annotations); }