Tabnine Logo
Protein2xmlPSI2.getProteinId
Code IndexAdd Tabnine to your IDE (free)

How to use
getProteinId
method
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi2.Protein2xmlPSI2

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi2.Protein2xmlPSI2.getProteinId (Showing top 9 results out of 315)

origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Generates an proteinInteractorRef out of an IntAct Protein.
 *
 * @param session
 * @param parent  the Element to which we will add the proteinInteractorRef.
 * @param protein the IntAct Protein that we convert to PSI.
 *
 * @return the generated proteinInteractorRef Element.
 */
public Element createProteinInteracorReference( UserSessionDownload session, Element parent, Protein protein ) {
  // TODO test that.
  // 1. Checking...
  if ( session == null ) {
    throw new IllegalArgumentException( "You must give a non null UserSessionDownload." );
  }
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null parent to build an " + PROTEIN_INTERACTOR_REF_TAG_NAME + "." );
  }
  if ( protein == null ) {
    throw new IllegalArgumentException( "You must give a non null protein to build an " + PROTEIN_INTERACTOR_REF_TAG_NAME + "." );
  }
  // 2. Initialising the element...
  Element element = session.createElement( PROTEIN_INTERACTOR_REF_TAG_NAME );
  element.setAttribute( "ref", getProteinId( session, protein ) );
  // 3. Attaching the newly created element to the parent...
  parent.appendChild( element );
  return element;
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Generates an proteinInteractorRef out of an IntAct Protein.
 *
 * @param session
 * @param parent  the Element to which we will add the proteinInteractorRef.
 * @param protein the IntAct Protein that we convert to PSI.
 *
 * @return the generated proteinInteractorRef Element.
 */
public Element createProteinInteracorReference( UserSessionDownload session, Element parent, Protein protein ) {
  // TODO test that.
  // 1. Checking...
  if ( session == null ) {
    throw new IllegalArgumentException( "You must give a non null UserSessionDownload." );
  }
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null parent to build an " + PROTEIN_INTERACTOR_REF_TAG_NAME + "." );
  }
  if ( protein == null ) {
    throw new IllegalArgumentException( "You must give a non null protein to build an " + PROTEIN_INTERACTOR_REF_TAG_NAME + "." );
  }
  // 2. Initialising the element...
  Element element = session.createElement( PROTEIN_INTERACTOR_REF_TAG_NAME );
  element.setAttribute( "ref", getProteinId( session, protein ) );
  // 3. Attaching the newly created element to the parent...
  parent.appendChild( element );
  return element;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Generates an proteinParticipantRef out of an IntAct Protein.
 *
 * @param session
 * @param parent  the Element to which we will add the proteinParticipantRef.
 * @param protein the IntAct Protein that we convert to PSI.
 *
 * @return the generated proteinParticipantRef Element.
 */
public Element createParticipantReference( UserSessionDownload session, Element parent, Protein protein ) {
  // TODO test that.
  // 1. Checking...
  if ( session == null ) {
    throw new IllegalArgumentException( "You must give a non null UserSessionDownload." );
  }
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null parent to build an " + PROTEIN_PARTICIPANT_REF_TAG_NAME + "." );
  }
  if ( protein == null ) {
    throw new IllegalArgumentException( "You must give a non null protein to build an " + PROTEIN_PARTICIPANT_REF_TAG_NAME + "." );
  }
  // 2. Initialising the element...
  Element element = session.createElement( PROTEIN_PARTICIPANT_REF_TAG_NAME );
  element.setAttribute( "ref", getProteinId( session, protein ) );
  // 3. Attaching the newly created element to the parent...
  parent.appendChild( element );
  return element;
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Generates an proteinParticipantRef out of an IntAct Protein.
 *
 * @param session
 * @param parent  the Element to which we will add the proteinParticipantRef.
 * @param protein the IntAct Protein that we convert to PSI.
 *
 * @return the generated proteinParticipantRef Element.
 */
