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