/** * 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; }
XrefTag xref = XrefParser.processPrimaryRef( xrefElement ); if ( db.equalsIgnoreCase( xref.getDb() ) ) { interactionXref = xref;
XrefTag xref = XrefParser.processPrimaryRef( xrefElement ); if ( db.equalsIgnoreCase( xref.getDb() ) ) { interactionXref = xref;
XrefTag xref = XrefParser.processPrimaryRef( xrefElement ); if ( db.equalsIgnoreCase( xref.getDb() ) ) { interactionXref = xref;
XrefTag typeXref = XrefParser.processPrimaryRef( typeXrefElement ); featureType = new FeatureTypeTag( typeXref ); if ( detectionElement != null ) { Element detectionXrefElement = DOMUtil.getFirstElement( detectionElement, "xref" ); XrefTag detectionXref = XrefParser.processPrimaryRef( detectionXrefElement );
XrefTag typeXref = XrefParser.processPrimaryRef( typeXrefElement ); featureType = new FeatureTypeTag( typeXref ); if ( detectionElement != null ) { Element detectionXrefElement = DOMUtil.getFirstElement( detectionElement, "xref" ); XrefTag detectionXref = XrefParser.processPrimaryRef( detectionXrefElement );
XrefTag typeXref = XrefParser.processPrimaryRef( typeXrefElement ); featureType = new FeatureTypeTag( typeXref ); if ( detectionElement != null ) { Element detectionXrefElement = DOMUtil.getFirstElement( detectionElement, "xref" ); XrefTag detectionXref = XrefParser.processPrimaryRef( detectionXrefElement );
if ( bibref != null ) { final Element bibXrefElement = DOMUtil.getFirstElement( bibref, "xref" ); bibXref = XrefParser.processPrimaryRef( bibXrefElement ); secondaryBibXrefs = XrefParser.processSecondaryRef( bibXrefElement ); Collection xrefs = null; if ( xrefElement != null ) { primaryXref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement );
if ( bibref != null ) { final Element bibXrefElement = DOMUtil.getFirstElement( bibref, "xref" ); bibXref = XrefParser.processPrimaryRef( bibXrefElement ); secondaryBibXrefs = XrefParser.processSecondaryRef( bibXrefElement ); Collection xrefs = null; if ( xrefElement != null ) { primaryXref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement );
if ( bibref != null ) { final Element bibXrefElement = DOMUtil.getFirstElement( bibref, "xref" ); bibXref = XrefParser.processPrimaryRef( bibXrefElement ); secondaryBibXrefs = XrefParser.processSecondaryRef( bibXrefElement ); Collection xrefs = null; if ( xrefElement != null ) { primaryXref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement );
Collection secondaryXrefs = null; if( xrefElement != null ) { xref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement ); } else {
Collection secondaryXrefs = null; if( xrefElement != null ) { xref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement ); } else {
Collection secondaryXrefs = null; if( xrefElement != null ) { xref = XrefParser.processPrimaryRef( xrefElement ); secondaryXrefs = XrefParser.processSecondaryRef( xrefElement ); } else {