use of org.jooq.impl.QOM.DocumentOrContent in project jOOQ by jOOQ.
the class DefaultParseContext method parseFieldXMLParseIf.
private final Field<?> parseFieldXMLParseIf() {
if (parseFunctionNameIf("XMLPARSE")) {
parse('(');
DocumentOrContent documentOrContent;
if (parseKeywordIf("DOCUMENT"))
documentOrContent = DocumentOrContent.DOCUMENT;
else if (parseKeywordIf("CONTENT"))
documentOrContent = DocumentOrContent.CONTENT;
else
throw expected("CONTENT", "DOCUMENT");
Field<String> xml = (Field<String>) parseField();
parse(')');
return documentOrContent == DocumentOrContent.DOCUMENT ? xmlparseDocument(xml) : xmlparseContent(xml);
}
return null;
}
Aggregations