table.child(tr(th("Description:"),td(toBRL(info.getDescription())))); table.child(tr(th("Version:"),td(info.getVersion()))); t2.child(tr(th("Name:"),td(c.getName()))); if (c.hasUrl()) t2.child(tr(th("URL:"),td(a(c.getUrl(), c.getUrl())))); if (c.hasEmail()) t2.child(tr(th("Email:"),td(a("mailto:"+ c.getEmail(), c.getEmail())))); table.child(tr(th("Contact:"),td(t2))); if (l != null) { Object child = l.hasUrl() ? a(l.getUrl(), l.hasName() ? l.getName() : l.getUrl()) : l.getName(); table.child(tr(th("License:"),td(child))); if (ed != null) { Object child = ed.hasUrl() ? a(ed.getUrl(), ed.hasDescription() ? ed.getDescription() : ed.getUrl()) : ed.getDescription(); table.child(tr(th("Docs:"),td(child))); String tos = info.getTermsOfService(); Object child = StringUtils.isUri(tos) ? a(tos, tos) : tos; table.child(tr(th("Terms of Service:"),td(child)));
table.child(tr(th("Description:"),td(toBRL(info.getDescription())))); table.child(tr(th("Version:"),td(info.getVersion()))); t2.child(tr(th("Name:"),td(c.getName()))); if (c.hasUrl()) t2.child(tr(th("URL:"),td(a(c.getUrl(), c.getUrl())))); if (c.hasEmail()) t2.child(tr(th("Email:"),td(a("mailto:"+ c.getEmail(), c.getEmail())))); table.child(tr(th("Contact:"),td(t2))); if (l != null) { Object child = l.hasUrl() ? a(l.getUrl(), l.hasName() ? l.getName() : l.getUrl()) : l.getName(); table.child(tr(th("License:"),td(child))); if (ed != null) { Object child = ed.hasUrl() ? a(ed.getUrl(), ed.hasDescription() ? ed.getDescription() : ed.getUrl()) : ed.getDescription(); table.child(tr(th("Docs:"),td(child))); String tos = info.getTermsOfService(); Object child = StringUtils.isUri(tos) ? a(tos, tos) : tos; table.child(tr(th("Terms of Service:"),td(child)));
t.child(tr(td("No arguments").colspan(3).style("text-align:center"))); } else { t.child(tr(th("Index"),th("Type"),th("Value"))); for (int i = 0; i < types.length; i++) { String type = ClassUtils.toString(types[i]); t.child(tr(td(i), td(type), td(input().name(String.valueOf(i)).type("text")))); t.child( tr( td().colspan(3).style("text-align:right").children(
private Div headers(Session s, ResponseInfo ri) { if (! ri.hasHeaders()) return null; Table sectionTable = table(tr(th("Name"),th("Description"),th("Schema")))._class("section-table"); Div headers = div( div("Headers:")._class("section-name"), sectionTable )._class("headers"); for (Map.Entry<String,HeaderInfo> e : ri.getHeaders().entrySet()) { String name = e.getKey(); HeaderInfo hi = e.getValue(); sectionTable.child( tr( td(name)._class("name"), td(toBRL(hi.getDescription()))._class("description"), td(hi.asMap().keepAll("type","format","items","collectionFormat","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf")) ) ); } return headers; }
t.child(tr(td("No arguments").colspan(3).style("text-align:center"))); } else { t.child(tr(th("Index"),th("Type"),th("Value"))); for (int i = 0; i < types.length; i++) { String type = ClassUtils.toString(types[i]); t.child(tr(td(i), td(type), td(input().name(String.valueOf(i)).type("text")))); t.child( tr( td().colspan(3).style("text-align:right").children(
t.child(tr(td("No arguments").colspan(3).style("text-align:center"))); } else { t.child(tr(th("Index"),th("Type"),th("Value"))); for (int i = 0; i < types.length; i++) { String type = ClassUtils.toString(types[i]); t.child(tr(td(i), td(type), td(input().name(String.valueOf(i)).type("text")))); t.child( tr( td().colspan(3).style("text-align:right").children(
private Div headers(Session s, ResponseInfo ri) { if (! ri.hasHeaders()) return null; Table sectionTable = table(tr(th("Name"),th("Description"),th("Schema")))._class("section-table"); Div headers = div( div("Headers:")._class("section-name"), sectionTable )._class("headers"); for (Map.Entry<String,HeaderInfo> e : ri.getHeaders().entrySet()) { String name = e.getKey(); HeaderInfo hi = e.getValue(); sectionTable.child( tr( td(name)._class("name"), td(toBRL(hi.getDescription()))._class("description"), td(hi.asMap().keepAll("type","format","items","collectionFormat","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf")) ) ); } return headers; }
table.child(tr(th("Description:"),td(toBRL(info.getDescription())))); table.child(tr(th("Version:"),td(info.getVersion()))); t2.child(tr(th("Name:"),td(c.getName()))); if (c.hasUrl()) t2.child(tr(th("URL:"),td(a(c.getUrl(), c.getUrl())))); if (c.hasEmail()) t2.child(tr(th("Email:"),td(a("mailto:"+ c.getEmail(), c.getEmail())))); table.child(tr(th("Contact:"),td(t2))); if (l != null) { Object child = l.hasUrl() ? a(l.getUrl(), l.hasName() ? l.getName() : l.getUrl()) : l.getName(); table.child(tr(th("License:"),td(child))); if (ed != null) { Object child = ed.hasUrl() ? a(ed.getUrl(), ed.hasDescription() ? ed.getDescription() : ed.getUrl()) : ed.getDescription(); table.child(tr(th("Docs:"),td(child))); String tos = info.getTermsOfService(); Object child = StringUtils.isUri(tos) ? a(tos, tos) : tos; table.child(tr(th("Terms of Service:"),td(child)));
private Div headers(Session s, ResponseInfo ri) { if (! ri.hasHeaders()) return null; Table sectionTable = table(tr(th("Name"),th("Description"),th("Schema")))._class("section-table"); Div headers = div( div("Headers:")._class("section-name"), sectionTable )._class("headers"); for (Map.Entry<String,HeaderInfo> e : ri.getHeaders().entrySet()) { String name = e.getKey(); HeaderInfo hi = e.getValue(); sectionTable.child( tr( td(name)._class("name"), td(toBRL(hi.getDescription()))._class("description"), td(hi.asMap().keepAll("type","format","items","collectionFormat","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf")) ) ); } return headers; }