Codota Logo
PsiDocumentFactory.createSource
Code IndexAdd Codota to your IDE (free)

How to use
createSource
method
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.PsiDocumentFactory

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.PsiDocumentFactory.createSource (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Builds an empty PSI document version 2.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 2.
 */
private static Document buildPsiVersion2( UserSessionDownload session, Institution institution ) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument( "net:sf:psidev:mi", "entrySet", null );  //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute( "xmlns", "net:sf:psidev:mi" );
  psiEntrySet.setAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
  psiEntrySet.setAttribute( "xsi:schemaLocation",
               "net:sf:psidev:mi " + URL_SCHEMA_VERSION_2 );
  psiEntrySet.setAttribute( "level", "1" );
  psiEntrySet.setAttribute( "version", "2" );
  Element entry = document.createElement( "entry" );
  psiEntrySet.appendChild( entry );
  Element source = createSource( session, document, institution );
  entry.appendChild( source );
  return document;
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Builds an empty PSI document version 2.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 2.
 */
private static Document buildPsiVersion2( UserSessionDownload session, Institution institution ) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument( "net:sf:psidev:mi", "entrySet", null );  //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute( "xmlns", "net:sf:psidev:mi" );
  psiEntrySet.setAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
  psiEntrySet.setAttribute( "xsi:schemaLocation",
               "net:sf:psidev:mi " + URL_SCHEMA_VERSION_2 );
  psiEntrySet.setAttribute( "level", "1" );
  psiEntrySet.setAttribute( "version", "2" );
  Element entry = document.createElement( "entry" );
  psiEntrySet.appendChild( entry );
  Element source = createSource( session, document, institution );
  entry.appendChild( source );
  return document;
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Builds an empty PSI document version 1.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 1.
 */
private static Document buildPsiVersion1( UserSessionDownload session, Institution institution ) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument( "net:sf:psidev:mi", "entrySet", null );  //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute( "xmlns", "net:sf:psidev:mi" );
  psiEntrySet.setAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
  psiEntrySet.setAttribute( "xsi:schemaLocation",
               "net:sf:psidev:mi " + URL_SCHEMA_VERSION_1 );
  psiEntrySet.setAttribute( "level", "1" );
  psiEntrySet.setAttribute( "version", "1" );
  Element entry = document.createElement( "entry" );
  psiEntrySet.appendChild( entry );
  Element source = createSource( session, document, institution );
  entry.appendChild( source );
  return document;
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Builds an empty PSI document version 1.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 1.
 */
private static Document buildPsiVersion1( UserSessionDownload session, Institution institution ) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument( "net:sf:psidev:mi", "entrySet", null );  //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute( "xmlns", "net:sf:psidev:mi" );
  psiEntrySet.setAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
  psiEntrySet.setAttribute( "xsi:schemaLocation",
               "net:sf:psidev:mi " + URL_SCHEMA_VERSION_1 );
  psiEntrySet.setAttribute( "level", "1" );
  psiEntrySet.setAttribute( "version", "1" );
  Element entry = document.createElement( "entry" );
  psiEntrySet.appendChild( entry );
  Element source = createSource( session, document, institution );
  entry.appendChild( source );
  return document;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Builds an empty PSI document version 1.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 1.
 */
private static Document buildPsiVersion1(UserSessionDownload session,
    Institution institution) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument("net:sf:psidev:mi", "entrySet",
      null); //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute("xmlns", "net:sf:psidev:mi");
  psiEntrySet.setAttribute("xmlns:xsi",
      "http://www.w3.org/2001/XMLSchema-instance");
  psiEntrySet.setAttribute("xsi:schemaLocation", "net:sf:psidev:mi "
      + URL_SCHEMA_VERSION_1);
  psiEntrySet.setAttribute("level", "1");
  psiEntrySet.setAttribute("version", "1");
  Element entry = document.createElement("entry");
  psiEntrySet.appendChild(entry);
  Element source = createSource(session, document, institution);
  entry.appendChild(source);
  return document;
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Builds an empty PSI document version 3.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 3.
 */
private static Document buildPsiVersion25( UserSessionDownload session, Institution institution ) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument( "net:sf:psidev:mi", "entrySet", null );  //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute( "xmlns", "net:sf:psidev:mi" );
  psiEntrySet.setAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
  psiEntrySet.setAttribute( "xsi:schemaLocation",
               "net:sf:psidev:mi " + URL_SCHEMA_VERSION_25 );
  // values fixed by the schema
  psiEntrySet.setAttribute( "level", "2" );
  psiEntrySet.setAttribute( "version", "5" );
  psiEntrySet.setAttribute( "minorVersion", "3" );
  Element entry = document.createElement( "entry" );
  psiEntrySet.appendChild( entry );
  Element source = createSource( session, document, institution );
  entry.appendChild( source );
  return document;
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Builds an empty PSI document version 3.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 3.
 */
private static Document buildPsiVersion25( UserSessionDownload session, Institution institution ) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument( "net:sf:psidev:mi", "entrySet", null );  //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute( "xmlns", "net:sf:psidev:mi" );
  psiEntrySet.setAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
  psiEntrySet.setAttribute( "xsi:schemaLocation",
               "net:sf:psidev:mi " + URL_SCHEMA_VERSION_25 );
  // values fixed by the schema
  psiEntrySet.setAttribute( "level", "2" );
  psiEntrySet.setAttribute( "version", "5" );
  psiEntrySet.setAttribute( "minorVersion", "3" );
  Element entry = document.createElement( "entry" );
  psiEntrySet.appendChild( entry );
  Element source = createSource( session, document, institution );
  entry.appendChild( source );
  return document;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Builds an empty PSI document version 3.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 3.
 */
private static Document buildPsiVersion25(UserSessionDownload session,
    Institution institution) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument("net:sf:psidev:mi", "entrySet",
      null); //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute("xmlns", "net:sf:psidev:mi");
  psiEntrySet.setAttribute("xmlns:xsi",
      "http://www.w3.org/2001/XMLSchema-instance");
  psiEntrySet.setAttribute("xsi:schemaLocation", "net:sf:psidev:mi "
      + URL_SCHEMA_VERSION_25);
  // values fixed by the schema
  psiEntrySet.setAttribute("level", "2");
  psiEntrySet.setAttribute("version", "5");
  psiEntrySet.setAttribute("minorVersion", "3");
  Element entry = document.createElement("entry");
  psiEntrySet.appendChild(entry);
  Element source = createSource(session, document, institution);
  entry.appendChild(source);
  return document;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Builds an empty PSI document version 2.
 *
 * @param institution the source of that PSI Document.
 *
 * @return an empty PSI document version 2.
 */
private static Document buildPsiVersion2(UserSessionDownload session,
    Institution institution) {
  DOMImplementationImpl impl = new DOMImplementationImpl();
  Document document = impl.createDocument("net:sf:psidev:mi", "entrySet",
      null); //doctype only used by DTDs !
  Element psiEntrySet = document.getDocumentElement();
  psiEntrySet.setAttribute("xmlns", "net:sf:psidev:mi");
  psiEntrySet.setAttribute("xmlns:xsi",
      "http://www.w3.org/2001/XMLSchema-instance");
  psiEntrySet.setAttribute("xsi:schemaLocation", "net:sf:psidev:mi "
      + URL_SCHEMA_VERSION_2);
  psiEntrySet.setAttribute("level", "1");
  psiEntrySet.setAttribute("version", "2");
  Element entry = document.createElement("entry");
  psiEntrySet.appendChild(entry);
  Element source = createSource(session, document, institution);
  entry.appendChild(source);
  return document;
}
origin: uk.ac.ebi.intact.app/data-conversion

Element source = PsiDocumentFactory.createSource( this, root, this.source );
entry.appendChild( source );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

Element source = PsiDocumentFactory.createSource( this, root, this.source );
entry.appendChild( source );
origin: uk.ac.ebi.intact.util/data-conversion

Element source = PsiDocumentFactory.createSource( this, root, this.source );
entry.appendChild( source );
uk.ac.ebi.intact.application.dataConversion.psiDownloadPsiDocumentFactorycreateSource

Javadoc

generate the source of a PSI document.

Popular methods of PsiDocumentFactory

  • buildPsiDocument
    Builds an empty PSI document of the specified version.
  • buildPsiVersion1
    Builds an empty PSI document version 1.
  • buildPsiVersion2
    Builds an empty PSI document version 2.
  • buildPsiVersion25
    Builds an empty PSI document version 3.
  • getReleaseDate
    Create today's date

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now