/** * Process a <cellType> in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi * <code>primaryRef</code>, and look-up in intact using its <code>id</code>. * * @param element <cellType>. * * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor. * * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag */ public static ConfidenceTag process( final Element element ) { if ( false == "confidence".equals( element.getNodeName() ) ) { MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) ); } String unit = element.getAttribute( "unit" ); String value = element.getAttribute( "value" ); ConfidenceTag confidenceTag = null; try { confidenceTag = new ConfidenceTag( unit, value ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) ); } return confidenceTag; } }
/** * Process a <cellType> in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi * <code>primaryRef</code>, and look-up in intact using its <code>id</code>. * * @param element <cellType>. * * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor. * * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag */ public static ConfidenceTag process( final Element element ) { if ( false == "confidence".equals( element.getNodeName() ) ) { MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) ); } String unit = element.getAttribute( "unit" ); String value = element.getAttribute( "value" ); ConfidenceTag confidenceTag = null; try { confidenceTag = new ConfidenceTag( unit, value ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) ); } return confidenceTag; } }
/** * Process a <cellType> in an organism. <br> In order to map it to the IntAct data, we look for the psi-mi * <code>primaryRef</code>, and look-up in intact using its <code>id</code>. * * @param element <cellType>. * * @return a <code>CellTypeTag</code> if the XML contains a walid psi-mi descriptor. * * @see uk.ac.ebi.intact.application.dataConversion.psiUpload.model.CellTypeTag */ public static ConfidenceTag process( final Element element ) { if ( false == "confidence".equals( element.getNodeName() ) ) { MessageHolder.getInstance().addParserMessage( new Message( element, "ERROR - We should be in confidence tag." ) ); } String unit = element.getAttribute( "unit" ); String value = element.getAttribute( "value" ); ConfidenceTag confidenceTag = null; try { confidenceTag = new ConfidenceTag( unit, value ); } catch ( IllegalArgumentException e ) { MessageHolder.getInstance().addParserMessage( new Message( element, e.getMessage() ) ); } return confidenceTag; } }
if ( confidenceElement != null ) { confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ), confidenceElement.getAttribute( "value" ) );
if ( confidenceElement != null ) { confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ), confidenceElement.getAttribute( "value" ) );
if ( confidenceElement != null ) { confidence = new ConfidenceTag( confidenceElement.getAttribute( "unit" ), confidenceElement.getAttribute( "value" ) );