本文整理了Java中net.sourceforge.ondex.core.DataSource.getFullname()
方法的一些代码示例,展示了DataSource.getFullname()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataSource.getFullname()
方法的具体详情如下:
包路径:net.sourceforge.ondex.core.DataSource
类名称:DataSource
方法名:getFullname
暂无
代码示例来源:origin: net.sourceforge.ondex.modules/json
/**
* Generate metadata for Data Source.
* @param ds
* A Data Source (from the Ondex API).
* @return JSONObject
* JSONObject containing information about the Data Source.
*/
private JSONObject buildDataSource(DataSource ds) {
JSONObject dsJson= new JSONObject();
dsJson.put(JSONAttributeNames.ID, ds.getId());
dsJson.put(JSONAttributeNames.FULLNAME, ds.getFullname());
dsJson.put(JSONAttributeNames.DESCRIPTION, ds.getDescription());
return dsJson;
}
代码示例来源:origin: net.sourceforge.ondex.modules/cyjs_json
/**
* Generate metadata for Data Source.
* @param ds
* A Data Source (from the Ondex API).
* @return String
* String containing full name or id.
*/
private String/*JSONObject*/ buildDataSource(DataSource ds) {
String elementOf;
/* JSONObject dsJson= new JSONObject();
dsJson.put(JSONAttributeNames.ID, ds.getId());
dsJson.put(JSONAttributeNames.FULLNAME, ds.getFullname());
dsJson.put(JSONAttributeNames.DESCRIPTION, ds.getDescription());
*/
if(ds.getId().equals("")) {
elementOf= ds.getFullname();
}
else {
elementOf= ds.getId();
}
return elementOf/*dsJson*/;
}
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
/**
* Returns a JLabel for the data source
*/
@Override
public Object getElementAt(int index) {
JLabel label = null;
if (index > -1) {
DataSource dataSource = dataSources.get(index);
String name = dataSource.getFullname();
if (name.trim().length() == 0)
name = dataSource.getId();
label = new JLabel(name);
label.setName(dataSource.getId());
label.setToolTipText("(" + dataSource.getId() + ") " + dataSource.getDescription());
}
return label;
}
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
/**
* Constructs user input to add a DataSource.
*
* @param aog
* AbstractONDEXGraph to add to
* @param dataSource
* DataSource to use
*/
public DialogDataSource(ONDEXGraph aog, DataSource dataSource) {
super("Dialog.DataSource.Title", "Properties16.gif");
this.aog = aog;
// set existing information
id.setText(dataSource.getId());
fullname.setText(dataSource.getFullname());
description.setText(dataSource.getDescription());
// set everything to disabled
id.setEditable(false);
fullname.setEditable(false);
description.setEnabled(false);
this.getContentPane().setLayout(new BorderLayout());
this.getContentPane().add(makeProperties(), BorderLayout.CENTER);
this.getContentPane().add(makeButtonsPanel(null, "Dialog.DataSource.Cancel"), BorderLayout.SOUTH);
this.pack();
}
代码示例来源:origin: net.sourceforge.ondex.modules/generic
public void start() {
ONDEXGraphMetaData metadata = graph.getMetaData();
for (ConceptClass cc : metadata.getConceptClasses()) {
System.out.println("ConceptClass " + cc.getId() + " " + cc.getFullname());
System.out.println("\tConcepts = " + graph.getConceptsOfConceptClass(cc).size());
}
for (DataSource dataSource : metadata.getDataSources()) {
System.out.println("DataSource " + dataSource.getId() + " " + dataSource.getFullname());
System.out.println("\tConcepts = " + graph.getConceptsOfDataSource(dataSource).size());
}
for (AttributeName att : metadata.getAttributeNames()) {
System.out.println("AttributeName " + att.getId() + " " + att.getFullname());
System.out.println("\tConcepts = " + graph.getConceptsOfAttributeName(att).size());
System.out.println("\tRelations = " + graph.getRelationsOfAttributeName(att).size());
}
for (RelationType rt : metadata.getRelationTypes()) {
System.out.println("RelationType " + rt.getId() + " " + rt.getFullname());
System.out.println("\tRelations = " + graph.getRelationsOfRelationType(rt).size());
}
}
代码示例来源:origin: net.sourceforge.ondex.modules/interaction
etName = et.getId();
String dsName = ds.getFullname();
if (dsName == null || dsName.length() == 0)
dsName = ds.getId();
代码示例来源:origin: net.sourceforge.ondex.modules/oxl
/**
* Writes DataSource content in a xml stream writer.
*
* @param xmlw
* xml stream to write in
* @param dataSource
* DataSource object
* @throws XMLStreamException
* if xml writing fails
*/
private void buildDataSourceContent(XMLStreamWriter2 xmlw,
DataSource dataSource, RefOrVal rov) throws XMLStreamException {
switch (rov) {
case REF:
buildIdRef(xmlw, dataSource);
break;
case VAL:
xmlw.writeStartElement(XMLTagNames.ID);
xmlw.writeCharacters(dataSource.getId());
xmlw.writeEndElement();
xmlw.writeStartElement(XMLTagNames.FULLNAME);
xmlw.writeCharacters(dataSource.getFullname());
xmlw.writeEndElement();
xmlw.writeStartElement(XMLTagNames.DESCRIPTION);
xmlw.writeCharacters(dataSource.getDescription());
xmlw.writeEndElement();
}
}
代码示例来源:origin: net.sourceforge.ondex.core/tools
if (!nomd.checkDataSource(dataSource.getId()))
nomd
.createDataSource(dataSource.getId(), dataSource.getFullname(), dataSource
.getDescription());
内容来源于网络,如有侵权,请联系作者删除!