public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom(OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual object, Set<? extends OWLAnnotation> annotations) { return new OWLNegativeObjectPropertyAssertionAxiomImpl(this, subject, property, object, annotations); }
@Nonnull @Override public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual object, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(property, "property cannot be null"); checkNotNull(object, "object cannot be null"); checkNotNull(subject, "subject cannot be null"); checkAnnotations(annotations); return new OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(annotations)); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(annotations)); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom(OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual object, Set<? extends OWLAnnotation> annotations) { checkNull(property, "property"); checkNull(object, "object"); checkNull(subject, "subject"); checkNull(annotations, ANNOTATIONS, true); return new OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
public static OWLNegativeObjectPropertyAssertionAxiomImpl instantiate(SerializationStreamReader streamReader) throws SerializationException { Set<OWLAnnotation> annotations = CustomFieldSerializerUtil.deserializeAnnotations(streamReader); OWLIndividual subject = (OWLIndividual) streamReader.readObject(); OWLObjectPropertyExpression property = (OWLObjectPropertyExpression) streamReader.readObject(); OWLIndividual object = (OWLIndividual) streamReader.readObject(); return new OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }