public static boolean hasIdentity(CvObject cvObject, String psiMi) { return XrefUtils.hasIdentity(cvObject, psiMi); }
public static boolean hasIdentity(CvObject cvObject, String psiMi) { if (cvObject.getIdentifier() != null && cvObject.getIdentifier().equals(psiMi)) { return true; } return XrefUtils.hasIdentity(cvObject, psiMi); }
public static boolean hasIdentity(CvObject cvObject, String psiMi) { if (cvObject.getIdentifier() != null && cvObject.getIdentifier().equals(psiMi)) { return true; } return XrefUtils.hasIdentity(cvObject, psiMi); }
public static <X extends Xref> boolean hasIdentity(AnnotatedObject<X, ?> annotatedObject, String psiMi) { if (annotatedObject == null) { throw new NullPointerException("annotatedObject should not be null"); } if (psiMi == null) { throw new NullPointerException("psiMi should not be null"); } Collection<X> annotatedObjectXrefs = annotatedObject.getXrefs(); for (X xref : annotatedObjectXrefs) { if (psiMi.equals(xref.getPrimaryId())) { if (CvXrefQualifier.IDENTITY_MI_REF.equals(psiMi)) { return true; } if (xref.getCvXrefQualifier() != null && hasIdentity(xref.getCvXrefQualifier(), CvXrefQualifier.IDENTITY_MI_REF)) { return true; } } } return false; }
public static <X extends Xref> boolean hasIdentity(AnnotatedObject<X, ?> annotatedObject, String psiMi) { if (annotatedObject == null) { throw new NullPointerException("annotatedObject should not be null"); } if (psiMi == null) { throw new NullPointerException("psiMi should not be null"); } Collection<X> annotatedObjectXrefs = annotatedObject.getXrefs(); for (X xref : annotatedObjectXrefs) { if (psiMi.equals(xref.getPrimaryId())) { if (CvXrefQualifier.IDENTITY_MI_REF.equals(psiMi)) { return true; } if (xref.getCvXrefQualifier() != null && hasIdentity(xref.getCvXrefQualifier(), CvXrefQualifier.IDENTITY_MI_REF)) { return true; } } } return false; }
public static <X extends Xref> boolean hasIdentity(AnnotatedObject<X,?> annotatedObject, String psiMi) { if (annotatedObject == null) { throw new NullPointerException("annotatedObject should not be null"); } if (psiMi == null) { throw new NullPointerException("psiMi should not be null"); } Collection<X> annotatedObjectXrefs = annotatedObject.getXrefs(); for (X xref : annotatedObjectXrefs) { if (psiMi.equals(xref.getPrimaryId())) { if (CvXrefQualifier.IDENTITY_MI_REF.equals(psiMi)) { return true; } if (xref.getCvXrefQualifier() != null && hasIdentity(xref.getCvXrefQualifier(), CvXrefQualifier.IDENTITY_MI_REF)) { return true; } } } return false; } }
if (hasIdentity(xref.getCvDatabase(), CvDatabase.PSI_MI_MI_REF)) { if (xref.getCvXrefQualifier() != null && hasIdentity(xref.getCvXrefQualifier(), CvXrefQualifier.IDENTITY_MI_REF)) {