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