本文整理了Java中pl.edu.icm.model.bwmeta.y.YElement.getOneName()
方法的一些代码示例,展示了YElement.getOneName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YElement.getOneName()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YElement
类名称:YElement
方法名:getOneName
暂无
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
public String extractName(YElement yElement) {
return yElement.getOneName().getText();
}
代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services
private String fetchTitle(YElement element) {
return element.getOneName().getText();
}
代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services
public void readYElement(String resourceId) {
DocumentRepository repository = DefaultDocumentRepositoryBuilder.buildRepository(store);
Document doc = (Document) repository.fetchDocument(resourceId);
YExportable metadata = doc.getMetadata();
YElement element = (YElement) metadata;
System.out.println(element.getOneName().getText());
}
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
YElement element = loadElementFromYaddaCatalog(id);
if (ancestor.getLevelExtid().equals("bwmeta1.level.hierarchy_Journal_Year")) {
year = element.getOneName().getText();
} else if (ancestor.getLevelExtid().equals("bwmeta1.level.hierarchy_Journal_Volume")) {
volume = element.getOneName().getText();
} else if (ancestor.getLevelExtid().equals("bwmeta1.level.hierarchy_Journal_Number")) {
issue = element.getOneName().getText();
} else if (ancestor.getLevelExtid().equals("bwmeta1.level.hierarchy_Journal_Journal")) {
journal = element.getOneName().getText();
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
element.getId(), element.getOneName());
ancestorList.add(0, parentAncestor);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
@Override
public YElement process(Book book, YElement parent, CrossrefIdGenerator generator) {
ContentItem contentItem = book.getContentItem();
YElement element = new YElement();
element.getNames().addAll(convertTitles(contentItem.getTitles()));
element.getRelations().addAll(convertCitationList(contentItem.getCitationList()));
element.getContributors().addAll(convert(contentItem.getContributors(), element));
element.getDates().addAll(convertDates(contentItem.getPublicationDates()));
String level = getContentItemLevel(contentItem.getComponentType());
YStructure structure = buildStructureFromParent(parent, HierarchyWithLevelIds.EXT_HIERARCHY_BOOK, level);
if(contentItem.getLevelSequenceNumber() != null){
structure.getCurrent().setPosition(contentItem.getLevelSequenceNumber().toString());
} else {
updatePages(contentItem.getPages(), structure.getCurrent());
}
element.addStructure(structure);
if (contentItem.getDoiData() != null) {
element.getIds().add(new YId(IdSchemaIds.EXT_SCHEME_DOI, contentItem.getDoiData().getDoi()));
}
String id = generator.generateBookPartId(parent.getId(), contentItem.getComponentType(), element.getFirstIdOrNullIfAny(IdSchemaIds.EXT_SCHEME_DOI),
element.getOneName() != null ? element.getOneName().getText() : null);
element.setId(id);
return element;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
if(item.getOneName()!=null && item.getOneName().getText()!=null){
paos_doc.add(new PredicateAndObject(RelConstants.RL_TITLE, item.getOneName().getText()));
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
sendUpdateReport(saveOperation, ancestors, userDetails, articleYElement.getOneName().getText());
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
private YElement buildJournalElement(JournalMetadata journalMetadata, CrossrefIdGenerator generator) {
YElement element = new YElement();
YStructure structure = buildStructureFromParent(null, HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL, HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_JOURNAL);
element.addStructure(structure);
YLanguage language = YLanguage.byCode(journalMetadata.getLanguage());
element.getLanguages().add(language);
element.getIds().addAll(convertIssns(journalMetadata.getIssns()));
if (StringUtils.isNotBlank(journalMetadata.getCoden())) {
element.getIds().add(new YId(IdSchemaIds.EXT_SCHEME_CODEN, journalMetadata.getCoden()));
}
for (String fullTitle : journalMetadata.getFullTitles()) {
element.addName(new YName(fullTitle));
}
for (String abbrevTitle : journalMetadata.getAbbrevTitles()) {
YName abbrev = new YName(abbrevTitle);
abbrev.setType(NameTypes.NM_ABBREVIATION);
element.addName(abbrev);
}
if (journalMetadata.getDoiData() != null) {
String doi = journalMetadata.getDoiData().getDoi();
element.getIds().add(new YId(IdSchemaIds.EXT_SCHEME_DOI, doi));
}
String issn = element.getFirstIdOrNullIfAny(IdSchemaIds.EXT_SCHEME_ISSN);
String journalId = generator.generateJournalId(issn, element.getOneName().getText());
element.setId(journalId);
return element;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
final YName title = yElement.getOneName(YConstants.NM_CANONICAL);
if (title != null) {
docMetadata.setTitle(title.getText());
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
YName title = yElement.getOneName(YConstants.NM_CANONICAL);
if (title != null) {
docMetadata.setTitle(title.getText());
内容来源于网络,如有侵权,请联系作者删除!