/** * Generated a negative flag if there is one specified annotation in the Interaction or one of its Experiment. * * @param session the user session. * @param parent the parent to which we attach the attributeList, and then the attribute. * @param interaction the interaction from which we will get the dissociation constant. * * @return the created flag. May be null. * * @see uk.ac.ebi.intact.model.Annotation * @see uk.ac.ebi.intact.model.Interaction * @see uk.ac.ebi.intact.model.Experiment */ public Element createNegativeFlag( UserSessionDownload session, Element parent, Interaction interaction ) { // TODO test it Element element = null; if ( isNegative( interaction ) ) { element = session.createElement( "negative" ); Text negativeText = session.createTextNode( "true" ); // add the text to the node element.appendChild( negativeText ); // add the node to the parent parent.appendChild( element ); } return element; }
/** * Generated a negative flag if there is one specified annotation in the Interaction or one of its Experiment. * * @param session the user session. * @param parent the parent to which we attach the attributeList, and then the attribute. * @param interaction the interaction from which we will get the dissociation constant. * * @return the created flag. May be null. * * @see uk.ac.ebi.intact.model.Annotation * @see uk.ac.ebi.intact.model.Interaction * @see uk.ac.ebi.intact.model.Experiment */ public Element createNegativeFlag( UserSessionDownload session, Element parent, Interaction interaction ) { // TODO test it Element element = null; if ( isNegative( interaction ) ) { element = session.createElement( "negative" ); Text negativeText = session.createTextNode( "true" ); // add the text to the node element.appendChild( negativeText ); // add the node to the parent parent.appendChild( element ); } return element; }
/** * Generated a negative flag if there is one specified annotation in the Interaction or one of its Experiment. * * @param session the user session. * @param parent the parent to which we attach the attributeList, and then the attribute. * @param interaction the interaction from which we will get the dissociation constant. * * @return the created flag. May be null. * * @see uk.ac.ebi.intact.model.Annotation * @see uk.ac.ebi.intact.model.Interaction * @see uk.ac.ebi.intact.model.Experiment */ public Element createNegativeFlag( UserSessionDownload session, Element parent, Interaction interaction ) { // TODO test it Element element = null; if ( isNegative( interaction ) ) { element = session.createElement( "negative" ); Text negativeText = session.createTextNode( "true" ); // add the text to the node element.appendChild( negativeText ); // add the node to the parent parent.appendChild( element ); } return element; }