Codota Logo
ONDEXConcept.deleteConceptName
Code IndexAdd Codota to your IDE (free)

How to use
deleteConceptName
method
in
net.sourceforge.ondex.core.ONDEXConcept

Best Java code snippets using net.sourceforge.ondex.core.ONDEXConcept.deleteConceptName (Showing top 3 results out of 315)

  • Common ways to obtain ONDEXConcept
private void myMethod () {
ONDEXConcept o =
  • Codota IconONDEXRelation r;r.getToConcept()
  • Codota IconONDEXRelation r;r.getFromConcept()
  • Codota IconONDEXGraph graph;graph.getConcept(id)
  • Smart code suggestions by Codota
}
origin: net.sourceforge.ondex.apps/ovtk2

@Override
public Object getCellEditorValue() {
  // this is value returned by default editor
  String newName = super.getCellEditorValue().toString();
  if (name == null) {
    // construct new CN with defaults
    if (newName.trim().length() > 0)
      name = concept.createConceptName(newName, false);
  } else {
    // existing CN check name update
    if (!newName.equals(name.getName())) {
      // delete old one
      ConceptName old = concept.getConceptName(name.getName());
      concept.deleteConceptName(name.getName());
      // keep preferred setting and create non empty name
      if (newName.trim().length() > 0)
        name = concept.createConceptName(newName, old.isPreferred());
      else
        // clear existing concept name from table
        name = null;
    }
  }
  // return concept name instead of string
  return name;
}
origin: net.sourceforge.ondex.apps/ovtk2

concept.deleteConceptName(name);
origin: net.sourceforge.ondex.modules/generic

boolean preferred = cn.isPreferred();
c.deleteConceptName(oldname);
String name = oldname.replaceAll(regex, replace).trim();
net.sourceforge.ondex.coreONDEXConceptdeleteConceptName

Javadoc

Deletes a ConceptName with the given name and returns the deleted one or null if unsuccessful.

Popular methods of ONDEXConcept

  • getId
  • createAttribute
  • createConceptAccession
    Creates a new ConceptAccession with the given accession, the information which DataSource it belongs
  • createConceptName
    Creates a new ConceptName with the given name and the information if this name is preferred. Then ad
  • getOfType
  • getConceptAccessions
  • getElementOf
    Returns the DataSource, which this AbstractConcept belongs to.
  • getPID
    Returns the parser id of this instance of AbstractConcept.
  • getConceptNames
    Returns all ConceptNames contained in the list of ConceptNames.
  • getAttribute
  • getConceptName
    Returns a ConceptName or null if unsuccessful for a given name or null if unsuccessful.
  • getAnnotation
    Returns the annotation of this instance of AbstractConcept.
  • getConceptName,
  • getAnnotation,
  • addTag,
  • getDescription,
  • getAttributes,
  • getTags,
  • getEvidence,
  • setAnnotation,
  • getConceptAccession,
  • setDescription

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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