本文整理汇总了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);
}
示例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"));
}
示例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;
}
示例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;
}