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

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

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.PsiDocumentFactory (Showing top 20 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

/**
 * Return a PSI document. Create a new wmpty one if it doesn't exists yet.
 *
 * @return a PSI document.
 */
public Document getPsiDocument() {
  if ( psiDocument == null ) {
    psiDocument = PsiDocumentFactory.buildPsiDocument( this );
  }
  return psiDocument;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

document = buildPsiVersion1(session, source);
document = buildPsiVersion2(session, source);
document = buildPsiVersion25(session, source);
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

source.setAttribute( "releaseDate", getReleaseDate() );
origin: uk.ac.ebi.intact.app/data-conversion

document = buildPsiVersion1( session, source );
document = buildPsiVersion2( session, source );
document = buildPsiVersion25( session, source );
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.app/data-conversion

source.setAttribute( "releaseDate", getReleaseDate() );
origin: uk.ac.ebi.intact.util/data-conversion

document = buildPsiVersion1( session, source );
document = buildPsiVersion2( session, source );
document = buildPsiVersion25( session, source );
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.app/data-conversion

public UserSessionDownload( PsiVersion psiVersion, Institution source ) {
  this.psiVersion = psiVersion;
  this.source = source;
  psiDocument = PsiDocumentFactory.buildPsiDocument( this, source );
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

source.setAttribute("releaseDate", getReleaseDate());
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.util/data-conversion

/**
 * Return a PSI document. Create a new wmpty one if it doesn't exists yet.
 *
 * @return a PSI document.
 */
public Document getPsiDocument() {
  if ( psiDocument == null ) {
    psiDocument = PsiDocumentFactory.buildPsiDocument( this );
  }
  return psiDocument;
}
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 of the specified version.
 *
 * @param session The user session that contains the requested PSI version.
 *
 * @return a XML Document representing an empty PSI document.
 */
public static Document buildPsiDocument( UserSessionDownload session ) {
  return buildPsiDocument( session, null );
}
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.dataexchange.psimi.legacy/data-conversion

public UserSessionDownload( PsiVersion psiVersion, Institution source ) {
  this.psiVersion = psiVersion;
  this.source = source;
  psiDocument = PsiDocumentFactory.buildPsiDocument( this, source );
}
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 of the specified version.
 *
 * @param session The user session that contains the requested PSI version.
 *
 * @return a XML Document representing an empty PSI document.
 */
public static Document buildPsiDocument(UserSessionDownload session) {
  return buildPsiDocument(session, null);
}
origin: uk.ac.ebi.intact.app/data-conversion

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

Javadoc

TODO document this ;o)

Most used methods

  • 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.
  • createSource
    generate the source of a PSI document.
  • getReleaseDate
    Create today's date

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JList (javax.swing)
  • JTextField (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
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