@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 OWLAnnotationPropertyDomainAxiom)) { return false; } OWLAnnotationPropertyDomainAxiom other = (OWLAnnotationPropertyDomainAxiom) obj; return property.equals(other.getProperty()) && domain.equals(other.getDomain()); }
@Override public T visit(OWLAnnotationPropertyDomainAxiom axiom) { throw new IllegalArgumentException( OWLAnnotationPropertyDomainAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
@Override public OWLAnnotationPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationPropertyDomainAxiom other = (OWLAnnotationPropertyDomainAxiom) object; int diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return domain.compareTo(other.getDomain()); }
public void visit(OWLAnnotationPropertyDomainAxiom axiom) { notSupported(axiom); }
public void visit(OWLAnnotationPropertyDomainAxiom axiom) { }
public Boolean visit(OWLAnnotationPropertyDomainAxiom axiom) { return Boolean.TRUE; }
@Override public OWLAnnotationPropertyDomainAxiom visit( ElkAnnotationPropertyDomainAxiom axiom) { return owlFactory_.getOWLAnnotationPropertyDomainAxiom( convert(axiom.getProperty()), convert(axiom.getDomain())); }
@Override public ElkAnnotationAxiom visit(OWLAnnotationPropertyDomainAxiom owlAnnotationPropertyDomain) { return new ElkAnnotationPropertyDomainAxiomWrap<OWLAnnotationPropertyDomainAxiom>(owlAnnotationPropertyDomain); }
@Override public ElkAxiom visit( OWLAnnotationPropertyDomainAxiom owlAnnotationPropertyDomain) { return CONVERTER.convert(owlAnnotationPropertyDomain); }
@Override public void visit(OWLAnnotationPropertyDomainAxiom axiom) { defaultVisit(axiom); }
@Override public OWLAxiom visit(OWLAnnotationPropertyDomainAxiom axiom) { return factory.getOWLAnnotationPropertyDomainAxiom(axiom.getProperty(), axiom.getDomain(), annotations); }
@Override public void visit(OWLAnnotationPropertyDomainAxiom axiom) { }
public void visit(OWLAnnotationPropertyDomainAxiom arg0) { throw new NotImplementedException(); }
@Override public Boolean visit(OWLAnnotationPropertyDomainAxiom axiom) { return true; }
@Override public Boolean visit(OWLAnnotationPropertyDomainAxiom axiom) { return this.withAnnotations; }
@Override public Boolean visit(OWLAnnotationPropertyDomainAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLAnnotationPropertyDomainAxiom(axiom.getProperty(), axiom.getDomain(), reg(axiom.getAnnotations()))); }
@Override public Boolean visit(OWLAnnotationPropertyDomainAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLAnnotationPropertyDomainAxiom(axiom.getProperty(), axiom.getDomain(), empty())); }
@Override public Set<ComplexIntegerAxiom> visit(OWLAnnotationPropertyDomainAxiom axiom) { Objects.requireNonNull(axiom); return Collections.emptySet(); }
@Override public void visit(OWLAnnotationPropertyDomainAxiom axiom) { ignoreOwlAxiom("AnnotationPropertyDomain", axiom); }
@Override public void visit(OWLAnnotationPropertyDomainAxiom axiom) { annotationAxiomsNotSupportedWarning(axiom); }
@Override public O visit(OWLAnnotationPropertyDomainAxiom axiom) { return doDefault(axiom); }
@Override public void visit(OWLAnnotationPropertyDomainAxiom axiom) { handleDefault(axiom); }
@Override public void visit(OWLAnnotationPropertyDomainAxiom axiom) { type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex(); }
@Override public OWLAxiom visit(OWLAnnotationPropertyDomainAxiom axiom) { return axiom; }
@Override public void visit(OWLAnnotationPropertyDomainAxiom axiom) { hashCode = primes[73]; hashCode = hashCode * MULT + axiom.getProperty().hashCode(); hashCode = hashCode * MULT + axiom.getDomain().hashCode(); }
@Override public OWLAnnotationPropertyDomainAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLAnnotationPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(annotations)); }
@Override public void visit(@Nonnull OWLAnnotationPropertyDomainAxiom axiom) { axiom.getProperty().accept(this); processAxiomAnnotations(axiom); }
public void visit(OWLAnnotationPropertyDomainAxiom arg0) { unusedAxiom(arg0, false); }
@Override protected void writeAxiom(OWLAnnotationPropertyDomainAxiom axiom, BinaryOWLOutputStream outputStream) throws IOException { outputStream.writeOWLObject(axiom.getProperty()); outputStream.writeOWLObject(axiom.getDomain()); }
@Override protected OWLAnnotationPropertyDomainAxiom readAxiom(BinaryOWLInputStream inputStream, Set<OWLAnnotation> annotations) throws IOException, BinaryOWLParseException { OWLAnnotationProperty property = inputStream.readOWLObject(); IRI domain = inputStream.readOWLObject(); return inputStream.getDataFactory().getOWLAnnotationPropertyDomainAxiom(property, domain, annotations); }
public void visit(OWLAnnotationPropertyDomainAxiom arg0) { }