- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YStructure.setCurrent()
方法的一些代码示例,展示了YStructure.setCurrent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YStructure.setCurrent()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YStructure
类名称:YStructure
方法名:setCurrent
暂无
代码示例来源: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/bwmeta-import
private void updateYearCurrentLevel() {
YStructure struct = yYear.getStructure(YConstants.EXT_HIERARCHY_JOURNAL);
struct.setCurrent(new YCurrent(YConstants.EXT_LEVEL_JOURNAL_YEAR));
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
private void updateVolumeCurrentLevel() {
YStructure struct = yVolume.getStructure(YConstants.EXT_HIERARCHY_JOURNAL);
struct.setCurrent(new YCurrent(YConstants.EXT_LEVEL_JOURNAL_VOLUME));
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
private void updateIssueCurrentLevel() {
YStructure struct = yIssue.getStructure(YConstants.EXT_HIERARCHY_JOURNAL);
struct.setCurrent(new YCurrent(YConstants.EXT_LEVEL_JOURNAL_ISSUE));
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
private void updateArticleCurrentLevel(ZentralBlattSoFieldParser.SoFieldData soData) {
YStructure articleStructure = yArticle.getStructure(YConstants.EXT_HIERARCHY_JOURNAL);
YCurrent current = new YCurrent(YConstants.EXT_LEVEL_JOURNAL_ARTICLE);
if (soData.pages != null && soData.pages.length() > 0) {
current.setPosition(soData.pages);
}
articleStructure.setCurrent(current);
}
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
private void addCurrent(YStructure journal, ArticleEditForm form) {
YCurrent yCurrent = new YCurrent(YConstants.EXT_LEVEL_JOURNAL_ARTICLE);
yCurrent.setPosition(form.getPages());
journal.setCurrent(yCurrent);
}
代码示例来源: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.bwmeta/bwmeta-2-foreign-transformers
el.addName(new YName(title));
YStructure struct = new YStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL).setCurrent(new YCurrent(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL));
el.addStructure(struct);
list.add(el);
代码示例来源: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.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.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.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.synat/synat-business-services-api
protected void updateYElement(final DataSet dataSet, final YElement yElement) {
YStructure yStructure = new YStructure(DATA_SET_YSTRUCTURE);
YCurrent yCurrent = new YCurrent(DATA_SET_YLEVEL);
yStructure.setCurrent(yCurrent);
Collection<YStructure> structures = Collections.singletonList(yStructure);
yElement.setStructures(structures);
if (StringUtils.isNotBlank(dataSet.getId())) {
yElement.setId(DATA_SET_YELEMENT_ID_PREFIX + dataSet.getId());
}
if (StringUtils.isNotBlank(dataSet.getName())) {
yElement.setNames(Collections.singletonList(new YName(dataSet.getName())));
}
if (StringUtils.isNotBlank(dataSet.getDescription())) {
yElement.setDescriptions(Collections.singletonList(new YDescription(YLanguage.Undetermined, dataSet.getDescription())));
}
if (dataSet.getDefaultLicense() != null) {
YTagList tagList = new YTagList();
tagList.setType(YModelUtils.LICENSE);
tagList.addValue(dataSet.getDefaultLicense().getId());
yElement.addTagList(tagList);
}
}
代码示例来源: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.bwmeta/bwmeta-2-foreign-transformers
/**
* Creates an element in the hierarchy.
*
* @param level hierarchy for the element
* @param level level for the element in the hierarchy
* @param name name to use as the canonical name of the element
* @param parent parent for the element in the hierarchy
* @param id eudml id
* @return the created element
*/
public YElement element(String hierarchy, String level, YName name, YElement parent, String id) {
YStructure ps = parent==null ? null : parent.getStructure(hierarchy);
YStructure struct = new YStructure(hierarchy).setCurrent(new YCurrent(level));
List<String> issns = parent==null ? null : parent.getIds(IdSchemaIds.EXT_SCHEME_ISSN);
String issn = (issns==null || issns.isEmpty()) ? null : issns.get(0);
if (ps != null) {
YAncestor ancestor = new YAncestor(ps.getCurrent().getLevel(), parent.getId()).addName(parent.getDefaultName());
if (StringUtils.isNotEmpty(issn)) {
ancestor.addId(new YId(IdSchemaIds.EXT_SCHEME_ISSN, issn));
}
struct.setAncestors(ps.getAncestors()).addAncestor(ancestor);
}
return new YElement(id).addName(name).addStructure(struct);
}
代码示例来源: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.synat/synat-importer-speech-to-text
private void prepareYElementFromApi(Video video, YElement yElement) throws ParseException {
yElement.addName(new YName(video.getSnippet().getTitle()));
yElement.addDescription(new YDescription(YLanguage.Undetermined, video.getSnippet().getDescription()
, DescriptionTypes.DS_SUMMARY));
prepareDate(video, yElement);
String license = video.getStatus().getLicense();
if(null != license && license.contains("creativeCommon")) {
yElement.addTagList(new YTagList().setType(YModelUtils.LICENSE).addValue("cc0"));
}
prepareContent(video, yElement);
List<String> tags = video.getSnippet().getTags();
if (CollectionUtils.isNotEmpty(tags)) {
yElement.addTagList(new YTagList().setType(TagTypes.TG_KEYWORD).setValues(tags));
}
YCurrent currentLevel = new YCurrent().setLevel(VideoConstants.VIDEO_CURRENT_LEVEL);
yElement.addStructure(new YStructure()
.setHierarchy(HierarchyWithLevelIds.EXT_HIERARCHY_PUBLICATION)
.setCurrent(currentLevel));
prepareAttributes(video, yElement);
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
/**
* Creates an element in the hierarchy specified by the <code>hierarchy</code> property.
*
* @param level level for the element in the hierarchy
* @param name name to use as the canonical name of the element
* @param parent parent for the element in the hierarchy
* @return the created element
*/
public YElement element(String level, YName name, YElement parent) {
YStructure ps = parent.getStructure(getHierarchy());
YStructure struct = new YStructure(getHierarchy()).setCurrent(new YCurrent(level));
if (ps != null)
struct
.setAncestors(ps.getAncestors())
.addAncestor(
new YAncestor(ps.getCurrent().getLevel(), parent.getId())
.addName(parent.getDefaultName()));
return new YElement(
generateId(EXT_PREFIX_ELEMENT, parent, name))
.addName(name)
.addStructure(struct);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
YCurrent current = new YCurrent();
current.setLevel(HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_YEAR);
structure.setCurrent(current);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
structure.setCurrent(current);
本文整理了Java中pl.edu.icm.yadda.service2.YaddaError类的一些代码示例,展示了YaddaError类的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中pl.edu.icm.yadda.common.YaddaException类的一些代码示例,展示了YaddaException类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中pl.edu.icm.ceon.commons.YaddaCollectionsUtils类的一些代码示例,展示了YaddaCollectionsUtils类的具体用法。这些代码示
本文整理了Java中pl.edu.icm.model.bwmeta.YElement类的一些代码示例,展示了YElement类的具体用法。这些代码示例主要来源于Github/Stackoverflow
本文整理了Java中pl.edu.icm.model.bwmeta.YContributor类的一些代码示例,展示了YContributor类的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentFile类的一些代码示例,展示了YContentFile类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YDescription类的一些代码示例,展示了YDescription类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YCurrent类的一些代码示例,展示了YCurrent类的具体用法。这些代码示例主要来源于Github/Stackoverfl
本文整理了Java中pl.edu.icm.model.bwmeta.y.YName类的一些代码示例,展示了YName类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Mav
本文整理了Java中pl.edu.icm.model.bwmeta.y.YStructure类的一些代码示例,展示了YStructure类的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中pl.edu.icm.model.bwmeta.y.YElement类的一些代码示例,展示了YElement类的具体用法。这些代码示例主要来源于Github/Stackoverfl
本文整理了Java中pl.edu.icm.model.bwmeta.y.YCategoryRef类的一些代码示例,展示了YCategoryRef类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentDirectory类的一些代码示例,展示了YContentDirectory类的具体用法。这些代码示例主要来源于
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentEntry类的一些代码示例,展示了YContentEntry类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中pl.edu.icm.model.bwmeta.y.YId类的一些代码示例,展示了YId类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平
本文整理了Java中pl.edu.icm.model.bwmeta.y.YRelation类的一些代码示例,展示了YRelation类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor类的一些代码示例,展示了YAncestor类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAffiliation类的一些代码示例,展示了YAffiliation类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YDate类的一些代码示例,展示了YDate类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Mav
本文整理了Java中pl.edu.icm.model.bwmeta.y.YLanguage类的一些代码示例,展示了YLanguage类的具体用法。这些代码示例主要来源于Github/Stackover
我是一名优秀的程序员,十分优秀!