Refine search
@Override public void visit(OWLAnnotation node) { hashCode = primes[81]; hashCode = hashCode * MULT + node.getProperty().hashCode(); hashCode = hashCode * MULT + node.getValue().hashCode(); }
@Override default Stream<?> components() { return Stream.of(getProperty(), getValue(), annotationsAsList()); }
private int getAnnotationDifference(OWLAnnotation annotation1, OWLAnnotation annotation2) { int diff = getAnnotationPropertyDifference(annotation1.getProperty(), annotation2.getProperty()); if(diff == 0) { diff = getAnnotationLanguageDifference(annotation1.getValue(), annotation2.getValue()); } if(diff == 0) { diff = getAnnotationValueDifference(annotation1.getValue(), annotation2.getValue()); } return diff; }
private int getAnnotationDifference(OWLAnnotation annotation1, OWLAnnotation annotation2) { int diff = getAnnotationPropertyDifference(annotation1.getProperty(), annotation2.getProperty()); if (diff == 0) { diff = getAnnotationLanguageDifference(annotation1.getValue(), annotation2.getValue()); } if (diff == 0) { diff = getAnnotationValueDifference(annotation1.getValue(), annotation2.getValue()); } return diff; }
@Nonnull @Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationSubject subject, @Nonnull OWLAnnotation annotation, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(annotation, "annotation cannot be null"); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
@Override public void visit(OWLAnnotation node) { stringBuilder.append("<span class=\"ms-annotation-prop\">"); node.getProperty().accept(this); stringBuilder.append("</span>"); renderSpace(); stringBuilder.append("<span class=\"ms-annotation-val\">"); node.getValue().accept(this); stringBuilder.append("<span>"); }
@Override public void write(OWLOutputStream out, Object o) throws IOException { OWLAnnotation annotation = (OWLAnnotation) o; out.write(annotation.getProperty()); out.write(annotation.getValue()); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Collection<OWLAnnotation> annotations) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderAnnotation(OWLAnnotation expected, OWLDataFactory df) { this(df); withProperty(expected.getProperty()).withValue(expected.getValue()); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderAnnotation(OWLAnnotation expected, OWLDataFactory df) { this(df); withProperty(expected.getProperty()).withValue(expected.getValue()); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Collection<OWLAnnotation> annotations) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Collection<OWLAnnotation> annotations) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderAnnotation(OWLAnnotation expected, OWLDataFactory df) { this(df); withProperty(expected.getProperty()).withValue(expected.getValue()); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationSubject subject, OWLAnnotation annotation, Collection<OWLAnnotation> annotations) { checkNotNull(annotation, ANNOTATION_CANNOT_BE_NULL); return getOWLAnnotationAssertionAxiom(annotation.getProperty(), subject, annotation.getValue(), annotations); }
@Override public void visit(OWLAnnotation node) { sb.append("Annotation("); node.annotations().forEach(a -> { a.accept(this); sb.append(' '); }); node.getProperty().accept(this); sb.append(' '); node.getValue().accept(this); sb.append(')'); }
@Override public void visit(OWLAnnotation node) { sb.append("Annotation("); node.annotations().forEach(a -> { a.accept(this); sb.append(' '); }); node.getProperty().accept(this); sb.append(' '); node.getValue().accept(this); sb.append(')'); }
@Override public void visit(OWLAnnotation node) { process(node); node.getProperty().accept(this); node.getValue().accept(this); }
@Override public void visit(OWLAnnotation node) { process(node); node.getProperty().accept(this); node.getValue().accept(this); }
@Override default int initHashCode() { int hash = hashIndex(); hash = OWLObject.hashIteration(hash, getProperty().hashCode()); hash = OWLObject.hashIteration(hash, getValue().hashCode()); return OWLObject.hashIteration(hash, annotationsAsList().hashCode()); }
@Override public OWLAnnotation visit(OWLAnnotation node) { return df.getOWLAnnotation(t(node.getProperty()), t(node.getValue()), node.annotations().map(this::t)); }