@Override @SuppressWarnings("unchecked") public OWLAnnotationPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(anns)); }
public OWLAnnotationPropertyDomainAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLAnnotationPropertyDomainAxiom(getProperty(), getDomain()); }
public OWLAnnotationPropertyDomainAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return getOWLDataFactory().getOWLAnnotationPropertyDomainAxiom(getProperty(), getDomain(), mergeAnnos(annotations)); }
public OWLAnnotationPropertyDomainAxiom getOWLAnnotationPropertyDomainAxiom(OWLAnnotationProperty prop, IRI domain, Set<? extends OWLAnnotation> annotations) { return new OWLAnnotationPropertyDomainAxiomImpl(this, prop, domain, annotations); }
public static void serialize(SerializationStreamWriter streamWriter, OWLAnnotationPropertyDomainAxiomImpl instance) throws SerializationException { CustomFieldSerializerUtil.serializeAnnotations(instance, streamWriter); streamWriter.writeObject(instance.getProperty()); streamWriter.writeObject(instance.getDomain()); }
@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 public OWLAnnotationPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_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 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 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 @SuppressWarnings("unchecked") public OWLAnnotationPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_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 OWLAnnotationPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_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 public OWLAnnotationPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }