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

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

Best Java code snippets using net.sourceforge.ondex.core.ONDEXConcept.getAttributes (Showing top 20 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.core/lucene

@Override
public Set<Attribute> getAttributes() {
  return parent.getAttributes();
}
origin: net.sourceforge.ondex.core/tools

/**
 * Return all of attribute names of the concepts
 * contained in the collection
 *
 * @param cs
 * @return set of attribute names
 */
public static Set<AttributeName> getConceptAttNames(Collection<ONDEXConcept> cs) {
  Set<AttributeName> result = new HashSet<AttributeName>();
  for (ONDEXConcept c : cs) {
    for (Attribute g : c.getAttributes()) {
      result.add(g.getOfType());
    }
  }
  return result;
}
origin: net.sourceforge.ondex.core/tools

/**
 * Return all of attribute names of the concepts
 * contained in the collection
 *
 * @param cs
 * @return set of attribute names
 */
public static Set<AttributeName> getConceptAttNames(Collection<ONDEXConcept> cs) {
  Set<AttributeName> result = new HashSet<AttributeName>();
  for (ONDEXConcept c : cs) {
    for (Attribute g : c.getAttributes()) {
      result.add(g.getOfType());
    }
  }
  return result;
}
origin: net.sourceforge.ondex.apps/ovtk2

  private void step() {
    boolean match = false;
    next = null;
    while (!match && view.hasNext()) {
      ONDEXConcept r = view.next();
      List<String> gds = new ArrayList<String>();
      for (Attribute g : r.getAttributes()) {
        String name = g.getOfType().getId();
        if (validArgs.contains(name))
          gds.add(name);
      }
      if (gds.size() > 0) {
        match = true;
        next = gds.toArray(new String[gds.size()]);
      }
    }
  }
}
origin: net.sourceforge.ondex.apps/ovtk2-default

/**
 * Populates given combo box with list of AttributeNames for visible
 * concepts.
 * 
 * @param box
 *            JComboBox to fill
 */
private void populateComboBox(JComboBox box) {
  Set<AttributeName> ans = new HashSet<AttributeName>();
  for (ONDEXConcept n : graph.getVertices()) {
    for (Attribute g : n.getAttributes()) {
      if (!AppearanceSynchronizer.attr
          .contains(g.getOfType().getId()))
        ans.add(g.getOfType());
    }
  }
  box.removeAllItems();
  box.addItem("None");
  if (ans.size() > 0) {
    AttributeName[] array = ans.toArray(new AttributeName[0]);
    Arrays.sort(array);
    for (AttributeName an : array) {
      box.addItem(an);
    }
    box.revalidate();
  }
}
origin: net.sourceforge.ondex.apps/ovtk2

Set<Attribute> attributes = ac.getAttributes();
origin: net.sourceforge.ondex.core/tools

for (Attribute attribute : c.getAttributes()) {
  ArrayKey<Object> accessionKey = new ArrayKey<Object>(new Object[]{attribute.getOfType(), attribute.getValue()});
  gdsToConceptIndexBuider.addEntry(accessionKey, c.getId());
origin: net.sourceforge.ondex.apps/ovtk2

/**
 * Copies all Attribute from old concept to new concept.
 * 
 * @param oldC
 *            old ONDEXConcept
 * @param newC
 *            new ONDEXConcept
 */
private void copyGDS(ONDEXConcept oldC, ONDEXConcept newC) {
  // iterate over all old Attribute
  for (Attribute attribute : oldC.getAttributes()) {
    // clone old Attribute on new concept
    newC.createAttribute(attribute.getOfType(), attribute.getValue(), attribute.isDoIndex());
  }
}
origin: net.sourceforge.ondex.apps/ovtk2

  public void run() {
    // just being paranoid
    cleanPopups();
    if (showMouseOver && vv.isShowing() && onNode && n.equals(currentNode) && !activePopups.containsKey(n)) {
      ConceptClass cc = n.getOfType();
      if (cc.getId().equals("Comp") || (cc.getSpecialisationOf() != null && cc.getSpecialisationOf().getId().equals("Comp"))) {
        for (Attribute attr : n.getAttributes()) {
          Object o = attr.getValue();
          if (o instanceof ChemicalStructure) {
            // use Attribute Editor as a hack
            JComponent c = AttributePanel.findEditor(attr);
            if (c != null) {
              c.setBorder(BorderFactory.createEtchedBorder());
              c.setPreferredSize(new Dimension(150, 150));
              Point location = calculatePopupLocation(c);
              // show popup
              PopupFactory popupFactory = PopupFactory.getSharedInstance();
              Popup popup = popupFactory.getPopup(vv, c, location.x, location.y);
              // just being paranoid
              if (!activePopups.containsKey(n)) {
                activePopups.put(n, popup);
                popup.show();
              }
            }
          }
        }
      }
    }
  }
}, 500);
origin: net.sourceforge.ondex.apps/ovtk2

for (ONDEXConcept concept : graph.getConcepts()) {
  for (Attribute attribute : concept.getAttributes()) {
origin: net.sourceforge.ondex.modules/arabidopsis

public void parseLine(String[] data) throws FileNotFoundException, IOException {
  ONDEXConcept exp = lookup.lookupExperiment(data[0]);
  if (exp.getAttributes().size() == 0) {
    exp.createAttribute(ecoCont, data[1], false);
    exp.createAttribute(ecoTest, data[2], false);
    exp.createAttribute(cell, data[3], false);
    exp.createAttribute(age, data[5], false);
    exp.createAttribute(treatments, data[8], false);
    exp.createAttribute(description, data[7], false);
    exp.createAttribute(hormoneTreat, data[4], false);
    exp.createAttribute(hormoneConc, data[6], false);
  }
  createHormoneContext(data[4], exp);
}
origin: net.sourceforge.ondex.modules/generic

for (Attribute attribute : c.getAttributes()) {
  if (attribute.getOfType().equals(at)) {
    propagate(toKeep, c, 0);
origin: net.sourceforge.ondex.modules/poplar

for (Attribute attribute : ac.getAttributes()) {
  if(attribute.getOfType().getId().equals("AA") ||
      attribute.getOfType().getId().equals("NA")){
origin: net.sourceforge.ondex.apps/ovtk2-poplar

for (Attribute attribute : ac.getAttributes()) {
  if(attribute.getOfType().getId().equals("AA") ||
      attribute.getOfType().getId().equals("NA")){
origin: net.sourceforge.ondex.apps.qtlnetminer.common/common-server

for (Attribute attribute : concept.getAttributes()) {
  if(attribute.getOfType().getId().equals("AA") ||
      attribute.getOfType().getId().equals("NA")){
origin: net.sourceforge.ondex.core/tools

for (Attribute attribute : conceptToClone.getAttributes()) {
  AttributeName att = attribute.getOfType();
  AttributeName newAtt = nomd.getAttributeName(att.getId());
origin: net.sourceforge.ondex.core/tools

for (Attribute attribute : c.getAttributes()) {
  nc.createAttribute(attribute.getOfType(), attribute.getValue(),
      attribute.isDoIndex());
origin: net.sourceforge.ondex.core/tools

/**
 * Copies all of the attributes from one concept to another (only if they do
 * not already exist at target)
 * 
 * @param from
 *            - concept to copy from
 * @param to
 *            - concept to copy to
 * @throws AccessDeniedException
 * @throws NullValueException
 * @throws EmptyStringException
 */
public static void copyConceptAttributes(ONDEXConcept from, ONDEXConcept to)
    throws NullValueException, AccessDeniedException,
    EmptyStringException {
  for (EvidenceType et : from.getEvidence())
    addNewEvidence(to, et);
  for (ConceptAccession ca : from.getConceptAccessions())
    addNewAccession(to, ca);
  for (ConceptName cn : from.getConceptNames())
    addNewName(to, cn);
  for (Attribute attribute : from.getAttributes())
    addNewAttribute(to, attribute);
  if (from.getAnnotation() != null && to.getDescription() == null)
    to.setAnnotation(from.getAnnotation());
  if (from.getDescription() != null && to.getDescription() == null)
    to.setDescription(from.getDescription());
}
origin: net.sourceforge.ondex.core/tools

for (Attribute attribute : copySourceConcept.getAttributes()) {
  copyTargetConcept.createAttribute(attribute.getOfType(),
      attribute.getValue(), attribute.isDoIndex());
origin: net.sourceforge.ondex.modules/oxl

Set<Attribute> attribute = c.getAttributes();
if (prettyPrint)
  xmlw.writeCharacters(newline);
net.sourceforge.ondex.coreONDEXConceptgetAttributes

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,
  • getTags,
  • getEvidence,
  • setAnnotation,
  • getConceptAccession,
  • setDescription

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IsNull (org.hamcrest.core)
    Is the value null?
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