public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Set<? extends OWLAnnotation> annotations) { return new OWLAnnotationAssertionAxiomImpl(this, subject, property, value, annotations); }
@Nonnull @Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(subject, "subject cannot be null"); checkNotNull(property, "property cannot be null"); checkNotNull(value, "value cannot be null"); checkAnnotations(annotations); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(anns)); }
public static OWLAnnotationAssertionAxiomImpl instantiate(SerializationStreamReader streamReader) throws SerializationException { Set<OWLAnnotation> annotations = CustomFieldSerializerUtil.deserializeAnnotations(streamReader); OWLAnnotationProperty prop = (OWLAnnotationProperty) streamReader.readObject(); OWLAnnotationSubject subject = (OWLAnnotationSubject) streamReader.readObject(); OWLAnnotationValue value = (OWLAnnotationValue) streamReader.readObject(); return new OWLAnnotationAssertionAxiomImpl(subject, prop, value, annotations); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Collection<OWLAnnotation> annotations) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(value, VALUE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }
@Override @SuppressWarnings("unchecked") public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Collection<OWLAnnotation> annotations) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(value, VALUE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(anns)); }
@Override public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Collection<OWLAnnotation> annotations) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(value, VALUE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }
@Override @SuppressWarnings("unchecked") public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Collection<OWLAnnotation> annotations) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(value, VALUE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }
@Override @SuppressWarnings("unchecked") public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
@Override public OWLAnnotationAssertionAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(annotations)); }
@Override public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
@Override public OWLAnnotationAssertionAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(annotations)); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Set<? extends OWLAnnotation> annotations) { checkNull(subject, "subject"); checkNull(property, "property"); checkNull(value, VALUE2); checkNull(annotations, ANNOTATIONS, true); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }