- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getLevel()
方法的一些代码示例,展示了YAncestor.getLevel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAncestor.getLevel()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YAncestor
类名称:YAncestor
方法名:getLevel
暂无
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
private boolean notInLevelToSkip(final YAncestor ancestor) {
final String ancestorsLevel = ancestor.getLevel();
for (final String level : levelsToSkip) {
if (level.equals(ancestorsLevel)) {
return false;
}
}
return true;
}
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
public static Map<String, IdentifiersData> collectIdentifiers(YElement element) {
Map<String, IdentifiersData> data = new HashMap<>();
for (YStructure structure : element.getStructures()) {
for (YAncestor ancestor : structure.getAncestors()) {
if(SUPPORTRED_LEVELS.contains(ancestor.getLevel())){
data.putAll(collectObjectIdentifiers(ancestor, ancestor.getLevel()));
}
}
}
data.putAll(collectObjectIdentifiers(element, StringUtils.EMPTY));
return data;
}
代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services
private String findDoubledLevel(YElement element) {
YStructure structure = element.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL);
if (structure == null) {
return null;
}
List<YAncestor> ancestors = structure.getAncestors();
Set<String> existingLevels = new HashSet<String>();
for (YAncestor yAncestor : ancestors) {
String level = yAncestor.getLevel();
if (level != null) {
if (existingLevels.contains(level)) {
return level;
} else {
existingLevels.add(level);
}
}
}
return null;
}
代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api
private Map<String, YDate> extractDatesFromHierarchy(final List<YStructure> structures) {
Map<String, YDate> dates = new HashMap<>();
for (final YStructure structure : structures) {
for (final YAncestor ancestor : structure.getAncestors()) {
dates.putAll(processYDates(ancestor.getDates()));
if (HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR.equals(ancestor.getLevel())) {
dates.put("hierarchy", getDateFromYear(ancestor));
}
}
}
return dates;
}
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
private ListMultimap<String, YAncestor> getMappedAncestors(Collection<YAncestor> ancestors) {
ListMultimap<String, YAncestor> mappedAncestors = ListMultimapBuilder.hashKeys().arrayListValues().build();
for (YAncestor ancestor : ancestors) {
mappedAncestors.put(ancestor.getLevel(), ancestor);
}
return mappedAncestors;
}
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
private YAncestor setNonIssueAncestorsAndGetExisitingIssue(String issueId, YStructure journal) {
YAncestor existingIssue = null;
List<YAncestor> nonIssueAncestors = new ArrayList<>();
for(YAncestor ancestor : journal.getAncestors()) {
boolean isNotIssue = !ancestor.getLevel().equals(YConstants.EXT_LEVEL_JOURNAL_ISSUE);
boolean isCurrentIssue = ancestor.getIdentity().equals(issueId);
if(isNotIssue) {
nonIssueAncestors.add(ancestor);
} else if(isCurrentIssue) {
existingIssue = ancestor;
} else {
// ignore/remove non current issues
}
}
journal.setAncestors(nonIssueAncestors);
return existingIssue;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
private static void replaceJournalNameField(final YElement yElement, final String[] values) {
if (values != null && values.length > 0) {
}
final YStructure structure = yElement.getStructure(YConstants.EXT_HIERARCHY_JOURNAL);
if (structure != null) {
for (final YAncestor ancestor : structure.getAncestors()) {
final String level = ancestor.getLevel();
if (YConstants.EXT_LEVEL_JOURNAL_JOURNAL.equals(level)) {
final String firstJournalName = values[0];
ancestor.addName(new YName(null, firstJournalName, Y_TYPE_HIGHLIGHTED));
}
}
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
String level = actAnc.getLevel();
actAncMap.put(level, actAnc);
String level = expAnc.getLevel();
if (actAncMap.containsKey(level)) {
String level = yanc.getLevel();
result.append(level, ResultStatus.FAILED, 1);
String level = yanc.getLevel();
result.append(level, ResultStatus.REDUNDANT, 1);
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
private List<StructureData> prepareStructure(YElement yElement, String hierarchy, String[] levels, String... topLevelIds) {
List<String> topLevels = Arrays.asList(topLevelIds);
String topId = null;
String topLevelId = null;
List<StructureData> ancestors = new ArrayList<StructureData>();
final YStructure structure = yElement.getStructure(hierarchy);
if (structure != null) {
ListMultimap<String, YAncestor> mappedAncestors = getMappedAncestors(structure.getAncestors());
for (String level : levels) {
final YAncestor ancestor = getAncestor(mappedAncestors, level);
if (ancestor != null && ArrayUtils.contains(StructureData.LEVELS_ALLOWED, ancestor.getLevel())) {
if (topLevels.contains(ancestor.getLevel())) {
topId = ancestor.getIdentity();
topLevelId = ancestor.getLevel();
ancestors.add(new StructureData(ancestor.getIdentity(), YModelUtils.getDefaultName(ancestor), ancestor.getLevel(), topId, topLevelId));
} else {
ancestors.add(new StructureData(ancestor.getIdentity(), IndexUtils.encodeNameValue(YModelUtils.getDefaultName(ancestor)),
ancestor.getLevel(), topId, topLevelId));
}
}
}
if (StringUtils.isNotBlank(structure.getCurrent().getPosition())
&& ArrayUtils.contains(StructureData.ALLOWED_LEVELS_OF_CURRENT_POSITION, structure.getCurrent().getLevel())) {
ancestors.add(new StructureData(null, structure.getCurrent().getPosition()));
}
}
return ancestors;
}
代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services
if (HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_VOLUME.equals(yAncestor.getLevel())) {
if (firstVolume == null) {
firstVolume = yAncestor;
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
private Map<String, AncestorData> extractHierarchy(YElement yElement) {
Map<String, AncestorData> result = new HashMap<String, AncestorData>();
for (final String hierarhyId : YModelUtils.ALLOWED_HIERARCHY_ID) {
YStructure yStructure = yElement.getStructure(hierarhyId);
if (yStructure != null) {
for (YAncestor ancestor : yStructure.getAncestors()) {
if (ResourceDataConstants.MAP_ANCESTOR_TYPE_TO_LEVEL.containsValue(ancestor.getLevel())) {
final YName ancestorName = ancestor.getOneName();
if (ancestorName != null) {
result.put(ResourceDataConstants.MAP_ANCESTOR_TYPE_TO_LEVEL.inverse().get(ancestor.getLevel()),
new AncestorData().setId(ancestor.getIdentity()).setName(ancestorName.getText()));
}
}
}
YCurrent current = yStructure.getCurrent();
if(current!=null && StringUtils.isNotBlank(current.getPosition())){
result.put(ResourceDataConstants.ANCESTOR_LEVEL_NAME_PAGES, new AncestorData().setName(current.getPosition()));
}
}
}
return result;
}
代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services
if (levelToFix.equals(yAncestor.getLevel())) {
YElement ancElement = fetchElement(repository, yAncestor.getIdentity());
YStructure structure = ancElement.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL);
我刚刚编写了这些代码,但输出不同。第二个代码的输出符合我的预期,但第一个代码的输出不正确。但为什么呢? def fib(n): x = 0 y = 1 print x
#include #include #define CUBE(y)y*(y*y) main() { int j; j = CUBE(-2+4);
这个问题在这里已经有了答案: Multiple assignment and evaluation order in Python (11 个答案) 关闭 1 年前。 我看到下面的代码,但不知道它做
我正在阅读 book , 并讲了 typeclass Eq 的定义 有两个功能== , /=在等式中,它们被实现为: x == y = not (x /= y) x /= y = not (
我最近参加了一个代码力量竞赛。在比赛的编辑部分,我看到了按位运算符之间的一种美妙关系,即 x + y = x & y + x |是的我还不知道证据。我拿了几个数字来看看这个等式是否正确。我很高兴知道这
我使用 CGRectMake(x,x,x,x) 在我的 View 中放置了一个按钮,当然 x 是位置和大小。当我使用 -(BOOL)shouldAutoRotate... 旋转 View 时,我想将按
this.x = (Math.random()*canvasWidth); this.y = (Math.random()*canvasHeight); (1) this.shift = {x: th
我想将此代码运行为“if 'Britain' or 'UK' in string do stuff, but don't do stuff if "Ex UK" 在字符串中": #Case insen
早上好,我是新来的,我带来了一个小问题。我无法针对以下问题开发有效的算法:我需要找到三个正数 x、y 和 z 的组合,以便 x + y、x - y、y + z、y - z、x + z 和 x - z
我现在正在使用 C++ 编写方案的解释器。我有一个关于定义和 lambda 的问题。 (define (add x y) (+ x y)) 扩展为 (define add (lambda (x y)
我正在尝试使用一台主机通过 FTP 将内容上传到另一台主机。 “我不会打开到 172.xxx.xxx.xxx(仅到 54.xxx.xxx.xxx)的连接”甚至不相关,因为我没有连接到那个主持人。这是托
在 Python 中,使用 [] 解包函数调用有什么区别? , 与 ()还是一无所有? def f(): return 0, 1 a, b = f() # 1 [a, b] = f() # 2
给定方程 z = z(x,y) 2 个表面 I和 II : z_I(x, y) = a0 + a1*y + a2*x + a3*y**2 + a4*x**2 + a5*x*y z_II(x, y)
几年前我有这个面试问题,但我还没有找到答案。 x 和 y 应该是什么才能形成无限循环? while (x = y && x != y) { } 我们尝试了 Nan,infinity+/-,null f
我正在尝试使用 Camel FTP Producer 将文件发送到第三方 ftp 服务器(似乎由 Amazon 托管),但遇到了一个问题,写入文件失败,并显示:文件操作失败...主机尝试数据连接 x.
关闭。这个问题需要details or clarity .它目前不接受答案。 想改进这个问题吗? 通过 editing this post 添加细节并澄清问题. 关闭 8 年前。 Improve t
我正在使用 torch.tensor.repeat() x = torch.tensor([[1, 2, 3], [4, 5, 6]]) period = x.size(1) repeats = [1
#include int main() { int x = 9; int y = 2; int z = x - (x / y) * y; printf("%d", z
我很难理解先有定义然后有两个异或表达式的含义。这个定义的作用是什么? 我尝试发送 x=8, y=7,结果是 x=15 和 y=8为什么会这样? 这是程序: #define FUNC(a,b) a^=b
我正在尝试使用 SIMD 优化此功能,但我不知道从哪里开始。 long sum(int x,int y) { return x*x*x+y*y*y; } 反汇编函数如下所示: 4007a0
我是一名优秀的程序员,十分优秀!