public static InteractorType createInteractorType(String mi, String name) { InteractorType intType = createCvType(InteractorType.class, name); intType.setXref(createXrefPsiMi(mi)); return intType; }
public static <C extends CvType> C createCvType(Class<C> cvTypeClass, String miRef, String label) { C cv = createCvType(cvTypeClass, label); cv.setXref(createXrefPsiMi(miRef)); return cv; }
public static Source createSource(String name, String description, String sourcePublicationId, String miId) { Source source = new Source(); Names names = createNames(name, description); source.setNames(names); if (miId != null) { Xref miRef = createXrefPsiMi(miId); source.setXref(miRef); } if (sourcePublicationId != null) { source.setBibref(createBibrefPubmed(sourcePublicationId)); } return source; }