public Element createParticipantReference( UserSessionDownload session, Element parent, Protein protein ) {
  // TODO test that.
  // 1. Checking...
  if ( session == null ) {
    throw new IllegalArgumentException( "You must give a non null UserSessionDownload." );
  }
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null parent to build an " + PROTEIN_PARTICIPANT_REF_TAG_NAME + "." );
  }
  if ( protein == null ) {
    throw new IllegalArgumentException( "You must give a non null protein to build an " + PROTEIN_PARTICIPANT_REF_TAG_NAME + "." );
  }
  // 2. Initialising the element...
  Element element = session.createElement( PROTEIN_PARTICIPANT_REF_TAG_NAME );
  element.setAttribute( "ref", getProteinId( session, protein ) );
  // 3. Attaching the newly created element to the parent...
  parent.appendChild( element );
  return element;
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Generates an proteinParticipantRef out of an IntAct Protein.
 *
 * @param session
 * @param parent  the Element to which we will add the proteinParticipantRef.
 * @param protein the IntAct Protein that we convert to PSI.
 *
 * @return the generated proteinParticipantRef Element.
 */
public Element createParticipantReference( UserSessionDownload session, Element parent, Protein protein ) {
  // TODO test that.
  // 1. Checking...
  if ( session == null ) {
    throw new IllegalArgumentException( "You must give a non null UserSessionDownload." );
  }
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null parent to build an " + PROTEIN_PARTICIPANT_REF_TAG_NAME + "." );
  }
  if ( protein == null ) {
    throw new IllegalArgumentException( "You must give a non null protein to build an " + PROTEIN_PARTICIPANT_REF_TAG_NAME + "." );
  }
  // 2. Initialising the element...
  Element element = session.createElement( PROTEIN_PARTICIPANT_REF_TAG_NAME );
  element.setAttribute( "ref", getProteinId( session, protein ) );
  // 3. Attaching the newly created element to the parent...
  parent.appendChild( element );
  return element;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Generates an proteinInteractorRef out of an IntAct Protein.
 *
 * @param session
 * @param parent  the Element to which we will add the proteinInteractorRef.
 * @param protein the IntAct Protein that we convert to PSI.
 *
 * @return the generated proteinInteractorRef Element.
 */
public Element createProteinInteracorReference( UserSessionDownload session, Element parent, Protein protein ) {
  // TODO test that.
  // 1. Checking...
  if ( session == null ) {
    throw new IllegalArgumentException( "You must give a non null UserSessionDownload." );
  }
  if ( parent == null ) {
    throw new IllegalArgumentException( "You must give a non null parent to build an " + PROTEIN_INTERACTOR_REF_TAG_NAME + "." );
  }
  if ( protein == null ) {
    throw new IllegalArgumentException( "You must give a non null protein to build an " + PROTEIN_INTERACTOR_REF_TAG_NAME + "." );
  }
  // 2. Initialising the element...
  Element element = session.createElement( PROTEIN_INTERACTOR_REF_TAG_NAME );
  element.setAttribute( "ref", getProteinId( session, protein ) );
  // 3. Attaching the newly created element to the parent...
  parent.appendChild( element );
  return element;
}
origin: uk.ac.ebi.intact.util/data-conversion

element.setAttribute( "id", getProteinId( session, protein ) );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

element.setAttribute( "id", getProteinId( session, protein ) );
origin: uk.ac.ebi.intact.app/data-conversion

element.setAttribute( "id", getProteinId( session, protein ) );
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi2Protein2xmlPSI2getProteinId

Javadoc

get the value what will be used as ID of the protein.

Popular methods of Protein2xmlPSI2

  • createAttributeList
  • createNames
  • createProteinXrefs
    Generate the xref tag of the given protein. That content is attached to the given parent Element.
  • getInstance

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Reference (javax.naming)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top PhpStorm 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