Examples of fromElement()


Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.fromElement()

      }else if("Description".equals(e.getTagName())){
        storage.getInfoMap().put("description",e.getTextContent().trim());
      }else if("Concepts".equals(e.getTagName())){
        for(Element cc: XMLUtils.getElementsByTagName(e,"Concept")){
          Concept c = new Concept("");
          c.fromElement(cc);
          addConcept(c);
        }
      }else if("Options".equals(e.getTagName())){
        Properties p = new Properties();
        for(Element op: XMLUtils.getElementsByTagName(e,"Option")){
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Source.fromElement()

    // get child element
    for(Element e: XMLUtils.getChildElements(element)){
      if("Sources".equals(e.getTagName())){
        for(Element cc: XMLUtils.getElementsByTagName(e,"Source")){
          Source c = new Source("");
          c.fromElement(cc);
          storage.getSourceMap().put(c.getName(),c);
        }
      }else if("Relations".equals(e.getTagName())){
        //NOOP
      }else if("Languages".equals(e.getTagName())){
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Source.fromElement()

      }else if("Description".equals(e.getTagName())){
        storage.getInfoMap().put("description",e.getTextContent().trim());
      }else if("Concepts".equals(e.getTagName())){
        for(Element cc: XMLUtils.getElementsByTagName(e,"Concept")){
          Concept c = new Concept("");
          c.fromElement(cc);
          addConcept(c);
        }
      }else if("Options".equals(e.getTagName())){
        Properties p = new Properties();
        for(Element op: XMLUtils.getElementsByTagName(e,"Option")){
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.impl.NobleCoderTerminology.fromElement()

   
    //load terminology
    List<Terminology> terms = new ArrayList<Terminology>();
    for(Element t: XMLUtils.getElementsByTagName(element,"Terminology")){
      NobleCoderTerminology term = new NobleCoderTerminology();
      term.fromElement(t);
      terms.add(term);
    }
    //term.setCachingEnabled(false);
    if(terms.size() == 1){
      setTerminology(terms.get(0));
View Full Code Here

Examples of edu.pitt.terminology.client.IndexFinderTerminology.fromElement()

   
    //load terminology
    List<Terminology> terms = new ArrayList<Terminology>();
    for(Element t: XMLUtils.getElementsByTagName(element,"Terminology")){
      IndexFinderTerminology term = new IndexFinderTerminology();
      term.fromElement(t);
      terms.add(term);
    }
    //term.setCachingEnabled(false);
    if(terms.size() == 1){
      setTerminology(terms.get(0));
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.fromElement()

      }else if("Description".equals(e.getTagName())){
        infoMap.put("description",e.getTextContent().trim());
      }else if("Concepts".equals(e.getTagName())){
        for(Element cc: XMLUtils.getElementsByTagName(e,"Concept")){
          Concept c = new Concept("");
          c.fromElement(cc);
          addConcept(c);
        }
      }else if("Options".equals(e.getTagName())){
        Properties p = new Properties();
        for(Element op: XMLUtils.getElementsByTagName(e,"Option")){
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Source.fromElement()

    // get child element
    for(Element e: XMLUtils.getChildElements(element)){
      if("Sources".equals(e.getTagName())){
        for(Element cc: XMLUtils.getElementsByTagName(e,"Source")){
          Source c = new Source("");
          c.fromElement(cc);
          sourceMap.put(c.getName(),c);
        }
      }else if("Relations".equals(e.getTagName())){
        //NOOP
      }else if("Languages".equals(e.getTagName())){
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Source.fromElement()

      }else if("Description".equals(e.getTagName())){
        infoMap.put("description",e.getTextContent().trim());
      }else if("Concepts".equals(e.getTagName())){
        for(Element cc: XMLUtils.getElementsByTagName(e,"Concept")){
          Concept c = new Concept("");
          c.fromElement(cc);
          addConcept(c);
        }
      }else if("Options".equals(e.getTagName())){
        Properties p = new Properties();
        for(Element op: XMLUtils.getElementsByTagName(e,"Option")){
View Full Code Here

Examples of net.sourceforge.cruisecontrol.ClearCaseModification.fromElement()

        Iterator it = elts.iterator();
        while (it.hasNext()) {
           Element elt = (Element) it.next();
           ClearCaseModification mod = new ClearCaseModification();
           mod.fromElement(elt, DATE_FMT);
           mods.add(mod);
        }
    }

    /**
 
View Full Code Here

Examples of net.sourceforge.cruisecontrol.Modification.fromElement()

                    .getChildren("modification")
                    .iterator();
            while (modificationIterator.hasNext()) {
                Element modification = (Element) modificationIterator.next();
                Modification mod = new Modification();
                mod.fromElement(
                    modification,
                    new SimpleDateFormat(DateFormatFactory.getFormat()));
                results.add(mod);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.