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