- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YStructure
类的一些代码示例,展示了YStructure
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YStructure
类的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YStructure
类名称:YStructure
暂无
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
protected YStructure buildStructureFromParent(YElement parent, String hierarchy, String currentLevel) {
YStructure structure = new YStructure(hierarchy);
YCurrent current = new YCurrent(currentLevel);
structure.setCurrent(current);
if (parent != null) {
YStructure parentStructure = parent.getStructure(hierarchy);
structure.getAncestors().addAll(parentStructure.getAncestors());
YAncestor ancestor = new YAncestor(parentStructure.getCurrent().getLevel(), parent.getId());
ancestor.getNames().addAll(parent.getNames());
ancestor.getIds().addAll(parent.getIds());
structure.addAncestor(ancestor);
}
return structure;
}
代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services
private boolean isYearInYear(YElement element) {
YStructure structure = element.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL);
if (structure != null) {
if (HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR.equals(structure.getCurrent().getLevel())) {
YAncestor ancestor = structure.getAncestor(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
return ancestor != null;
}
}
return false;
}
代码示例来源:origin: pl.edu.icm.ceon/ceon-converters-commons
protected boolean isMediaLeaf(YExportable entity) {
if (entity instanceof YElement) {
YStructure structure = null;
for (YStructure s : ((YElement) entity).getStructures()) {
if (contentHierarchies.contains(s.getHierarchy())) {
structure = s;
}
}
if (structure != null && structure.getCurrent() != null) {
String level = structure.getCurrent().getLevel();
return YConstants.EXT_LEVEL_BOOK_BOOK.equals(level);
}
}
return false;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
public void addEmptyStructureToYElement(YElement yelement) {
YStructure articleStructure = new YStructure();
// TODO // czy nie trzeba wiecej nic ustawiac?
articleStructure.setHierarchy(YConstants.EXT_HIERARCHY_JOURNAL);
yelement.addStructure(articleStructure);
}
代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api
@Override
public String fetchCurrentStructureLevel(YElement yElement) {
for (YStructure structure : yElement.getStructures()) {
if (structure.getCurrent() != null) {
return structure.getCurrent().getLevel();
}
}
return null;
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
YStructure structure = new YStructure();
structure.setHierarchy(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL);
YCurrent current = new YCurrent();
current.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
structure.setCurrent(current);
journalAncestor.setIdentity(journal.getId());
journalAncestor.addName(journal.getDefaultName());
structure.addAncestor(journalAncestor);
代码示例来源: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-importer-direct
@Override
public YStructure build(PublicationMeta meta, List<YElement> ancestors) {
if (isAlreadyBuilt(meta, ancestors)) {
return null;
}
YStructure structure = new YStructure(getSupportedHierarchyId());
YElement directAncestor = null;
if (!ancestors.isEmpty()) {
directAncestor = ancestors.get(ancestors.size() - 1);
YStructure parentStructure = directAncestor.getStructure(getSupportedHierarchyId());
structure.getAncestors().addAll(parentStructure.getAncestors());
YAncestor ancestor = new YAncestor(structure.getHierarchy());
ancestor.setLevel(getLevel(directAncestor));
AncestorsManagement.copyDataToAncestor(directAncestor, ancestor);
structure.getAncestors().add(ancestor);
}
structure.setCurrent(getCurrent(meta, directAncestor));
return structure;
}
代码示例来源:origin: pl.edu.icm.synat/synat-importer-yadda
yElement.addContent(viedoContnentUrl);
YCurrent currentLevel = new YCurrent().setLevel(VideoConstants.VIDEO_CURRENT_LEVEL);
yElement.addStructure(new YStructure().setHierarchy(HierarchyWithLevelIds.EXT_HIERARCHY_PUBLICATION).setCurrent(currentLevel));
NativeDocument nativeDocument = documentFactory.createDocument(recordId.getUid());
Document document = documentFactory.getDocument(nativeDocument, yElement);
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
public static YStructure getOrCreateJournalStructure(YElement element) {
YStructure structure = element.getStructure(YConstants.EXT_HIERARCHY_JOURNAL);
if (structure == null) {
structure = new YStructure(YConstants.EXT_HIERARCHY_JOURNAL);
structure.setCurrent(new YCurrent(YConstants.EXT_LEVEL_JOURNAL_ARTICLE));
element.addStructure(structure);
}
return structure;
}
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
private YAncestor getAncestor(YElement element, String hierarchy, String level) {
YStructure structure = element.getStructure(hierarchy);
if(structure == null){
return null;
}
YAncestor ancestor = structure.getAncestor(level);
return ancestor;
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
@Override
public YElement process(Book book, YElement parent, CrossrefIdGenerator generator) {
BookSeriesMetadata bookSeriesMetadata = book.getBookSeriesMetadata();
String id = generator.generateBookVolumeId(parent.getId(), bookSeriesMetadata.getVolume());
YElement element = new YElement();
element.setId(id);
element.addName(new YName(bookSeriesMetadata.getVolume()));
YStructure structure = new YStructure(HierarchyWithLevelIds.EXT_HIERARCHY_BOOK);
YCurrent current = new YCurrent(HierarchyWithLevelIds.EXT_LEVEL_BOOK_VOLUME);
structure.setCurrent(current);
structure.getAncestors().addAll(parent.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_BOOK).getAncestors());
element.addStructure(structure);
return element;
}
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
private YElement buildElement(HierarchyLevel hierarchyLevel, String elementLevel, String parentId,
String parentLevel, String parentName) {
final String elementId = hierarchyLevel.getId();
final String name = hierarchyLevel.getName();
YElement element = new YElement(elementId);
element.setNames(Lists.newArrayList(new YName(name)));
final YStructure yStructure = new YStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL);
yStructure.setCurrent(new YCurrent(elementLevel));
final YAncestor parent = new YAncestor(parentLevel, parentId);
parent.addName(new YName(parentName));
yStructure.addAncestor(parent);
element.setStructures(Lists.newArrayList(yStructure));
return element;
}
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
for (YExportable yExportable : el) {
YElement yElement = (YElement) yExportable;
YCurrent current = yElement.getStructure(EXT_HIERARCHY_JOURNAL).getCurrent();
if (current.getLevel().equals(EXT_LEVEL_JOURNAL_JOURNAL)) {
yJournal = yElement;
yJournal.getStructure(EXT_HIERARCHY_JOURNAL).setAncestors(null);
yVolume.getStructure(EXT_HIERARCHY_JOURNAL).setAncestors(al);
yIssue.getStructure(EXT_HIERARCHY_JOURNAL).setAncestors(al);
yArticle.getStructure(EXT_HIERARCHY_JOURNAL).setAncestors(al);
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
private void appendStructure(ResourceData resource, YElement yElement) {
final String hierarchy = ResourceDataConstants.MAP_TYPE_TO_HIERARCHY.get(resource.getType());
final String current = ResourceDataConstants.MAP_TYPE_TO_CURRENT.get(resource.getType());
YStructure structure = new YStructure(hierarchy);
final AncestorData pages = extractAncestorFromHierarchyData(resource, ResourceDataConstants.ANCESTOR_LEVEL_NAME_PAGES);
final String position = pages == null ? StringUtils.EMPTY : StringUtils.defaultString(pages.getName());
structure.setCurrent(new YCurrent(current).setPosition(position));
final Collection<YAncestor> ancestors = mapHierarchyToAncestors(resource.getType(), resource.getHierarchy());
if (CollectionUtils.isNotEmpty(ancestors)) {
structure.setAncestors(ancestors);
}
yElement.addStructure(structure);
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
private YAncestor getFirstNotVisitedAncestor(YStructure structure, Set<String> visitedElements) {
final List<YAncestor> ancestors = structure.getAncestors();
for (int ancestorIndex = ancestors.size() - 1; ancestorIndex >= 0; ancestorIndex--) {
final YAncestor currentAncestor = ancestors.get(ancestorIndex);
if (!visitedElements.contains(currentAncestor.getIdentity())) {
return currentAncestor;
}
}
return null;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
private void updateJournalCurrentLevel() {
YStructure struct = yJournal.getStructure(YConstants.EXT_HIERARCHY_JOURNAL);
struct.setCurrent(new YCurrent(YConstants.EXT_LEVEL_JOURNAL_JOURNAL));
}
代码示例来源: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/yadda-analysis-impl
String hierarchy = ystruct.getHierarchy();
actStructMap.put(hierarchy, ystruct);
String hierarchy = expYStruct.getHierarchy();
for (YAncestor actAnc : actYStruct.getAncestors()) {
String level = actAnc.getLevel();
actAncMap.put(level, actAnc);
for (YAncestor expAnc : expYStruct.getAncestors()) {
String level = expAnc.getLevel();
if (actAncMap.containsKey(level)) {
for (YAncestor yanc : expYStruct.getAncestors()) {
String level = yanc.getLevel();
result.append(level, ResultStatus.FAILED, 1);
for (YAncestor yanc : actStructMap.get(hierarchy).getAncestors()) {
String level = yanc.getLevel();
result.append(level, ResultStatus.REDUNDANT, 1);
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
private YStructure createJournalStructWithAncestors(ArticleEditForm form, List<YStructure> journalStructs) {
YStructure journal;
YAncestor existingIssue = null;
if(journalStructs.size() == 0) {
journal = new YStructure(YConstants.EXT_HIERARCHY_JOURNAL);
} else {
journal = journalStructs.get(0);
existingIssue = setNonIssueAncestorsAndGetExisitingIssue(form.getIssueId(), journal);
}
addIssue(journal, existingIssue, form.getIssueId());
return journal;
}
PL/1 中有许多不同的数字数据类型。我想知道什么时候有整数除法,什么地方没有。暂时,我写了一个小例子来说明(至少对我而言)PL/1 非常纠结于其中: DCL BIN15 FIXED BIN(15)
我是 Prolog 的新手。我有两个文件。其中之一是“names.pl”,另一个是“verbs.pl”。这两个文件都有事实。 “names.pl”有关于很多名词等的事实。事实的名字是关系。 这些文件的
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 3 年前。
我正在处理一个存储的 PL/SQL 函数,该函数根据给定的员工编号查找员工的家属姓名。到目前为止,我能够获得所需的输出,但在输出期间似乎有逗号问题。对于如何在输出过程中删除最后一个括号,我们将不胜
我观察到有两种执行 perl 程序的方法: perl test.pl 和 ./test.pl 这两者之间的确切区别是什么,哪一个值得推荐? 最佳答案 我将稍微改写其他答案所说的内容。 第一种情况将运行
我有一个表 TDATAMAP,其中包含大约 1000 万条记录,我想将所有记录提取到 PL/SQL 表类型变量中,将其与某些条件进行匹配,最后将所有必需的记录插入临时表中。请告诉我是否可以使用 PL/
一切都在标题中。 我在游标上循环并想要 EXIT WHEN curs%NOTFOUND 当没有更多行时,PostgreSQL 下的 %NOTFOUND 等同于什么? 编辑 或其他游标属性 %ISOPE
CREATE FUNCTION foo() RETURNS text LANGUAGE plperl AS $$ return 'foo'; $$; CREATE FU
我正在使用 ack.pl 工具来搜索文件中的字符串或 IP ack.pl 的官方网站是 - http://beyondgrep.com/documentation/ ack.pl CLI 示例(想在/
代码 #!/usr/bin/perl -I/root/Lib/ use Data::Dumper; print Dumper \@INC; 以上代码文件名为test.pl,权限为755。 当我使用/u
编写一个 PL/SQL 过程,将员工编号和薪水作为输入参数,并从经理为 'BLAKE' 且薪水在 1000 到 2000 之间的员工表中删除。 我写了下面的代码:- create or replac
我需要对更新行进行一些审核。 所以我有一个函数,它接收 some_table%ROWTYPE 类型的参数,其中包含要为该行保存的新值。 我还需要在历史表中保存一些有关更改的列值的信息。我正在考虑从 a
如果我在 PL/SQL 存储过程中使用许多 CLOB 变量来存储许多长字符串,是否存在性能问题? CLOB 的长度也是可变的吗? CLOB 代替使用 varchar2 和 long 是否有任何已知的限
我想使用 JavaScript/Apex 创建一个按钮,这样当我点击它时,就会“调用”一个 PL-SQL 过程。与常规 html 按钮类似,但 onClick="JavaScript function
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
今天的好时间,想问问有没有人知道在IBM Bluemix 云上安装PostgreSQL 扩展(准确的说是pl/r 和pl/python)的方法是什么?我在那里运行 compose-postgresql
是否可以像普通 Python 函数一样从其他 PL/Python block 调用 PL/Python 函数。 例如,我有一个函数f1: create or replace function f1()
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
我正在使用返回 REF CURSOR 的 Java 在 PL/SQL 中调用存储函数: FUNCTION getApprovers RETURN approvers_cursor IS app
通过终端修改Webmin密码时 Can't locate ./acl/md5-lib.pl at /usr/share/webmin/changepass.pl 使用 Ubuntu 20 最佳答案 U
我是一名优秀的程序员,十分优秀!