/** * Converting an ELK Object to string. * * @param elkObject * the input ELK object * @return the string representation of the ELK object */ public static String toString(ElkObject elkObject) { return toString(elkObject, false); }
/** * Converting an ELK Object to string. * * @param elkObject * the input ELK object * @return the string representation of the ELK object */ public static String toString(ElkObject elkObject) { return toString(elkObject, false); }
/** * Converting an ELK Object to string. * * @param elkObject * the input ELK object * @return the string representation of the ELK object */ public static String toString(ElkObject elkObject) { return toString(elkObject, false); }
/** * Converting an ELK Object to string. * * @param elkObject * the input ELK object * @return the string representation of the ELK object */ public static String toString(ElkObject elkObject) { return toString(elkObject, false); }
@Override public String toString() { return OwlFunctionalStylePrinter.toString(this); }
@Override public String toString() { return OwlFunctionalStylePrinter.toString(this); }
@Override public String toString() { return OwlFunctionalStylePrinter.toString(this); }
private StringBuilder printOccurrences( final Collection<? extends ElkObject> occursIn, final StringBuilder message) { int i = 0; for (final ElkObject elkObject : occursIn) { if (i >= AT_MOST_N_OCCURRENCES_IN_MESSAGE) { message.append("\n\t..."); break; } message.append("\n\t") .append(OwlFunctionalStylePrinter.toString(elkObject)); i++; } return message; }
private StringBuilder printOccurrences( final Collection<? extends ElkObject> occursIn, final StringBuilder message) { int i = 0; for (final ElkObject elkObject : occursIn) { if (i >= AT_MOST_N_OCCURRENCES_IN_MESSAGE) { message.append("\n\t..."); break; } message.append("\n\t") .append(OwlFunctionalStylePrinter.toString(elkObject)); i++; } return message; }
private StringBuilder printOccurrences( final Collection<? extends ElkObject> occursIn, final StringBuilder message) { int i = 0; for (final ElkObject elkObject : occursIn) { if (i >= AT_MOST_N_OCCURRENCES_IN_MESSAGE) { message.append("\n\t..."); break; } message.append("\n\t") .append(OwlFunctionalStylePrinter.toString(elkObject)); i++; } return message; }
@Override public void visit(ElkClassExpression elkClassExpression) { try { if (LOGGER_.isTraceEnabled()) { LOGGER_.trace("$$ indexing {} for {}", OwlFunctionalStylePrinter.toString(elkClassExpression), type_); } elkClassExpression.accept(indexer_); } catch (final ElkIndexingUnsupportedException e) { indexingListener_.onIndexing( Occurrence.OCCURRENCE_OF_UNSUPPORTED_EXPRESSION); } }
@Override public void visit(ElkAxiom elkAxiom) { try { if (LOGGER_.isTraceEnabled()) LOGGER_.trace("$$ indexing " + OwlFunctionalStylePrinter.toString(elkAxiom) + " for " + type_); elkAxiom.accept(indexer_); } catch (ElkIndexingUnsupportedException e) { indexingListener_.onIndexing( Occurrence.OCCURRENCE_OF_UNSUPPORTED_EXPRESSION); } } }
@Override public void visit(ElkClassExpression elkClassExpression) { try { if (LOGGER_.isTraceEnabled()) { LOGGER_.trace("$$ indexing {} for {}", OwlFunctionalStylePrinter.toString(elkClassExpression), type_); } elkClassExpression.accept(indexer_); } catch (final ElkIndexingUnsupportedException e) { indexingListener_.onIndexing( Occurrence.OCCURRENCE_OF_UNSUPPORTED_EXPRESSION); } }
@Override public void visit(ElkAxiom elkAxiom) { try { if (LOGGER_.isTraceEnabled()) LOGGER_.trace("$$ indexing " + OwlFunctionalStylePrinter.toString(elkAxiom) + " for " + type_); elkAxiom.accept(indexer_); } catch (ElkIndexingUnsupportedException e) { indexingListener_.onIndexing( Occurrence.OCCURRENCE_OF_UNSUPPORTED_EXPRESSION); } } }
@Override public void visit(ElkAxiom elkAxiom) { try { if (LOGGER_.isTraceEnabled()) LOGGER_.trace("$$ indexing " + OwlFunctionalStylePrinter.toString(elkAxiom) + " for " + type_); elkAxiom.accept(indexer_); } catch (ElkIndexingUnsupportedException e) { indexingListener_.onIndexing( Occurrence.OCCURRENCE_OF_UNSUPPORTED_EXPRESSION); } } }
@Override public void visit(ElkClassExpression elkClassExpression) { try { if (LOGGER_.isTraceEnabled()) { LOGGER_.trace("$$ indexing {} for {}", OwlFunctionalStylePrinter.toString(elkClassExpression), type_); } elkClassExpression.accept(indexer_); } catch (final ElkIndexingUnsupportedException e) { indexingListener_.onIndexing( Occurrence.OCCURRENCE_OF_UNSUPPORTED_EXPRESSION); } }
@Override protected IndexedEntailmentQuery<? extends Entailment> defaultVisit( final ElkAxiom axiom) { if (LOGGER_.isTraceEnabled()) { LOGGER_.trace("$$ indexing {} for {}", OwlFunctionalStylePrinter.toString(axiom), type_); } try { return axiom.accept(converter_); } catch (final ElkIndexingUnsupportedException e) { indexingListener_.onIndexing( Occurrence.OCCURRENCE_OF_UNSUPPORTED_EXPRESSION); return null; } }
@Override protected IndexedEntailmentQuery<? extends Entailment> defaultVisit( final ElkAxiom axiom) { if (LOGGER_.isTraceEnabled()) { LOGGER_.trace("$$ indexing {} for {}", OwlFunctionalStylePrinter.toString(axiom), type_); } try { return axiom.accept(converter_); } catch (final ElkIndexingUnsupportedException e) { indexingListener_.onIndexing( Occurrence.OCCURRENCE_OF_UNSUPPORTED_EXPRESSION); return null; } }
@Override public void dumpChangeToLog(final ElkAxiom change, final Logger logger, final LogLevel level) { LoggerWrap.log(logger, level, OwlFunctionalStylePrinter.toString(change) + ": deleted"); }
@Override public void printAxiom(ElkAxiom axiom, Logger logger, LogLevel level) { LoggerWrap.log(logger, level, OwlFunctionalStylePrinter.toString(axiom)); }