Examples of Keyword


Examples of com.google.api.adwords.v201309.cm.Keyword

        // Create Keyword.
        String text = String.format("mars%d", i);
        if (r.nextInt() % 10 == 0) {
          text = text + "!!!";
        }
        Keyword keyword = new Keyword();
        keyword.setText(text);
        keyword.setMatchType(KeywordMatchType.BROAD);
        // Create BiddableAdGroupCriterion.
        BiddableAdGroupCriterion bagc = new BiddableAdGroupCriterion();
        bagc.setAdGroupId(adGroupId);
        bagc.setCriterion(keyword);
        // Create AdGroupCriterionOperation.
View Full Code Here

Examples of com.google.caja.lexer.Keyword

        }
        break;
      }
      case KEYWORD:
      {
        Keyword k = Keyword.fromString(t.text);
        if (null != k) {
          switch (k) {
            case NULL:
              e = new NullLiteral(t.pos);
              break typeswitch;
View Full Code Here

Examples of com.google.dart.engine.scanner.Keyword

    while (tokenMatches(token, TokenType.IDENTIFIER)
        && tokenMatches(token.getNext(), TokenType.COLON)) {
      token = token.getNext().getNext();
    }
    if (token.getType() == TokenType.KEYWORD) {
      Keyword keyword = ((KeywordToken) token).getKeyword();
      return keyword == Keyword.CASE || keyword == Keyword.DEFAULT;
    }
    return false;
  }
View Full Code Here

Examples of com.omertron.themoviedbapi.model.Keyword

     * @throws MovieDbException
     */
    @Test
    public void testGetKeyword() throws Exception {
        LOG.info("getKeyword");
        Keyword result = tmdb.getKeyword(ID_KEYWORD);
        assertEquals("fight", result.getName());
    }
View Full Code Here

Examples of com.volantis.mcs.build.themes.definitions.types.Keyword

                keywordCont.setKeywordName(keywordName);
                TypeVisitor keywordFinder = new AbstractTypeVisitor() {
                    public void visitKeywords(Keywords visitee, Object obj) {
                        KeywordSearchContainer ksc =
                                (KeywordSearchContainer) obj;
                        Keyword keyword =
                                visitee.getKeyword(ksc.getKeywordName());
                        if (keyword != null) {
                            ksc.setKeyword(keyword);
                        }
                    }

                    public void visitTypeRef(TypeRef visitee, Object obj) {
                        TypeDefinition td = getTypeDef(visitee.getReference());
                        if (td != null) {
                            Type t = td.getType();
                            if (t != null) {
                                t.accept(this, obj);
                            }
                        }
                    }
                };
                type.accept(keywordFinder, keywordCont);
                if (keywordCont.getKeyword() == null) {
                    System.out.println("Keyword " + keywordName
                                       + " not found in property "
                                       + property.getName());
                } else {
                    KeywordReference reference
                            = definitionsFactory.createKeywordReference();
                    reference.setKeyword(keywordCont.getKeyword());
                    container.addValue(reference);
                }
            } else {
                System.out.println(
                        "Property has no type: could not find keywords");
            }
        } else if (name.equals("themeDefinition")) {
            // Process all the children.
            processThemePropertyChildren(element);
        } else if (name.equals("choiceType")) {
            ChoiceType choiceType = definitionsFactory.createChoiceType();
            TypeList typeList = new TypeList();

            pushObject(choiceType);
            pushObject(typeList);
            processThemePropertyChildren(element);
            popObject();
            popObject();

            Iterator it = typeList.getList().iterator();
            while (it.hasNext()) {
                choiceType.addType((Type) it.next());
            }
            storeType(choiceType);
        } else if (name.equals("pairType")) {
            PairType pairType = definitionsFactory.createPairType();

            pushObject(pairType);
            processThemePropertyChildren(element);
            popObject();

            storeType(pairType);
        } else if (name.equals("fractionType")) {
            FractionType fractionType = definitionsFactory.createFractionType();

            pushObject(fractionType);
            processThemePropertyChildren(element);
            popObject();
            storeType(fractionType);
        } else if (name.equals("first")) {
            TypeList typeList = new TypeList();
            NameHolder nameHolder = new NameHolder();

            pushObject(typeList);
            pushObject(nameHolder);
            processThemePropertyChildren(element);
            popObject();
            popObject();

            if (!typeList.getList().isEmpty()) {
                PairType pair = (PairType) findObject(PairType.class);
                pair.setFirst((Type) typeList.getList().get(0));
            }
        } else if (name.equals("second")) {
            TypeList typeList = new TypeList();
            NameHolder nameHolder = new NameHolder();

            pushObject(typeList);
            pushObject(nameHolder);
            processThemePropertyChildren(element);
            popObject();
            popObject();

            if (!typeList.getList().isEmpty()) {
                PairType pair = (PairType) findObject(PairType.class);
                pair.setSecond((Type) typeList.getList().get(0));
            }
        } else if (name.equals("numerator")) {
            TypeList typeList = new TypeList();
            NameHolder nameHolder = new NameHolder();

            pushObject(typeList);
            pushObject(nameHolder);
            processThemePropertyChildren(element);
            popObject();
            popObject();

            if (!typeList.getList().isEmpty()) {
                FractionType fraction = (FractionType) findObject(FractionType.class);
                fraction.setNumerator((Type) typeList.getList().get(0));
            }
        } else if (name.equals("denominator")) {
            TypeList typeList = new TypeList();
            NameHolder nameHolder = new NameHolder();

            pushObject(typeList);
            pushObject(nameHolder);
            processThemePropertyChildren(element);
            popObject();
            popObject();

            if (!typeList.getList().isEmpty()) {
                FractionType fraction = (FractionType) findObject(FractionType.class);
                fraction.setDenominator((Type) typeList.getList().get(0));
            }
        }else if (name.equals("type")) {
            // Process the children in order to find the keyword definitions.
            processThemePropertyChildren(element);
        } else if (name.equals("typeRef")) {

            TypeRef typeRef = definitionsFactory.createTypeRef();
            typeRef.setReference(element.getText());
            Property property = (Property) findObject(Property.class);
            property.setType(typeRef);

        } else if (name.equals("keywords")) {

            Keywords keywords = definitionsFactory.createKeywords();

            pushObject(keywords);
            processThemePropertyChildren(element);
            popObject();

            storeType(keywords);

        } else if (name.equals("keyword")) {

            // Define a new keyword and add it into the containing set.
            Keyword keyword = definitionsFactory.createKeyword();

            pushObject(keyword);

            processThemePropertyChildren(element);
View Full Code Here

Examples of es.udc.tfg.journals.model.keyword.Keyword

  @Before
  public void setUp() throws Exception {
    journalService.createJournal(new Journal("", null, null, null, null));
    keywordService.createKeywordWeightJournal(new KeywordWeightJournal(
        new KeywordWeight(10, new Keyword("etiqueta")), journalService
            .findJournalByName("")));
  }
View Full Code Here

Examples of gaej2011.model.KeyWord

    @Override
    protected Navigation run() throws Exception {
        Key memoKey = asKey("memoKey");
        Memo memo = Datastore.get(MemoMeta.get(), memoKey);
        Set<String> keywords = YahooAPIService.parse(memo.getMemo());
        KeyWord keyWord = new KeyWord();
        keyWord.setKey(Datastore.createKey(memoKey, KeyWord.class, "1"));
        keyWord.setWords(keywords);
        Datastore.put(keyWord);
        return null;
    }
View Full Code Here

Examples of gaej2011.model.KeyWord

    private Key createTestData() {
        Key minutesKey = MinutesService.put(" テスト用議事録1");
        HashSet<String> keyWords = new HashSet<String>();
        Key memoKey1 = MemoService.put(minutesKey, " 本日は晴天なり");
        KeyWord keyWord1 = new KeyWord();
        keyWord1.setKey(Datastore.createKey(memoKey1, KeyWord.class, "1"));
        keyWords.add(" 本日");
        keyWords.add(" 晴天");
        keyWord1.setWords(keyWords);
        Datastore.put(keyWord1);
        Key memoKey2 = MemoService.put(minutesKey, " 本日は雨天なり");
        keyWords.clear();
        KeyWord keyWord2 = new KeyWord();
        keyWord2.setKey(Datastore.createKey(memoKey2, KeyWord.class, "1"));
        keyWords.add(" 本日");
        keyWords.add(" 雨天");
        keyWord2.setWords(keyWords);
        Datastore.put(keyWord2);
        Key memoKey3 = MemoService.put(minutesKey, " 明日も雨天なり");
        keyWords.clear();
        KeyWord keyWord3 = new KeyWord();
        keyWord3.setKey(Datastore.createKey(memoKey3, KeyWord.class, "1"));
        keyWords.add(" 明日");
        keyWords.add(" 雨天");
        keyWord3.setWords(keyWords);
        Datastore.put(keyWord3);
        return memoKey1;
    }
View Full Code Here

Examples of javassist.compiler.ast.Keyword

/*     */
/*     */   public static int getModifiers(ASTList mods)
/*     */   {
/* 532 */     int m = 0;
/* 533 */     while (mods != null) {
/* 534 */       Keyword k = (Keyword)mods.head();
/* 535 */       mods = mods.tail();
/* 536 */       switch (k.get()) {
/*     */       case 335:
/* 538 */         m |= 8;
/* 539 */         break;
/*     */       case 315:
/* 541 */         m |= 16;
View Full Code Here

Examples of lipstone.joshua.parser.plugin.helpdata.Keyword

    return null;
  }
 
  @Override
  public void loadKeywords() throws PluginConflictException {
    addKeyword(new Keyword("g", "the gravitational force on Earth's surface, 9.80", this));
    addKeyword(new Keyword("G", "Newton's gravitational constant", this));
    addKeyword(new Keyword("MSun", "The mass of the Sun", this));
    addKeyword(new Keyword("MEarth", "The mass of the Earth", this));
    addKeyword(new Keyword("h", "Planck's Constant", this));
    addKeyword(new Keyword("ke", "Coulomb's Constant", this));
    addKeyword(new Keyword("Melectron", "Mass of an electron", this));
    addKeyword(new Keyword("c", "The speed of light in meters per second", this));
  }
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.