private void parseDef(Clause cl) { if (stream.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("Definitions should always be a quoted string."); } }
private void parseDef(Clause cl) { if (stream.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("Definitions should always be a quoted string."); } }
private void parseDef(Clause cl) { if (stream.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("Definitions should always be a quoted string."); } }
private void parseDef(Clause cl) { if (stream.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("Definitions should always be a quoted string."); } }
private void parseDef(Clause cl) throws OBOFormatParserException { if (s.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("Definitions should always be a quoted string."); } }
private void parseOwlDef(Clause cl) throws OBOFormatParserException { if (s.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("The "+cl.getTag()+" clause is always a quoted string."); } }
private boolean parseDeprecatedSynonym(String tag, Clause cl) { String scope; if ("exact_synonym".equals(tag)) { scope = OboFormatTag.TAG_EXACT.getTag(); } else if ("narrow_synonym".equals(tag)) { scope = OboFormatTag.TAG_NARROW.getTag(); } else if ("broad_synonym".equals(tag)) { scope = OboFormatTag.TAG_BROAD.getTag(); } else if ("related_synonym".equals(tag)) { scope = OboFormatTag.TAG_RELATED.getTag(); } else { return false; } cl.setTag(OboFormatTag.TAG_SYNONYM.getTag()); if (stream.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); cl.addValue(scope); parseZeroOrMoreWs(); parseXrefList(cl, false); return true; } return false; }
private boolean parseDeprecatedSynonym(String tag, Clause cl) { String scope; if ("exact_synonym".equals(tag)) { scope = OboFormatTag.TAG_EXACT.getTag(); } else if ("narrow_synonym".equals(tag)) { scope = OboFormatTag.TAG_NARROW.getTag(); } else if ("broad_synonym".equals(tag)) { scope = OboFormatTag.TAG_BROAD.getTag(); } else if ("related_synonym".equals(tag)) { scope = OboFormatTag.TAG_RELATED.getTag(); } else { return false; } cl.setTag(OboFormatTag.TAG_SYNONYM.getTag()); if (stream.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); cl.addValue(scope); parseZeroOrMoreWs(); parseXrefList(cl, false); return true; } return false; }
private void parseOwlDef(Clause cl) { if (stream.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("The " + cl.getTag() + " clause is always a quoted string."); } }
private void parseOwlDef(Clause cl) { if (stream.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("The " + cl.getTag() + " clause is always a quoted string."); } }
private boolean parseDeprecatedSynonym(String tag, Clause cl) { String scope; if ("exact_synonym".equals(tag)) { scope = OboFormatTag.TAG_EXACT.getTag(); } else if ("narrow_synonym".equals(tag)) { scope = OboFormatTag.TAG_NARROW.getTag(); } else if ("broad_synonym".equals(tag)) { scope = OboFormatTag.TAG_BROAD.getTag(); } else if ("related_synonym".equals(tag)) { scope = OboFormatTag.TAG_RELATED.getTag(); } else { return false; } cl.setTag(OboFormatTag.TAG_SYNONYM.getTag()); if (stream.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); cl.addValue(scope); parseZeroOrMoreWs(); parseXrefList(cl, false); return true; } return false; }
private void parseOwlDef(Clause cl) { if (stream.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("The " + cl.getTag() + " clause is always a quoted string."); } }
private void parseOwlDef(Clause cl) { if (stream.consume("\"")) { String def = getParseUntilAdv("\""); cl.setValue(def); parseZeroOrMoreWs(); parseXrefList(cl, true); } else { error("The " + cl.getTag() + " clause is always a quoted string."); } }
private boolean parseDeprecatedSynonym(String tag, Clause cl) { String scope; if ("exact_synonym".equals(tag)) { scope = OboFormatTag.TAG_EXACT.getTag(); } else if ("narrow_synonym".equals(tag)) { scope = OboFormatTag.TAG_NARROW.getTag(); } else if ("broad_synonym".equals(tag)) { scope = OboFormatTag.TAG_BROAD.getTag(); } else if ("related_synonym".equals(tag)) { scope = OboFormatTag.TAG_RELATED.getTag(); } else { return false; } cl.setTag(OboFormatTag.TAG_SYNONYM.getTag()); if (stream.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); cl.addValue(scope); parseZeroOrMoreWs(); parseXrefList(cl, false); return true; } return false; }
private boolean parseDeprecatedSynonym(String tag, Clause cl) throws OBOFormatParserException { String scope = null; if (tag.equals("exact_synonym")) { scope = OboFormatTag.TAG_EXACT.getTag(); } else if (tag.equals("narrow_synonym")) { scope = OboFormatTag.TAG_NARROW.getTag(); } else if (tag.equals("broad_synonym")) { scope = OboFormatTag.TAG_BROAD.getTag(); } else if (tag.equals("related_synonym")) { scope = OboFormatTag.TAG_RELATED.getTag(); } else { return false; } cl.setTag(OboFormatTag.TAG_SYNONYM.getTag()); if (s.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); cl.addValue(scope); parseZeroOrMoreWs(); parseXrefList(cl, false); return true; } return false; }
private void parseSynonym(Clause cl) throws OBOFormatParserException { if (s.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); parseZeroOrMoreWs(); if (s.peekCharIs('[') == false) { parseIdRef(cl, true); parseZeroOrMoreWs(); if (s.peekCharIs('[') == false) { parseIdRef(cl, true); parseZeroOrMoreWs(); } } parseXrefList(cl, false); Collection<Xref> xrefs = cl.getXrefs(); if (xrefs == null) { cl.setXrefs(new Vector<Xref>(0)); } } else { error("The synonym is always a quoted string."); } }
private void parseSynonym(Clause cl) { if (stream.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); parseZeroOrMoreWs(); if (!stream.peekCharIs('[')) { parseIdRef(cl, true); parseZeroOrMoreWs(); if (!stream.peekCharIs('[')) { parseIdRef(cl, true); parseZeroOrMoreWs(); } } parseXrefList(cl, false); } else { error("The synonym is always a quoted string."); } }
private void parseSynonym(Clause cl) { if (stream.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); parseZeroOrMoreWs(); if (!stream.peekCharIs('[')) { parseIdRef(cl, true); parseZeroOrMoreWs(); if (!stream.peekCharIs('[')) { parseIdRef(cl, true); parseZeroOrMoreWs(); } } parseXrefList(cl, false); } else { error("The synonym is always a quoted string."); } }
private void parseSynonym(Clause cl) { if (stream.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); parseZeroOrMoreWs(); if (!stream.peekCharIs('[')) { parseIdRef(cl, true); parseZeroOrMoreWs(); if (!stream.peekCharIs('[')) { parseIdRef(cl, true); parseZeroOrMoreWs(); } } parseXrefList(cl, false); } else { error("The synonym is always a quoted string."); } }
private void parseSynonym(Clause cl) { if (stream.consume("\"")) { String syn = getParseUntilAdv("\""); cl.setValue(syn); parseZeroOrMoreWs(); if (!stream.peekCharIs('[')) { parseIdRef(cl, true); parseZeroOrMoreWs(); if (!stream.peekCharIs('[')) { parseIdRef(cl, true); parseZeroOrMoreWs(); } } parseXrefList(cl, false); } else { error("The synonym is always a quoted string."); } }