@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)); } }
public OWLReflexiveObjectPropertyAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLReflexiveObjectPropertyAxiom(getProperty()); }
public OWLReflexiveObjectPropertyAxiom getOWLReflexiveObjectPropertyAxiom(OWLObjectPropertyExpression property, Set<? extends OWLAnnotation> annotations) { return new OWLReflexiveObjectPropertyAxiomImpl(this, property, annotations); }
public OWLReflexiveObjectPropertyAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return getOWLDataFactory().getOWLReflexiveObjectPropertyAxiom(getProperty(), mergeAnnos(annotations)); }
public static void serialize(SerializationStreamWriter streamWriter, OWLReflexiveObjectPropertyAxiomImpl instance) throws SerializationException { CustomFieldSerializerUtil.serializeAnnotations(instance, streamWriter); streamWriter.writeObject(instance.getProperty()); }
public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return getOWLDataFactory().getOWLSubClassOfAxiom( getOWLDataFactory().getOWLThing(), getOWLDataFactory().getOWLObjectHasSelf(getProperty()) ); }
@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); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(OWL_THING, new OWLObjectHasSelfImpl(getProperty()), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") 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 public OWLReflexiveObjectPropertyAxiom getOWLReflexiveObjectPropertyAxiom( OWLObjectPropertyExpression property, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLReflexiveObjectPropertyAxiomImpl(property, annotations); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(OWL_THING, new OWLObjectHasSelfImpl(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 public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(OWL_THING, new OWLObjectHasSelfImpl(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); }