本文整理了Java中uk.ac.ebi.intact.model.util.XrefUtils.createIdentityXrefPsiMi()
方法的一些代码示例,展示了XrefUtils.createIdentityXrefPsiMi()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XrefUtils.createIdentityXrefPsiMi()
方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.util.XrefUtils
类名称:XrefUtils
方法名:createIdentityXrefPsiMi
暂无
代码示例来源:origin: uk.ac.ebi.intact.dataexchange/intact-cvutils
protected CvObjectXref createIdentityXref( CvObject parent, String id ) {
CvObjectXref idXref = null;
if (id != null) {
if (id.startsWith("MI")) {
idXref = XrefUtils.createIdentityXrefPsiMi(parent, id);
idXref.prepareParentMi();
} else if (id.startsWith("IA")) {
idXref = XrefUtils.createIdentityXref(parent, id, nonMiCvDatabase);
} else if (id.startsWith("MOD")) {
idXref = XrefUtils.createIdentityXref(parent, id, psimod);
} else {
if (log.isWarnEnabled()) log.warn("Uknown prefix for id: "+id+". Will store as a cross reference to database: "+nonMiCvDatabase.getShortLabel());
idXref = XrefUtils.createIdentityXref(parent, id, nonMiCvDatabase);
}
}
return idXref;
}
代码示例来源:origin: uk.ac.ebi.intact/intact-core
public static <T extends CvObject> T createCvObject(Institution institution, Class<T> cvClass, String primaryId, String shortLabel) {
T cv = ClassUtils.newInstance(cvClass);
cv.setOwner(institution);
cv.setShortLabel(shortLabel);
CvObjectXref idXref = XrefUtils.createIdentityXrefPsiMi(cv, primaryId);
cv.addXref(idXref);
return cv;
}
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
public static <T extends CvObject> T createCvObject(Institution institution, Class<T> cvClass, String miIdentifier, String shortLabel) {
T cv = ClassUtils.newInstance(cvClass);
cv.setOwner(institution);
cv.setShortLabel(shortLabel);
cv.setIdentifier(miIdentifier);
if (miIdentifier != null) {
CvObjectXref idXref = XrefUtils.createIdentityXrefPsiMi(cv, miIdentifier);
cv.addXref(idXref);
idXref.prepareParentMi();
}
return cv;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
public static <T extends CvObject> T createCvObject(Institution institution, Class<T> cvClass, String miIdentifier, String shortLabel) {
T cv = ClassUtils.newInstance(cvClass);
cv.setOwner(institution);
cv.setShortLabel(shortLabel);
cv.setIdentifier(miIdentifier);
if (miIdentifier != null) {
CvObjectXref idXref = XrefUtils.createIdentityXrefPsiMi(cv, miIdentifier);
cv.addXref(idXref);
idXref.prepareParentMi();
}
return cv;
}
代码示例来源:origin: uk.ac.ebi.intact/intact-core
InstitutionXref xref = XrefUtils.createIdentityXrefPsiMi(institution, Institution.INTACT_REF);
institution.addXref(xref);
InstitutionXref xref = XrefUtils.createIdentityXrefPsiMi(institution, Institution.MINT_REF);
institution.addXref(xref);
内容来源于网络,如有侵权,请联系作者删除!