/** * Collect all primary and secondary Xrefs. * <p/> * <pre> * <xref> * <primaryRef db="Swiss-Prot" id="P10912"/> * <p/> * <secondaryRef db="Swiss-Prot" id="P11111"/> * <secondaryRef db="Swiss-Prot" id="P22222"/> * <secondaryRef db="Swiss-Prot" id="P33333"/> * </xref> * </pre> * * @return an intact Xref collection. Empty collection if something goes wrong. */ public static Collection process( final Element root ) { Collection xrefs; xrefs = processSecondaryRef( root ); XrefTag xref = processPrimaryRef( root ); if ( xref != null ) { xrefs.add( xref ); } return xrefs; }
/** * Collect all primary and secondary Xrefs. * <p/> * <pre> * <xref> * <primaryRef db="Swiss-Prot" id="P10912"/> * <p/> * <secondaryRef db="Swiss-Prot" id="P11111"/> * <secondaryRef db="Swiss-Prot" id="P22222"/> * <secondaryRef db="Swiss-Prot" id="P33333"/> * </xref> * </pre> * * @return an intact Xref collection. Empty collection if something goes wrong. */ public static Collection process( final Element root ) { Collection xrefs; xrefs = processSecondaryRef( root ); XrefTag xref = processPrimaryRef( root ); if ( xref != null ) { xrefs.add( xref ); } return xrefs; }
/** * Collect all primary and secondary Xrefs. * <p/> * <pre> * <xref> * <primaryRef db="Swiss-Prot" id="P10912"/> * <p/> * <secondaryRef db="Swiss-Prot" id="P11111"/> * <secondaryRef db="Swiss-Prot" id="P22222"/> * <secondaryRef db="Swiss-Prot" id="P33333"/> * </xref> * </pre> * * @return an intact Xref collection. Empty collection if something goes wrong. */ public static Collection process( final Element root ) { Collection xrefs; xrefs = processSecondaryRef( root ); XrefTag xref = processPrimaryRef( root ); if ( xref != null ) { xrefs.add( xref ); } return xrefs; }
interactionXref = xref; } else { final Collection interactionDetectionXrefs = XrefParser.processSecondaryRef( xrefElement ); for ( Iterator iterator = interactionDetectionXrefs.iterator(); iterator.hasNext(); ) { xref = (XrefTag) iterator.next();
interactionXref = xref; } else { final Collection interactionDetectionXrefs = XrefParser.processSecondaryRef( xrefElement ); for ( Iterator iterator = interactionDetectionXrefs.iterator(); iterator.hasNext(); ) { xref = (XrefTag) iterator.next();
interactionXref = xref; } else { final Collection interactionDetectionXrefs = XrefParser.processSecondaryRef( xrefElement ); for ( Iterator iterator = interactionDetectionXrefs.iterator(); iterator.hasNext(); ) { xref = (XrefTag) iterator.next();
final Element bibXrefElement = DOMUtil.getFirstElement( bibref, "xref" ); bibXref = XrefParser.processPrimaryRef( bibXrefElement ); secondaryBibXrefs = XrefParser.processSecondaryRef( bibXrefElement ); if ( xrefElement != null ) { primaryXref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement );
final Element bibXrefElement = DOMUtil.getFirstElement( bibref, "xref" ); bibXref = XrefParser.processPrimaryRef( bibXrefElement ); secondaryBibXrefs = XrefParser.processSecondaryRef( bibXrefElement ); if ( xrefElement != null ) { primaryXref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement );
final Element bibXrefElement = DOMUtil.getFirstElement( bibref, "xref" ); bibXref = XrefParser.processPrimaryRef( bibXrefElement ); secondaryBibXrefs = XrefParser.processSecondaryRef( bibXrefElement ); if ( xrefElement != null ) { primaryXref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement );
if( xrefElement != null ) { xref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement ); } else {
if( xrefElement != null ) { xref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement ); } else {
if( xrefElement != null ) { xref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement ); } else {