use of org.jooq.XMLAttributes in project jOOQ by jOOQ.
the class DefaultParseContext method parseFieldXMLElementIf.
private final Field<?> parseFieldXMLElementIf() {
if (parseFunctionNameIf("XMLELEMENT")) {
parse('(');
parseKeywordIf("NAME");
if (parseIf(')'))
return xmlelement(systemName("NAME"));
Name name = parseIdentifier();
XMLAttributes attr = null;
List<Field<?>> content = new ArrayList<>();
while (parseIf(',')) {
if (attr == null && parseKeywordIf("XMLATTRIBUTES")) {
parse('(');
List<Field<?>> attrs = parseAliasedXMLContent();
parse(')');
attr = xmlattributes(attrs);
} else
content.add(parseField());
}
parse(')');
return attr == null ? xmlelement(name, content) : xmlelement(name, attr, content);
}
return null;
}
Aggregations