当前位置: 首页>>代码示例>>Java>>正文


Java WSPathwayHistory类代码示例

本文整理汇总了Java中org.pathvisio.wikipathways.webservice.WSPathwayHistory的典型用法代码示例。如果您正苦于以下问题:Java WSPathwayHistory类的具体用法?Java WSPathwayHistory怎么用?Java WSPathwayHistory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


WSPathwayHistory类属于org.pathvisio.wikipathways.webservice包,在下文中一共展示了WSPathwayHistory类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: parsePathwayHistory

import org.pathvisio.wikipathways.webservice.WSPathwayHistory; //导入依赖的package包/类
public static WSPathwayHistory parsePathwayHistory(Element hist) {
	String id = hist.getChildText("id", WSNamespaces.NS2);
	String url = hist.getChildText("url", WSNamespaces.NS2);
	String name = hist.getChildText("name", WSNamespaces.NS2);
	String species = hist.getChildText("species", WSNamespaces.NS2);
	String revision = hist.getChildText("revision", WSNamespaces.NS2);
	
	List<Element> list = hist.getChildren("history", WSNamespaces.NS2);
	WSHistoryRow[] histRows = new WSHistoryRow[list.size()];
	for (int i = 0; i < list.size(); i++) {
		histRows[i] = Utils.parseHistoryRow(list.get(i));
	}
	
	return new WSPathwayHistory(histRows, id, url, name, species, revision);
}
 
开发者ID:wikipathways,项目名称:wikipathways-api-client-java,代码行数:16,代码来源:Utils.java

示例2: test

import org.pathvisio.wikipathways.webservice.WSPathwayHistory; //导入依赖的package包/类
@Test
public void test() throws RemoteException {
	String id = "WP4";
	Calendar c = Calendar.getInstance();
	c.set(2011, 1, 1, 0, 0, 0);
	
	WSPathwayHistory hist = client.getPathwayHistory(id, c.getTime());
	assertTrue(hist.getHistory(0).getRevision().equals("40411"));
}
 
开发者ID:wikipathways,项目名称:wikipathways-api-client-java,代码行数:10,代码来源:TestGetPathwayHistory.java

示例3: getPathwayHistory

import org.pathvisio.wikipathways.webservice.WSPathwayHistory; //导入依赖的package包/类
/**
 * returns the history of a specified pathway
 */
public WSPathwayHistory getPathwayHistory(String id, Date start) throws RemoteException {
	String timestamp = dateToTimestamp(start);
	WSPathwayHistory hist = port.getPathwayHistory(id, timestamp);
	return hist;
}
 
开发者ID:wikipathways,项目名称:wikipathways-api-client-java,代码行数:9,代码来源:WikiPathwaysClient.java

示例4: getPathwayHistory

import org.pathvisio.wikipathways.webservice.WSPathwayHistory; //导入依赖的package包/类
public WSPathwayHistory getPathwayHistory(String id, Date start) throws RemoteException {
	String timestamp = dateToTimestamp(start);
	WSPathwayHistory hist = port.getPathwayHistory(id, timestamp);
	return hist;
}
 
开发者ID:wikipathways,项目名称:org.wikipathways.client,代码行数:6,代码来源:WikiPathwaysClient.java


注:本文中的org.pathvisio.wikipathways.webservice.WSPathwayHistory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。