Examples of map()


Examples of org.openstreetmap.josm.tools.XmlObjectParser.map()

    public static List<TaggingPreset> readAll(Reader in, boolean validate) throws SAXException {
        XmlObjectParser parser = new XmlObjectParser();
        parser.mapOnStart("item", TaggingPreset.class);
        parser.mapOnStart("separator", TaggingPresetSeparator.class);
        parser.mapBoth("group", TaggingPresetMenu.class);
        parser.map("text", TaggingPresetItems.Text.class);
        parser.map("link", TaggingPresetItems.Link.class);
        parser.map("preset_link", TaggingPresetItems.PresetLink.class);
        parser.mapOnStart("optional", TaggingPresetItems.Optional.class);
        parser.mapOnStart("roles", TaggingPresetItems.Roles.class);
        parser.map("role", TaggingPresetItems.Role.class);
View Full Code Here

Examples of org.qi4j.functional.Function.map()

         {
            Object v = null;
            String f = null;
            Function valueFunction = columns.get( column.id().get()).getValueFunction();
            if (!no_values && valueFunction != null)
               v = valueFunction.map(rowObject);
            Function formattedFunction = columns.get( column.id().get()).getFormattedFunction();
            if (!no_format && formattedFunction != null)
               f = (String) formattedFunction.map(rowObject);
            else if (v != null)
            {
View Full Code Here

Examples of org.restlet.security.MemoryRealm.map()

        Group engineers = new Group("engineers", "All FooBar engineers");
        engineers.getMemberUsers().add(stiger);
        developers.getMemberGroups().add(engineers);

        // realm.map(customer1, app.getRole("user"));
        realm.map(managers, app.getRole("admin"));

        getDefaultHost().attach(app);
        getServers().add(Protocol.HTTP, RestletTestCase.TEST_PORT);
    }
}
View Full Code Here

Examples of org.springframework.binding.mapping.impl.DefaultMapper.map()

            if (logger.isDebugEnabled()) {
              logger.debug("Setting up view->model mappings");
            }
            DefaultMapper mapper = new DefaultMapper();
            if (addModelBindingMappings(mapper, bindings, srcRequestContext, requestContext)) {
              return mapper.map(srcRequestContext, requestContext);
            }
          }
        }
      }
    }
View Full Code Here

Examples of org.xadoop.zorba.ZorbaMapper.map()

    Text value = new Text(data);

    // run map
    ZorbaMapper mapper = new ZorbaMapper();
    mapper.setQuery(query);
    mapper.map(key, value, null);
  }

}
View Full Code Here

Examples of quicktime.std.image.Matrix.map()

        {
          height = (int) (height * scale);
        } // if (originalaspect != changedaspect)
      } // if (aspect)
      newsize = new QDRect(0, 0, width, height);
      stretch.map(oldsize, newsize);
      video.setMatrix(stretch);
    } // try
    catch (QTException qte)
    {
      qte.printStackTrace();
View Full Code Here

Examples of r.data.RArray.Names.map()

            boolean[] remove = new boolean[bsize];
            int nremove = 0;

            for (int i = 0; i < isize; i++) {
                RSymbol s = RSymbol.getSymbol(index.getString(i));
                int v = bnames.map(s);
                if (v != -1) {
                    if (!remove[v]) {
                        remove[v] = true;
                        nremove++;
                    }
View Full Code Here

Examples of ru.spbu.math.ontologycomparison.zhukova.logic.similarity.mappers.impl.SynsetMapper.map()

        return new Pair<IOntologyGraph, Collection<IOntologyProperty>>(mappedConcepts, mapProperties(mappedConcepts.getConcepts()));
    }

    private IOntologyGraph mapConcepts() {
        SynsetMapper firstSynsetMapper = new SynsetMapper(new HashSet<IOntologyConcept>(this.firstGraph.getConcepts()), logger);
        Collection<IOntologyConcept> firstConcepts = firstSynsetMapper.map();
        this.firstGraph.setSynsetToConcept(firstSynsetMapper.getSynsetToConceptTable());
        SynsetMapper secondSynsetMapper = new SynsetMapper(new HashSet<IOntologyConcept>(this.secondGraph.getConcepts()), logger);
        Collection<IOntologyConcept> secondConcepts = secondSynsetMapper.map();
        this.secondGraph.setSynsetToConcept(secondSynsetMapper.getSynsetToConceptTable());
        int secondConceptsSize = secondConcepts.size();
View Full Code Here

Examples of shark.api.JavaTableRDD.map()

    }

    @Test
    public void sql2rdd() {
        JavaTableRDD result = sc.sql2rdd("select val from test_java");
        JavaRDD<String> values = result.map(new Function<Row, String>() {
            @Override
            public String call(Row x) {
                return x.getString(0);
            }
        });
View Full Code Here

Examples of speculoos.core.ChainMapper.map()

        HashMap m= new HashMap();
        m.put("nom","toto");
        m.put("prenom","toto");
       
        try {
          p = (Pers) cm.map(p, m);
        } catch (MapperException e) {
          e.printStackTrace();
          return false;
        }
        /* check all default values */
 
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.