@Override public String toString() { return ToString.toString(this); } }
/** * Returns a human-readable string representation of the given object. * * @see java.lang.Object#toString() * @param o * the object to represent as string * @return a string representation of the object */ public static String toString(SenseDocument o) { StringBuilder sb = new StringBuilder(); sb.append("==SenseDocument ").append(o.getEntityId().getIri()); sb.append(" (r").append(o.getRevisionId()).append(") "); sb.append("=="); boolean first; sb.append("\n* Lemmas: "); first = true; SortedSet<String> labelKeys = new TreeSet<>(o.getGlosses().keySet()); for (String key : labelKeys) { if (first) { first = false; } else { sb.append("; "); } sb.append(toString(o.getGlosses().get(key))); } sb.append(toStringForStatementDocument(o)); return sb.toString(); }
/** * Returns a human-readable string representation of the given object. * * @see java.lang.Object#toString() * @param o * the object to represent as string * @return a string representation of the object */ public static String toString(ItemDocument o) { StringBuilder sb = new StringBuilder(); sb.append("==ItemDocument ").append(o.getEntityId().getIri()); sb.append(" (r").append(o.getRevisionId()).append(") "); sb.append("==").append(toStringForTermedDocument(o)); sb.append(toStringForStatementDocument(o)); sb.append("* Site links: "); boolean first = true; SortedSet<String> siteKeys = new TreeSet<>(o.getSiteLinks() .keySet()); for (String key : siteKeys) { if (first) { first = false; } else { sb.append("; "); } sb.append(toString(o.getSiteLinks().get(key))); } return sb.toString(); }
/** * Returns a human-readable string representation of the given object. * * @see java.lang.Object#toString() * @param o * the object to represent as string * @return a string representation of the object */ public static String toString(PropertyDocument o) { return "==PropertyDocument " + o.getEntityId().getIri() + " (r" + o.getRevisionId() + ") ==\n" + "* Datatype: " + o.getDatatype() + toStringForTermedDocument(o) + toStringForStatementDocument(o); }
.format(o.getSecond())) : "") + " (Prec.: " + getTimePrecisionString(o.getPrecision()) + " [-" + o.getBeforeTolerance() + "]" + ", PCal: " + getCalendarString(o.getPreferredCalendarModel()) + (o.getTimezoneOffset() != 0 ? (", Timezone: " + o.getTimezoneOffset() + "min ") : "") + ")";
/** * Returns a human-readable string representation of the given object. * * @see java.lang.Object#toString() * @param o * the object to represent as string * @return a string representation of the object */ public static String toString(GlobeCoordinatesValue o) { return (o.getLatitude() / GlobeCoordinatesValue.PREC_DEGREE) + ":" + (o.getLongitude() / GlobeCoordinatesValue.PREC_DEGREE) + " (" + getGlobeString(o.getGlobe()) + ")"; }
/** * Returns a human-readable string representation of the given object. * * @see java.lang.Object#toString() * @param o * the object to represent as string * @return a string representation of the object */ public static String toString(SenseDocument o) { StringBuilder sb = new StringBuilder(); sb.append("==SenseDocument ").append(o.getEntityId().getIri()); sb.append(" (r").append(o.getRevisionId()).append(") "); sb.append("=="); boolean first; sb.append("\n* Lemmas: "); first = true; SortedSet<String> labelKeys = new TreeSet<>(o.getGlosses().keySet()); for (String key : labelKeys) { if (first) { first = false; } else { sb.append("; "); } sb.append(toString(o.getGlosses().get(key))); } sb.append(toStringForStatementDocument(o)); return sb.toString(); }
/** * Returns a human-readable string representation of the given object. * * @see java.lang.Object#toString() * @param o * the object to represent as string * @return a string representation of the object */ public static String toString(ItemDocument o) { StringBuilder sb = new StringBuilder(); sb.append("==ItemDocument ").append(o.getEntityId().getIri()); sb.append(" (r").append(o.getRevisionId()).append(") "); sb.append("==").append(toStringForTermedDocument(o)); sb.append(toStringForStatementDocument(o)); sb.append("* Site links: "); boolean first = true; SortedSet<String> siteKeys = new TreeSet<>(o.getSiteLinks() .keySet()); for (String key : siteKeys) { if (first) { first = false; } else { sb.append("; "); } sb.append(toString(o.getSiteLinks().get(key))); } return sb.toString(); }
/** * Returns a human-readable string representation of the given object. * * @see java.lang.Object#toString() * @param o * the object to represent as string * @return a string representation of the object */ public static String toString(PropertyDocument o) { return "==PropertyDocument " + o.getEntityId().getIri() + " (r" + o.getRevisionId() + ") ==\n" + "* Datatype: " + o.getDatatype() + toStringForTermedDocument(o) + toStringForStatementDocument(o); }
.format(o.getSecond())) : "") + " (Prec.: " + getTimePrecisionString(o.getPrecision()) + " [-" + o.getBeforeTolerance() + "]" + ", PCal: " + getCalendarString(o.getPreferredCalendarModel()) + (o.getTimezoneOffset() != 0 ? (", Timezone: " + o.getTimezoneOffset() + "min ") : "") + ")";
/** * Returns a human-readable string representation of the given object. * * @see java.lang.Object#toString() * @param o * the object to represent as string * @return a string representation of the object */ public static String toString(GlobeCoordinatesValue o) { return (o.getLatitude() / GlobeCoordinatesValue.PREC_DEGREE) + ":" + (o.getLongitude() / GlobeCoordinatesValue.PREC_DEGREE) + " (" + getGlobeString(o.getGlobe()) + ")"; }
@Override public String toString() { return ToString.toString(this); } }
sb.append("; "); sb.append(toString(o.getRepresentations().get(key))); sb.append(feature.toString()).append(' '); sb.append(toStringForStatementDocument(o)); return sb.toString();
@Override public String toString() { return ToString.toString(this); } }
sb.append("; "); sb.append(toString(o.getRepresentations().get(key))); sb.append(feature.toString()).append(' '); sb.append(toStringForStatementDocument(o)); return sb.toString();
@Override public String toString() { return ToString.toString(this); } }
sb.append("; "); sb.append(toString(o.getLemmas().get(key))); sb.append(toStringForStatementDocument(o)); sb.append("\n* Forms: \n"); for(FormDocument form : o.getForms()) {
@Override public String toString() { return ToString.toString(this); } }
sb.append("; "); sb.append(toString(o.getLemmas().get(key))); sb.append(toStringForStatementDocument(o)); sb.append("\n* Forms: \n"); for(FormDocument form : o.getForms()) {
@Override public String toString() { return ToString.toString(this); } }