/** * Translate shorthand id to expanded id. * * @param id the id * @return the string */ protected String translateShorthandIdToExpandedId(String id) { if (id.contains(":")) { return id; } Frame tdf = obodoc.getTypedefFrame(id); if (tdf == null) { return id; } Collection<Xref> xrefs = tdf.getTagValues(OboFormatTag.TAG_XREF, Xref.class); String matchingExpandedId = null; for (Xref xref : xrefs) { matchingExpandedId = handleXref(id, matchingExpandedId, xref); } if (matchingExpandedId == null) { return id; } return matchingExpandedId; }
/** * Translate shorthand id to expanded id. * * @param id the id * @return the string */ protected String translateShorthandIdToExpandedId(String id) { if (id.contains(":")) { return id; } Frame tdf = obodoc.getTypedefFrame(id); if (tdf == null) { return id; } Collection<Xref> xrefs = tdf.getTagValues(OboFormatTag.TAG_XREF, Xref.class); String matchingExpandedId = null; for (Xref xref : xrefs) { matchingExpandedId = handleXref(id, matchingExpandedId, xref); } if (matchingExpandedId == null) { return id; } return matchingExpandedId; }
/** * Translate shorthand id to expanded id. * * @param id the id * @return the string */ protected String translateShorthandIdToExpandedId(String id) { if (id.contains(":")) { return id; } Frame tdf = obodoc.getTypedefFrame(id); if (tdf == null) { return id; } Collection<Xref> xrefs = tdf.getTagValues(OboFormatTag.TAG_XREF, Xref.class); String matchingExpandedId = null; for (Xref xref : xrefs) { matchingExpandedId = handleXref(id, matchingExpandedId, xref); } if (matchingExpandedId == null) { return id; } return matchingExpandedId; }
/** * Translate shorthand id to expanded id. * * @param id the id * @return the string */ protected String translateShorthandIdToExpandedId(String id) { if (id.contains(":")) { return id; } Frame tdf = obodoc.getTypedefFrame(id); if (tdf == null) { return id; } Collection<Xref> xrefs = tdf.getTagValues(OboFormatTag.TAG_XREF, Xref.class); String matchingExpandedId = null; for (Xref xref : xrefs) { matchingExpandedId = handleXref(id, matchingExpandedId, xref); } if (matchingExpandedId == null) { return id; } return matchingExpandedId; }