private void writeBinaryOrNaryList(ManchesterOWLSyntax binaryKeyword, Stream<? extends OWLObject> stream, ManchesterOWLSyntax naryKeyword) { List<? extends OWLObject> objects = asList(stream); if (objects.size() == 2) { Iterator<? extends OWLObject> it = objects.iterator(); it.next().accept(this); write(binaryKeyword); it.next().accept(this); } else { writeSectionKeyword(naryKeyword); writeCommaSeparatedList(objects); } }
private void writeBinaryOrNaryList(ManchesterOWLSyntax binaryKeyword, Stream<? extends OWLObject> stream, ManchesterOWLSyntax naryKeyword) { List<? extends OWLObject> objects = asList(stream); if (objects.size() == 2) { Iterator<? extends OWLObject> it = objects.iterator(); it.next().accept(this); write(binaryKeyword); it.next().accept(this); } else { writeSectionKeyword(naryKeyword); writeCommaSeparatedList(objects); } }
private void writeBinaryOrNaryList(ManchesterOWLSyntax binaryKeyword, Stream<? extends OWLObject> stream, ManchesterOWLSyntax naryKeyword) { List<? extends OWLObject> objects = asList(stream); if (objects.size() == 2) { Iterator<? extends OWLObject> it = objects.iterator(); it.next().accept(this); write(binaryKeyword); it.next().accept(this); } else { writeSectionKeyword(naryKeyword); writeCommaSeparatedList(objects); } }
private void writeBinaryOrNaryList(ManchesterOWLSyntax binaryKeyword, Stream<? extends OWLObject> stream, ManchesterOWLSyntax naryKeyword) { List<? extends OWLObject> objects = asList(stream); if (objects.size() == 2) { Iterator<? extends OWLObject> it = objects.iterator(); it.next().accept(this); write(binaryKeyword); it.next().accept(this); } else { writeSectionKeyword(naryKeyword); writeCommaSeparatedList(objects); } }
@Override public void visit(OWLEquivalentDataPropertiesAxiom axiom) { setAxiomWriting(); writeFrameKeyword(EQUIVALENT_PROPERTIES); writeCommaSeparatedList(axiom.properties()); restore(); }
@Override public void visit(OWLEquivalentDataPropertiesAxiom axiom) { setAxiomWriting(); writeFrameKeyword(EQUIVALENT_PROPERTIES); writeCommaSeparatedList(axiom.properties()); restore(); }
@Override public void visit(OWLEquivalentDataPropertiesAxiom axiom) { setAxiomWriting(); writeFrameKeyword(EQUIVALENT_PROPERTIES); writeCommaSeparatedList(axiom.properties()); restore(); }
@Override public void visit(OWLEquivalentDataPropertiesAxiom axiom) { setAxiomWriting(); writeFrameKeyword(EQUIVALENT_PROPERTIES); writeCommaSeparatedList(axiom.properties()); restore(); }
@Override public void visit(OWLDisjointUnionAxiom axiom) { setAxiomWriting(); axiom.getOWLClass().accept(this); write(DISJOINT_UNION_OF); writeCommaSeparatedList(axiom.classExpressions()); restore(); }
@Override public void visit(OWLDisjointUnionAxiom axiom) { setAxiomWriting(); axiom.getOWLClass().accept(this); write(DISJOINT_UNION_OF); writeCommaSeparatedList(axiom.classExpressions()); restore(); }
@Override public void visit(OWLDisjointUnionAxiom axiom) { setAxiomWriting(); axiom.getOWLClass().accept(this); write(DISJOINT_UNION_OF); writeCommaSeparatedList(axiom.classExpressions()); restore(); }
@Override public void visit(OWLDisjointUnionAxiom axiom) { setAxiomWriting(); axiom.getOWLClass().accept(this); write(DISJOINT_UNION_OF); writeCommaSeparatedList(axiom.classExpressions()); restore(); }