Examples of lookUp()


Examples of org.languagetool.tagging.de.GermanTagger.lookup()

    // city names:
    if (nextTerm.endsWith("er") && tokens.length > tokenPos+1 && !ER_TO_BE_IGNORED.contains(nextTerm)) {
      final AnalyzedTokenReadings nextNextToken = tokens[tokenPos+1];
      final GermanTagger tagger = (GermanTagger)language.getTagger();
      try {
        final AnalyzedTokenReadings nextATR = tagger.lookup(nextTerm.substring(0, nextTerm.length()-2));
        final AnalyzedTokenReadings nextNextATR = tagger.lookup(nextNextToken.getToken());
        //System.err.println("nextATR: " + nextATR);
        //System.err.println("nextNextATR: " + nextNextATR);
        // "Münchner": special case as cutting off last two characters doesn't produce city name:
        if ("Münchner".equals(nextTerm) ||

Examples of org.locationtech.geogig.storage.StagingDatabase.lookUp()

        Optional<Ref> ref = Optional.absent();
        when(mockRefParse.call()).thenReturn(ref);

        List<ObjectId> oIds = Arrays.asList(ObjectId.forString("Object 1"),
                ObjectId.forString("Object 2"));
        when(mockIndexDb.lookUp(anyString())).thenReturn(oIds);
        when(mockCommands.stagingDatabase()).thenReturn(mockIndexDb);
        RevParse command = new RevParse();
        command.setContext(mockCommands);

        exception.expect(IllegalArgumentException.class);

Examples of org.locationtech.udig.project.internal.StyleBlackboard.lookup()

        StyleBlackboard blackboard = (StyleBlackboard) layer.getStyleBlackboard();
        if (blackboard == null) {
            return null;
        }

        Style sld = (Style) blackboard.lookup(Style.class);
        if (sld == null) {
            return null;
        }

        List<FeatureTypeStyle> styles = new ArrayList<FeatureTypeStyle>();

Examples of org.milyn.scribe.invoker.AnnotatedDaoInvoker.lookup()

    DaoInvoker invoker = new AnnotatedDaoInvoker(fullDao, fullDaoRuntimeInfo);

    Map<String, Object> params = new HashMap<String, Object>();
    params.put("id", 1L);

    invoker.lookup("id", params);

    verify(fullDao).findById(1L);

  }

Examples of org.milyn.scribe.invoker.DaoInvoker.lookup()

    ParameterContainer<?> container = ParameterManager.getParameterContainer(id, executionContext);
    DaoInvoker daoInvoker = DaoInvokerFactory.getInstance().create(dao, objectStore);

    if(query == null) {
      if(parameterListType == ParameterListType.NAMED) {
        return daoInvoker.lookup(lookupName, ((NamedParameterContainer) container).getParameterMap());
      } else {
        return daoInvoker.lookup(lookupName, ((PositionalParameterContainer) container).getValues());
      }
    } else {
      if(parameterListType == ParameterListType.NAMED) {

Examples of org.milyn.scribe.invoker.InterfaceDaoInvoker.lookup()

    DaoInvoker invoker = new InterfaceDaoInvoker(fullDao);

    Map<String, Object> params = new HashMap<String, Object>();

    invoker.lookup("id", params);

    verify(fullDao).lookup(eq("id"), same(params));

  }

Examples of org.mortbay.jetty.ResourceCache.lookup()

                    gzip=false;
                    pathInContextGz=null;
                }
                else if (cache!=null)
                {
                    content=cache.lookup(pathInContextGz,resource);
                    if (content!=null)
                        resource=content.getResource();
                }

                if (resource==null || !resource.exists()|| resource.isDirectory())

Examples of org.msgpack.MessagePack.lookup()

  }

  @Override
  public <K, V> void testMap(Map<K, V> v, Class<K> keyElementClass, Class<V> valueElementClass) throws Exception {
      MessagePack msgpack = new MessagePack();
      Template<K> keyElementTemplate = msgpack.lookup(keyElementClass);
      Template<V> valueElementTemplate = msgpack.lookup(valueElementClass);
      Template<Map<K, V>> tmpl = new MapTemplate(keyElementTemplate, valueElementTemplate);
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      Packer packer = msgpack.createPacker(out);
      tmpl.write(packer, v);

Examples of org.mule.module.db.internal.domain.type.DbTypeManager.lookup()

    {
        DbTypeManager dbTypeManager = mock(DbTypeManager.class);

        for (DbType type : types)
        {
            when(dbTypeManager.lookup(connection, type.getId(), type.getName())).thenReturn(type);
        }

        for (DbType type : unknownTypes)
        {
            when(dbTypeManager.lookup(connection, type.getId(), type.getName())).thenThrow(new UnknownDbTypeException(type.getId(), type.getName()));

Examples of org.objectweb.perseus.persistence.api.WorkingSet.lookup()

        sb.delete(0, sb.length());
        sb.append("\n\t- oids: [");
        String sep = "";
        for (Iterator iter = ws.oids().iterator(); iter.hasNext();) {
            Object oid = iter.next();
            org.objectweb.perseus.persistence.api.State sa = (org.objectweb.perseus.persistence.api.State) ws.lookup(oid);
            sb.append(sep);
            sep = "\n\t\t";
            if (sa != VirtualState.instance) {
                if (LifeCycle.isDirty(((StateItf) sa).speedoGetStatus())) {
                    sb.append("M ");
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.