public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom(OWLDataPropertyExpression property, OWLClassExpression domain, Set<? extends OWLAnnotation> annotations) { return new OWLDataPropertyDomainAxiomImpl(this, property, domain, annotations); }
@Nonnull @Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom( OWLDataPropertyExpression property, OWLClassExpression domain, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(property, "property cannot be null"); checkNotNull(domain, "domain cannot be null"); checkAnnotations(annotations); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override public OWLAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(annotations)); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(anns)); }
@Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom( OWLDataPropertyExpression property, OWLClassExpression domain, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(domain, DOMAIN_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(anns)); }
@Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom( OWLDataPropertyExpression property, OWLClassExpression domain, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(domain, DOMAIN_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom(OWLDataPropertyExpression property, OWLClassExpression domain, Set<? extends OWLAnnotation> annotations) { checkNull(property, "property"); checkNull(domain, "domain"); checkNull(annotations, ANNOTATIONS, true); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom( OWLDataPropertyExpression property, OWLClassExpression domain, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(domain, DOMAIN_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom( OWLDataPropertyExpression property, OWLClassExpression domain, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(domain, DOMAIN_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
public static OWLDataPropertyDomainAxiomImpl instantiate(SerializationStreamReader streamReader) throws SerializationException { Set<OWLAnnotation> annotations = CustomFieldSerializerUtil.deserializeAnnotations(streamReader); OWLDataPropertyExpression prop = (OWLDataPropertyExpression) streamReader.readObject(); OWLClassExpression dom = (OWLClassExpression) streamReader.readObject(); return new OWLDataPropertyDomainAxiomImpl(prop, dom, annotations); }
@Override public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override public OWLAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(annotations)); }