protected void parseIdLine(Frame f) { String t = getParseTag(); OboFormatTag tag = OBOFormatConstants.getTag(t); if (tag != OboFormatTag.TAG_ID) { error("Expected id tag as first line in frame, but was: " + tag); } Clause cl = new Clause(t); f.addClause(cl); String id = getParseUntil(" !{"); if (id.isEmpty()) { error("Could not find an valid id, id is empty."); } cl.addValue(id); f.setId(id); parseEOL(cl); }
protected void parseIdLine(Frame f) { String t = getParseTag(); OboFormatTag tag = OBOFormatConstants.getTag(t); if (tag != OboFormatTag.TAG_ID) { error("Expected id tag as first line in frame, but was: " + tag); } Clause cl = new Clause(t); f.addClause(cl); String id = getParseUntil(" !{"); if (id.isEmpty()) { error("Could not find an valid id, id is empty."); } cl.addValue(id); f.setId(id); parseEOL(cl); }
protected void parseIdLine(Frame f) { String t = getParseTag(); OboFormatTag tag = OBOFormatConstants.getTag(t); if (tag != OboFormatTag.TAG_ID) { error("Expected id tag as first line in frame, but was: " + tag); } Clause cl = new Clause(t); f.addClause(cl); String id = getParseUntil(" !{"); if (id.isEmpty()) { error("Could not find an valid id, id is empty."); } cl.addValue(id); f.setId(id); parseEOL(cl); }
protected void parseIdLine(Frame f) { String t = getParseTag(); OboFormatTag tag = OBOFormatConstants.getTag(t); if (tag != OboFormatTag.TAG_ID) { error("Expected id tag as first line in frame, but was: " + tag); } Clause cl = new Clause(t); f.addClause(cl); String id = getParseUntil(" !{"); if (id.isEmpty()) { error("Could not find an valid id, id is empty."); } cl.addValue(id); f.setId(id); parseEOL(cl); }
protected void parseIdLine(Frame f) throws OBOFormatParserException { String t = getParseTag(); OboFormatTag tag = OBOFormatConstants.getTag(t); if (tag != OboFormatTag.TAG_ID) { error("Expected id tag as first line in frame, but was: "+tag); } Clause cl = new Clause(); cl.setTag(t); f.addClause(cl); String id = getParseUntil(" !{"); if (id == null || id.length() == 0) { error("Could not find an valid id, id is empty."); } cl.addValue(id); f.setId(id); parseEOL(cl); }
protected void parseHeaderClause(Frame h) { String t = getParseTag(); Clause cl = new Clause(t); OboFormatTag tag = OBOFormatConstants.getTag(t); h.addClause(cl); if (tag == OboFormatTag.TAG_DATA_VERSION) { parseUnquotedString(cl); } else if (tag == OboFormatTag.TAG_FORMAT_VERSION) { parseUnquotedString(cl); } else if (tag == OboFormatTag.TAG_SYNONYMTYPEDEF) { parseSynonymTypedef(cl); } else if (tag == OboFormatTag.TAG_SUBSETDEF) { parseSubsetdef(cl); } else if (tag == OboFormatTag.TAG_DATE) { parseHeaderDate(cl); } else if (tag == OboFormatTag.TAG_PROPERTY_VALUE) { parsePropertyValue(cl); parseZeroOrMoreWs(); parseQualifierBlock(cl); parseHiddenComment(); } else if (tag == OboFormatTag.TAG_IMPORT) { parseImport(cl); } else if (tag == OboFormatTag.TAG_IDSPACE) { parseIdSpace(cl); } else { parseUnquotedString(cl); } }
protected void parseHeaderClause(Frame h) { String t = getParseTag(); Clause cl = new Clause(t); OboFormatTag tag = OBOFormatConstants.getTag(t); h.addClause(cl); if (tag == OboFormatTag.TAG_DATA_VERSION) { parseUnquotedString(cl); } else if (tag == OboFormatTag.TAG_FORMAT_VERSION) { parseUnquotedString(cl); } else if (tag == OboFormatTag.TAG_SYNONYMTYPEDEF) { parseSynonymTypedef(cl); } else if (tag == OboFormatTag.TAG_SUBSETDEF) { parseSubsetdef(cl); } else if (tag == OboFormatTag.TAG_DATE) { parseHeaderDate(cl); } else if (tag == OboFormatTag.TAG_PROPERTY_VALUE) { parsePropertyValue(cl); parseZeroOrMoreWs(); parseQualifierBlock(cl); parseHiddenComment(); } else if (tag == OboFormatTag.TAG_IMPORT) { parseImport(cl); } else if (tag == OboFormatTag.TAG_IDSPACE) { parseIdSpace(cl); } else { parseUnquotedString(cl); } }
protected void parseHeaderClause(Frame h) { String t = getParseTag(); Clause cl = new Clause(t); OboFormatTag tag = OBOFormatConstants.getTag(t); h.addClause(cl); if (tag == OboFormatTag.TAG_DATA_VERSION) { parseUnquotedString(cl); } else if (tag == OboFormatTag.TAG_FORMAT_VERSION) { parseUnquotedString(cl); } else if (tag == OboFormatTag.TAG_SYNONYMTYPEDEF) { parseSynonymTypedef(cl); } else if (tag == OboFormatTag.TAG_SUBSETDEF) { parseSubsetdef(cl); } else if (tag == OboFormatTag.TAG_DATE) { parseHeaderDate(cl); } else if (tag == OboFormatTag.TAG_PROPERTY_VALUE) { parsePropertyValue(cl); parseZeroOrMoreWs(); parseQualifierBlock(cl); parseHiddenComment(); } else if (tag == OboFormatTag.TAG_IMPORT) { parseImport(cl); } else if (tag == OboFormatTag.TAG_IDSPACE) { parseIdSpace(cl); } else { parseUnquotedString(cl); } }
protected void parseHeaderClause(Frame h) { String t = getParseTag(); Clause cl = new Clause(t); OboFormatTag tag = OBOFormatConstants.getTag(t); h.addClause(cl); if (tag == OboFormatTag.TAG_DATA_VERSION) { parseUnquotedString(cl); } else if (tag == OboFormatTag.TAG_FORMAT_VERSION) { parseUnquotedString(cl); } else if (tag == OboFormatTag.TAG_SYNONYMTYPEDEF) { parseSynonymTypedef(cl); } else if (tag == OboFormatTag.TAG_SUBSETDEF) { parseSubsetdef(cl); } else if (tag == OboFormatTag.TAG_DATE) { parseHeaderDate(cl); } else if (tag == OboFormatTag.TAG_PROPERTY_VALUE) { parsePropertyValue(cl); parseZeroOrMoreWs(); parseQualifierBlock(cl); parseHiddenComment(); } else if (tag == OboFormatTag.TAG_IMPORT) { parseImport(cl); } else if (tag == OboFormatTag.TAG_IDSPACE) { parseIdSpace(cl); } else { parseUnquotedString(cl); } }
protected void parseHeaderClause(Frame h) throws OBOFormatParserException { String t = getParseTag(); if (t == null) { error("Could not extract tag from line.");
String t = getParseTag(); Clause cl = new Clause(t); if (parseDeprecatedSynonym(t, cl)) {
String t = getParseTag(); if ("is_metadata".equals(t)) { LOG.info("is_metadata DEPRECATED; switching to is_metadata_tag");
String t = getParseTag(); if ("is_metadata".equals(t)) { LOG.info("is_metadata DEPRECATED; switching to is_metadata_tag");
String t = getParseTag(); if ("is_metadata".equals(t)) { LOG.info("is_metadata DEPRECATED; switching to is_metadata_tag");
String t = getParseTag(); if ("is_metadata".equals(t)) { LOG.info("is_metadata DEPRECATED; switching to is_metadata_tag");
String t = getParseTag(); Clause cl = new Clause(t); if (parseDeprecatedSynonym(t, cl)) {
String t = getParseTag(); Clause cl = new Clause(t); if (parseDeprecatedSynonym(t, cl)) {
String t = getParseTag(); Clause cl = new Clause(t); if (parseDeprecatedSynonym(t, cl)) {
public void parseTypedefFrameClause(Clause cl) throws OBOFormatParserException { String t = getParseTag(); if (t == null) { error("Could not find tag in clause.");
public void parseTermFrameClause(Clause cl) throws OBOFormatParserException { String t = getParseTag(); if (t == null) { error("Could not find tag in clause.");