本文整理了Java中org.biomart.martservice.query.Query.getAttributes
方法的一些代码示例,展示了Query.getAttributes
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getAttributes
方法的具体详情如下:
包路径:org.biomart.martservice.query.Query
类名称:Query
方法名:getAttributes
暂无
代码示例来源:origin: net.sf.taverna.t2.activities/biomart-activity
private void buildOutputPorts(List<Edit<?>> editList) {
Map<String, OutputPort> newOutputMap = new HashMap<String, OutputPort>();
Query query = biomartQuery.getQuery();
List<Attribute> attributes = query.getAttributes();
String formatter = query.getFormatter();
if (formatter == null) {
代码示例来源:origin: net.sf.taverna.t2/biomart-activity
private void buildOutputPorts() {
Query query = biomartQuery.getQuery();
List<Attribute> attributes = query.getAttributes();
String formatter = query.getFormatter();
if (formatter == null) {
// Create new output ports corresponding to attributes
for (Attribute attribute : attributes) {
String name = attribute.getQualifiedName();
if (attribute.getAttributes() != null) {
addOutput(name, 2, STREAM_RESULTS?1:2);
} else {
addOutput(name, 1, STREAM_RESULTS?0:1);
}
}
} else if (attributes.size() > 0) {
// create one port using the dataset name
Attribute attribute = attributes.get(0);
String name = attribute.getContainingDataset().getName();
addOutput(name, 0, 0);
}
}
代码示例来源:origin: uk.org.mygrid.taverna.processors/taverna-biomart-processor
private void buildOutputPortsFromQuery() throws PortCreationException,
DuplicatePortNameException {
List<Attribute> attributes = query.getQuery().getAttributes();
Set<String> attributeNames = new HashSet<String>();
String formatter = query.getQuery().getFormatter();
代码示例来源:origin: net.sf.taverna.t2.activities/biomart-activity-ui
@Override
protected String getRawTableRowsHtml() {
MartQuery q = MartServiceXMLHandler.elementToMartQuery(getConfigBean(), null);
String html="<tr><td>URL</td><td>"+q.getMartService().getLocation()+"</td></tr>";
html+="<tr><td>Location</td><td>"+q.getMartDataset().getMartURLLocation().getDisplayName() + "</td></tr>";
boolean firstFilter=true;
for (Filter filter : q.getQuery().getFilters()) {
html+=firstFilter ? "<tr><td>Filter</td><td>" : "<tr><td></td></td>";
firstFilter=false;
html+=filter.getName()+"</td></tr>";
}
boolean firstAttribute=true;
for (Attribute attribute : q.getQuery().getAttributes()) {
html+=firstAttribute ? "<tr><td>Attribute</td><td>" : "<tr><td></td><td>";
firstAttribute=false;
html+=attribute.getName()+"</td></tr>";
}
html+="<tr><td>Dataset</td><td>"+q.getMartDataset().getDisplayName()+"</td></tr>";
return html;
}
代码示例来源:origin: net.sf.taverna.t2.ui-activities/biomart-activity-ui
@Override
protected String getRawTableRowsHtml() {
MartQuery q = MartServiceXMLHandler.elementToMartQuery(getConfigBean(), null);
String html="<tr><td>URL</td><td>"+q.getMartService().getLocation()+"</td></tr>";
html+="<tr><td>Location</td><td>"+q.getMartDataset().getMartURLLocation().getDisplayName() + "</td></tr>";
boolean firstFilter=true;
for (Filter filter : q.getQuery().getFilters()) {
html+=firstFilter ? "<tr><td>Filter</td><td>" : "<tr><td></td></td>";
firstFilter=false;
html+=filter.getName()+"</td></tr>";
}
boolean firstAttribute=true;
for (Attribute attribute : q.getQuery().getAttributes()) {
html+=firstAttribute ? "<tr><td>Attribute</td><td>" : "<tr><td></td><td>";
firstAttribute=false;
html+=attribute.getName()+"</td></tr>";
}
html+="<tr><td>Dataset</td><td>"+q.getMartDataset().getDisplayName()+"</td></tr>";
return html;
}
内容来源于网络,如有侵权,请联系作者删除!