本文整理了Java中pl.edu.icm.model.transformers.bwmeta.y.YToBwmeta2_0Transformer.write()
方法的一些代码示例,展示了YToBwmeta2_0Transformer.write()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YToBwmeta2_0Transformer.write()
方法的具体详情如下:
包路径:pl.edu.icm.model.transformers.bwmeta.y.YToBwmeta2_0Transformer
类名称:YToBwmeta2_0Transformer
方法名:write
暂无
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
/**
* Converts YElement to BwMeta stored as a string.
*
* @param yelement
* @return
* @throws TransformationException
*/
private static String yElementToBwMetaString(YElement yelement)
throws TransformationException {
YToBwmeta2_0Transformer transformer = new YToBwmeta2_0Transformer();
List<YExportable> yelements = new LinkedList<YExportable>();
yelements.add(yelement);
String bwmetaStr = transformer.write(yelements);
return bwmetaStr;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
/**
* Takes zbl record and returns full bwMeta code.
*
* @param r
* @return
* @throws TransformationException
*/
public static String zblRecordToBwMetaConvert(ZentralBlattRecord r) throws TransformationException {
zblToYConverter.convert(r);
List<YExportable> lst = new ArrayList<YExportable>();
lst.add(zblToYConverter.getArticle());
lst.add(zblToYConverter.getIssue());
lst.add(zblToYConverter.getVolume());
lst.add(zblToYConverter.getYear());
lst.add(zblToYConverter.getJournal());
YToBwmeta2_0Transformer t = new YToBwmeta2_0Transformer();
String bwMetaTxt = t.write(lst);
bwMetaTxt = bwMetaTxt + "\n<!--\n" + r.toString() + "\n//-->\n";
return bwMetaTxt;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
bwmetaStr = transformer.write(yelements);
return bwmetaStr;
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
/**
* Converts YElement to BwMeta stored as a string.
*
* @param yelement
* @return
* @throws TransformationException
*/
private static String yElementToBwMetaString(YElement yelement) throws TransformationException{
YToBwmeta2_0Transformer transformer = new YToBwmeta2_0Transformer();
List<YExportable> yelements = new LinkedList<YExportable>();
yelement = correctNamesByScRemoval(yelement);
yelement = correctDescriptionsByScRemoval(yelement);
yelement = correctContentByPhantomRemoval(yelement);
yelement = putNameLeafsIntoNodes(yelement);
yelement = putNameNodesIntoLeafs(yelement);
yelement = putRelationReferenceToLeafsIntoNodes(yelement);
yelements.add(yelement);
String bwmetaStr = null;
bwmetaStr = transformer.write(yelements);
return bwmetaStr;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
lst.add(converter.getJournal());
YToBwmeta2_0Transformer t = new YToBwmeta2_0Transformer();
System.out.println(t.write(lst));
} catch (TransformationException e) {
e.printStackTrace();
内容来源于网络,如有侵权,请联系作者删除!