Tabnine Logo
Interaction2xmlCommons.isNegative
Code IndexAdd Tabnine to your IDE (free)

How to use
isNegative
method
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.Interaction2xmlCommons

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.Interaction2xmlCommons.isNegative (Showing top 3 results out of 315)

origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * 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;
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * 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;
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * 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;
}
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGeneratorInteraction2xmlCommonsisNegative

Javadoc

Answers the question: is that AnnotatedObject (Interaction, Experiment) annotated as negative ?

Popular methods of Interaction2xmlCommons

  • createDissociationConstant
    Generated a dissociation constant in the attributeList only if there is one specified in the Interac
  • createInteractionXrefs
    Generate the xref tag of the given protein. That content is attached to the given parent Element.
  • createNegativeFlag
    Generated a negative flag if there is one specified annotation in the Interaction or one of its Expe
  • getInstance

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JOptionPane (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now