public OWLDataPropertyAssertionAxiom getOWLDataPropertyAssertionAxiom(OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral object, Set<? extends OWLAnnotation> annotations) { return new OWLDataPropertyAssertionAxiomImpl(this, subject, property, object, annotations); }
@Nonnull @Override public OWLDataPropertyAssertionAxiom getOWLDataPropertyAssertionAxiom( OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral 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 OWLDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); } }
@Override public OWLDataPropertyAssertionAxiom getOWLDataPropertyAssertionAxiom( OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral 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 OWLDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLDataPropertyAssertionAxiom getOWLDataPropertyAssertionAxiom( OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral 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 OWLDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override public OWLDataPropertyAssertionAxiom getOWLDataPropertyAssertionAxiom( OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral 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 OWLDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLDataPropertyAssertionAxiom getOWLDataPropertyAssertionAxiom(OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral object, Set<? extends OWLAnnotation> annotations) { checkNull(property, "property"); checkNull(object, "object"); checkNull(subject, "subject"); checkNull(annotations, ANNOTATIONS, true); return new OWLDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override public OWLDataPropertyAssertionAxiom getOWLDataPropertyAssertionAxiom( OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral 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 OWLDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); } }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); } }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); } }
@Override public OWLDataPropertyAssertionAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(annotations)); }
public static OWLDataPropertyAssertionAxiomImpl instantiate(SerializationStreamReader streamReader) throws SerializationException { Set<OWLAnnotation> annotations = CustomFieldSerializerUtil.deserializeAnnotations(streamReader); OWLIndividual subject = (OWLIndividual) streamReader.readObject(); OWLDataPropertyExpression property = (OWLDataPropertyExpression) streamReader.readObject(); OWLLiteral object = (OWLLiteral) streamReader.readObject(); return new OWLDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLDataPropertyAssertionAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return new OWLDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(annotations)); }