本文整理了Java中org.intermine.metadata.Model.getTopDownLevelTraversal()
方法的一些代码示例,展示了Model.getTopDownLevelTraversal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.getTopDownLevelTraversal()
方法的具体详情如下:
包路径:org.intermine.metadata.Model
类名称:Model
方法名:getTopDownLevelTraversal
[英]Return the classes in the model in level order from shallowest to deepest, the order of nodes at any given level is undefined. The list does not include InterMineObject.
[中]以从浅到深的级别顺序返回模型中的类,任何给定级别的节点顺序都是未定义的。该列表不包括InterminoObject。
代码示例来源:origin: org.intermine/intermine-model
/**
* Return the classes in the model in level order from deepest to shallowest, the order of nodes
* at any given level is undefined. The list does not include InterMineObject.
* @return ClassDescriptors from the model in reverse depth order
*/
public synchronized List<ClassDescriptor> getBottomUpLevelTraversal() {
if (bottomUpOrderClasses == null) {
bottomUpOrderClasses = new ArrayList<ClassDescriptor>();
List<ClassDescriptor> topDown = getTopDownLevelTraversal();
// Just reverse the top down traversal
for (int i = topDown.size() - 1; i >= 0; i--) {
bottomUpOrderClasses.add(topDown.get(i));
}
}
return bottomUpOrderClasses;
}
代码示例来源:origin: intermine/intermine
/**
* Return the classes in the model in level order from deepest to shallowest, the order of nodes
* at any given level is undefined. The list does not include InterMineObject.
* @return ClassDescriptors from the model in reverse depth order
*/
public synchronized List<ClassDescriptor> getBottomUpLevelTraversal() {
if (bottomUpOrderClasses == null) {
bottomUpOrderClasses = new ArrayList<ClassDescriptor>();
List<ClassDescriptor> topDown = getTopDownLevelTraversal();
// Just reverse the top down traversal
for (int i = topDown.size() - 1; i >= 0; i--) {
bottomUpOrderClasses.add(topDown.get(i));
}
}
return bottomUpOrderClasses;
}
代码示例来源:origin: intermine/intermine
if (!CLASS_KEYS.containsKey(model)) {
ClassKeys theseKeys = new ClassKeysImpl();
for (ClassDescriptor cld : model.getTopDownLevelTraversal()) {
String clsName = cld.getUnqualifiedName();
if (props.containsKey(cld.getUnqualifiedName())) {
代码示例来源:origin: org.intermine/intermine-api
if (!CLASS_KEYS.containsKey(model)) {
ClassKeys theseKeys = new ClassKeysImpl();
for (ClassDescriptor cld : model.getTopDownLevelTraversal()) {
String clsName = cld.getUnqualifiedName();
if (props.containsKey(cld.getUnqualifiedName())) {
代码示例来源:origin: intermine/intermine
public void testGetTopDownTraversalSimpleObjects() throws Exception {
Model simpleObjectModel = getSimpleObjectModel();
List<ClassDescriptor> expected = new ArrayList<ClassDescriptor>();
expected.add(simpleObjectModel.getClassDescriptorByName("Simple"));
expected.add(simpleObjectModel.getClassDescriptorByName("org.intermine.model.InterMineObject"));
expected.add(simpleObjectModel.getClassDescriptorByName("A"));
expected.add(simpleObjectModel.getClassDescriptorByName("B"));
assertEquals(expected, simpleObjectModel.getTopDownLevelTraversal());
}
代码示例来源:origin: intermine/intermine
for (ClassDescriptor cld : model.getTopDownLevelTraversal()) {
nonEmptyFieldsMap.put(cld.getName(), new HashSet<String>());
countAndStore(os, model, cld);
代码示例来源:origin: org.intermine/intermine-objectstore
for (ClassDescriptor cld : model.getTopDownLevelTraversal()) {
nonEmptyFieldsMap.put(cld.getName(), new HashSet<String>());
countAndStore(os, model, cld);
代码示例来源:origin: intermine/intermine
List<ClassDescriptor> actual = smallModel.getTopDownLevelTraversal();
内容来源于网络,如有侵权,请联系作者删除!