Examples of addCode()


Examples of dnb.data.Label.addCode()

       
      target.setLabelCode(new CatalogNumberHibernateImpl(matchSource.get(NfoField.LABEL_CODE).getMatch(),
          Integer.parseInt(matchSource.get(NfoField.LABEL_CODE_NO).getMatch()),
          matchSource.get(NfoField.LABEL_CODE_SUFFIX).getMatch()));
      if (l != null) {
        l.addCode(matchSource.get(NfoField.LABEL_CODE).getMatch());
      }
    }
  }

  private static void storeDates(ReleaseData target, Map<NfoField, MatchResult> matchSource,
View Full Code Here

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

         
          // add to concept
          c.addSynonym(text);
          c.addSource(source);
          c.addTerm(term);
          c.addCode(code, source);
         
          // set preferred name for the first time
          if(term.isPreferred()){
            // if prefered name source is not set OR
            // we have filtering and the new source offset is less then old source offset (which means higher priority)
View Full Code Here

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

      c.setSynonyms(synonyms.toArray(new String [0]));
      c.setSources(sources.toArray(new Source [0]));
      c.setTerms(terms.toArray(new Term [0]));
      c.setDefinitions(definitions.toArray(new Definition [0]));
      for(String code: codes.keySet())
        c.addCode(code,codes.get(code));
      c.setInitialized(true);
     
      return c;
     
    }catch(Exception ex){
View Full Code Here

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

         
          // add to concept
          c.addSynonym(text);
          c.addSource(source);
          c.addTerm(term);
          c.addCode(code, source);
         
          // set preferred name for the first time
          if(term.isPreferred()){
            // if prefered name source is not set OR
            // we have filtering and the new source offset is less then old source offset (which means higher priority)
View Full Code Here

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

      c.setSynonyms(synonyms.toArray(new String [0]));
      c.setSources(sources.toArray(new Source [0]));
      c.setTerms(terms.toArray(new Term [0]));
      c.setDefinitions(definitions.toArray(new Definition [0]));
      for(String code: codes.keySet())
        c.addCode(code,codes.get(code));
      c.setInitialized(true);
     
      return c;
     
    }catch(Exception ex){
View Full Code Here

Examples of net.percederberg.grammatica.code.csharp.CSharpConstructor.addCode()

        cls.addConstructor(constr);
        constr.addComment(new CSharpComment(CONSTRUCTOR_COMMENT));
        constr.addInitializer("base(input, " +
                              !gen.getGrammar().getCaseSensitive() +
                              ")");
        constr.addCode("CreatePatterns();");

        // Add init method
        cls.addMethod(initMethod);
        initMethod.addComment(new CSharpComment(INIT_METHOD_COMMENT));
        initMethod.addCode("TokenPattern  pattern;");
View Full Code Here

Examples of net.percederberg.grammatica.code.csharp.CSharpConstructor.addCode()

        // Add constructor
        constr = new CSharpConstructor("TextReader input");
        cls.addConstructor(constr);
        constr.addComment(new CSharpComment(CONSTRUCTOR1_COMMENT));
        constr.addInitializer("base(input)");
        constr.addCode("CreatePatterns();");

        // Add constructor
        constr = new CSharpConstructor("TextReader input, " +
                                       analyzer.getClassName() + " analyzer");
        cls.addConstructor(constr);
View Full Code Here

Examples of net.percederberg.grammatica.code.csharp.CSharpConstructor.addCode()

        constr = new CSharpConstructor("TextReader input, " +
                                       analyzer.getClassName() + " analyzer");
        cls.addConstructor(constr);
        constr.addComment(new CSharpComment(CONSTRUCTOR2_COMMENT));
        constr.addInitializer("base(input, analyzer)");
        constr.addCode("CreatePatterns();");

        // Add tokenizer factory method
        method = new CSharpMethod(CSharpMethod.PROTECTED + CSharpMethod.OVERRIDE,
                                  "NewTokenizer",
                                  "TextReader input",
View Full Code Here

Examples of net.percederberg.grammatica.code.csharp.CSharpMethod.addCode()

        method = new CSharpMethod(CSharpMethod.PROTECTED + CSharpMethod.OVERRIDE,
                                  "NewTokenizer",
                                  "TextReader input",
                                  "Tokenizer");
        method.addComment(new CSharpComment(FACTORY_COMMENT));
        method.addCode("return new " + tokenizer.getClassName() + "(input);");
        cls.addMethod(method);

        // Add init method
        cls.addMethod(initMethod);
        initMethod.addComment(new CSharpComment(INIT_METHOD_COMMENT));
View Full Code Here

Examples of net.percederberg.grammatica.code.csharp.CSharpMethod.addCode()

        m = new CSharpMethod(CSharpMethod.PUBLIC + CSharpMethod.VIRTUAL,
                             "Exit" + name,
                             type + " node",
                             "Node");
        m.addComment(new CSharpComment(EXIT_COMMENT));
        m.addCode("return node;");
        cls.addMethod(m);
    }

    /**
     * Adds an add child method to this file.
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.