Examples of map()


Examples of org.gradle.api.internal.ConventionMapping.map()

        pluginConvention.getSourceSets().allObjects(new Action<SourceSet>() {
            public void execute(final SourceSet sourceSet) {
                final Project project = pluginConvention.getProject();
                ConventionMapping conventionMapping = ((IConventionAware) sourceSet).getConventionMapping();

                conventionMapping.map("classesDir", new ConventionValue() {
                    public Object getValue(Convention convention, IConventionAware conventionAwareObject) {
                        String classesDirName = String.format("classes/%s", sourceSet.getName());
                        return new File(project.getBuildDir(), classesDirName);
                    }
                });
View Full Code Here

Examples of org.jboss.as.console.client.tools.mapping.DescriptionMapper.map()

    }

    private void createForm(ModelNode description) {

        DescriptionMapper mapper = new DescriptionMapper(model.getAddress(), description);
        mapper.map(new DescriptionMapper.Mapping() {

            List<FormItem> items = new LinkedList<FormItem>();

            @Override
            public void onAttribute(String name, String description, String type, boolean required, boolean expressions, boolean runtime) {
View Full Code Here

Examples of org.jboss.resteasy.annotations.providers.jaxb.WrappedMap.map()

         JAXBElement<JaxbMap> ele = ctx.createUnmarshaller().unmarshal(source, JaxbMap.class);

         WrappedMap wrapped = FindAnnotation.findAnnotation(annotations, WrappedMap.class);
         if (wrapped != null)
         {
            if (!wrapped.map().equals(ele.getName().getLocalPart()))
            {
               throw new JAXBUnmarshalException("Map wrapping failed, expected root element name of " + wrapped.map() + " got " + ele.getName().getLocalPart());
            }
            if (!wrapped.namespace().equals(ele.getName().getNamespaceURI()))
            {
View Full Code Here

Examples of org.jgroups.util.MessageBatch.map()

        MessageBatch batch=new MessageBatch(null, null, null, true, msgs, new Filter<Message>() {
            public boolean accept(Message msg) {
                return msg != null && ((Integer)msg.getObject()) % 2 == 0; // only even numbers are accepted
            }
        });
        System.out.println(batch.map(print_numbers));
        assert batch.size() == 5;
        for(Message msg: batch)
            assert ((Integer)msg.getObject()) % 2 == 0;
    }
View Full Code Here

Examples of org.locationtech.geogig.storage.GraphDatabase.map()

            RevTree rootTree = RevTree.EMPTY;

            if (commit.getParentIds().size() > 0) {
                // Map this commit to the last "sparse" commit in my ancestry
                ObjectId mappedCommit = graphDatabase.getMapping(commit.getParentIds().get(0));
                graphDatabase.map(commit.getId(), mappedCommit);
                Optional<ObjectId> treeId = localRepository.command(ResolveTreeish.class)
                        .setTreeish(mappedCommit).call();
                if (treeId.isPresent()) {
                    rootTree = localRepository.getTree(treeId.get());
                }
View Full Code Here

Examples of org.modelmapper.ModelMapper.map()

        map(source.getAddress().city, destination.city);
      }
    };

    modelMapper.addMappings(personMap);
    PersonDTO dto = modelMapper.map(person, PersonDTO.class);

    assertEquals(dto.getStreet(), person.getAddress().getStreet());
    assertEquals(dto.getCity(), person.getAddress().getCity());

    // Option 2
View Full Code Here

Examples of org.mongodb.morphia.Morphia.map()

            protected ClassLoader getClassLoaderForClass(String clazz, DBObject object) {
                return application.classloader();
            }
        };

        morphia.map(PostcodeUnit.class);

        return morphia;
    }

    @Provides
View Full Code Here

Examples of org.movsim.roadmappings.RoadMapping.map()

        final FontMetrics fontMetrics = getFontMetrics(font);

        for (final SpeedLimit speedLimit : roadSegment.speedLimits()) {

            g.setFont(font);
            final RoadMapping.PosTheta posTheta = roadMapping.map(speedLimit.getPosition(), offset);

            final double speedLimitValueKmh = speedLimit.getSpeedLimitKmh();
            if (speedLimitValueKmh < 150) {
                g.setColor(Color.RED);
                g.fillOval((int) posTheta.x - redRadius2, (int) posTheta.y - redRadius2, 2 * redRadius2, 2 * redRadius2);
 
View Full Code Here

Examples of org.neo4j.gis.spatial.attributes.PropertyMapper.map()

  }
 
  @Override
  public Object getProperty(String name) {
    PropertyMapper mapper = layer.getPropertyMappingManager().getPropertyMapper(name);
    return mapper == null ? getGeometryProperty(name) : mapper.map(getGeometryProperty(mapper.from()));
  }
 
  private Object getGeometryProperty(String name) {
    return layer.getGeometryEncoder().getAttribute(geomNode,name);
  }
View Full Code Here

Examples of org.openqa.selenium.browserlaunchers.DoNotUseProxyPac.map()

      DoNotUseProxyPac pac = new DoNotUseProxyPac();

      if (object.has("directUrls")) {
        JSONArray allUrls = object.getJSONArray("directUrls");
        for (int i = 0; i < allUrls.length(); i++) {
          pac.map(allUrls.getString(i)).toNoProxy();
        }
      }

      if (object.has("directHosts")) {
        JSONArray allHosts = object.getJSONArray("directHosts");
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.