@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } // superclass is responsible for null, identity, owlaxiom type and // annotations if (!(obj instanceof OWLAnnotationPropertyRangeAxiom)) { return false; } OWLAnnotationPropertyRangeAxiom other = (OWLAnnotationPropertyRangeAxiom) obj; return property.equals(other.getProperty()) && range.equals(other.getRange()); }
@Override public T visit(OWLAnnotationPropertyRangeAxiom axiom) { throw new IllegalArgumentException( OWLAnnotationPropertyRangeAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
@Override public OWLAnnotationPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationPropertyRangeAxiom other = (OWLAnnotationPropertyRangeAxiom) object; int diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return range.compareTo(other.getRange()); }
public void visit(OWLAnnotationPropertyRangeAxiom axiom) { notSupported(axiom); }
public void visit(OWLAnnotationPropertyRangeAxiom axiom) { }
public Boolean visit(OWLAnnotationPropertyRangeAxiom axiom) { return Boolean.TRUE; }
@Override public OWLAnnotationPropertyRangeAxiom visit( ElkAnnotationPropertyRangeAxiom axiom) { return owlFactory_.getOWLAnnotationPropertyRangeAxiom( convert(axiom.getProperty()), convert(axiom.getRange())); }
@Override public ElkAnnotationAxiom visit(OWLAnnotationPropertyRangeAxiom owlAnnotationPropertyRange) { return new ElkAnnotationPropertyRangeAxiomWrap<OWLAnnotationPropertyRangeAxiom>(owlAnnotationPropertyRange); }
@Override public ElkAxiom visit( OWLAnnotationPropertyRangeAxiom owlAnnotationPropertyRange) { return CONVERTER.convert(owlAnnotationPropertyRange); }
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { defaultVisit(axiom); }
@Override public OWLAxiom visit(OWLAnnotationPropertyRangeAxiom axiom) { return factory.getOWLAnnotationPropertyRangeAxiom(axiom.getProperty(), axiom.getRange(), annotations); }
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { }
public void visit(OWLAnnotationPropertyRangeAxiom arg0) { throw new NotImplementedException(); }
@Override public Boolean visit(OWLAnnotationPropertyRangeAxiom axiom) { return true; }
@Override public Boolean visit(OWLAnnotationPropertyRangeAxiom axiom) { return this.withAnnotations; }
@Override public Boolean visit(OWLAnnotationPropertyRangeAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLAnnotationPropertyRangeAxiom(axiom.getProperty(), axiom.getRange(), reg(axiom.getAnnotations()))); }
@Override public Boolean visit(OWLAnnotationPropertyRangeAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLAnnotationPropertyRangeAxiom(axiom.getProperty(), axiom.getRange(), empty())); }
@Override public Set<ComplexIntegerAxiom> visit(OWLAnnotationPropertyRangeAxiom axiom) { Objects.requireNonNull(axiom); return Collections.emptySet(); }
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { ignoreOwlAxiom("AnnotationPropertyRange", axiom); }
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { annotationAxiomsNotSupportedWarning(axiom); }
@Override public O visit(OWLAnnotationPropertyRangeAxiom axiom) { return doDefault(axiom); }
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { handleDefault(axiom); }
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex(); }
@Override public OWLAxiom visit(OWLAnnotationPropertyRangeAxiom axiom) { return axiom; }
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { hashCode = primes[74]; hashCode = hashCode * MULT + axiom.getProperty().hashCode(); hashCode = hashCode * MULT + axiom.getRange().hashCode(); }
@Override public OWLAnnotationPropertyRangeAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLAnnotationPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(annotations)); }
@Override public void visit(@Nonnull OWLAnnotationPropertyRangeAxiom axiom) { axiom.getProperty().accept(this); processAxiomAnnotations(axiom); }
public void visit(OWLAnnotationPropertyRangeAxiom arg0) { unusedAxiom(arg0, false); }
@Override protected void writeAxiom(OWLAnnotationPropertyRangeAxiom axiom, BinaryOWLOutputStream outputStream) throws IOException { outputStream.writeOWLObject(axiom.getProperty()); outputStream.writeOWLObject(axiom.getRange()); }
@Override protected OWLAnnotationPropertyRangeAxiom readAxiom(BinaryOWLInputStream inputStream, Set<OWLAnnotation> annotations) throws IOException, BinaryOWLParseException { OWLAnnotationProperty property = inputStream.readOWLObject(); IRI range = inputStream.readOWLObject(); return inputStream.getDataFactory().getOWLAnnotationPropertyRangeAxiom(property, range, annotations); }
public void visit(OWLAnnotationPropertyRangeAxiom arg0) { }