Examples of addObject()


Examples of amidst.map.Fragment.addObject()

      player.parentFragment.removeObject(player);
    }
    Point location = map.screenToLocal(mapViewer.lastRightClick);
    player.setPosition(location.x, location.y);
    Fragment fragment = map.getFragmentAt(location);
    fragment.addObject(player);
    player.parentFragment = fragment;
  }
 
}
View Full Code Here

Examples of co.nubetech.crux.pool.HBaseConnectionPool.addObject()

      KeyedPoolableObjectFactory factory = PoolUtils
          .synchronizedPoolableFactory(new HBaseConnectionPoolFactory());
      HBaseConnectionPool pool = new HBaseConnectionPool(factory);
      for (Connection connection : connectionList) {
        logger.debug("Connection is: " + connection);
        pool.addObject(connection);
      }
      filter.getServletContext().setAttribute(CruxConstants.HBASE_POOL,
          pool);

    } catch (Exception e) {
View Full Code Here

Examples of com.beust.jcommander.JCommander.addObject()

  @Parameter(names={"-h", "-?", "--help", "-help"}, help=true)
  public boolean help = false;
 
  public void parseArgs(String programName, String[] args, Object ... others) {
    JCommander commander = new JCommander();
    commander.addObject(this);
    for (Object other : others)
      commander.addObject(other);
    commander.setProgramName(programName);
    try {
      commander.parse(args);
View Full Code Here

Examples of com.boundlessgeo.geoserver.json.JSONArr.addObject()

                        .style().ysld("two.ysld").layer()
                        .featureType().defaults().store("store")
            .geoServer().build(geoServer);

        JSONArr arr = new JSONArr();
        arr.addObject().put("name", "two");
        arr.addObject().put("name", "one");

        MockHttpServletRequestBuilder req = put("/api/maps/foo/map/layers")
            .contentType(MediaType.APPLICATION_JSON)
            .content(arr.toString());
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.addObject()

                        dc.addParam(mod_date);
                        dc.addParam(mod_user);
                    }
                    else {
                        dc.addParam(new java.util.Date());
                        dc.addObject(null);
                    }
                    dc.addParam(deleted);
                    dc.addParam(langId);
                    dc.addParam(inode);
                    if(live)
View Full Code Here

Examples of com.fasterxml.jackson.databind.node.ArrayNode.addObject()

    public void testAdds()
    {
        ArrayNode n = new ArrayNode(JsonNodeFactory.instance);
        assertNotNull(n.addArray());
        assertNotNull(n.addObject());
        n.addPOJO("foobar");
        n.add(1);
        n.add(1L);
        n.add(0.5);
        n.add(0.5f);
View Full Code Here

Examples of com.jme3.asset.BlenderKey.LoadingResults.addObject()

                        } else if (object instanceof Node) {
                            if (LOGGER.isLoggable(Level.FINE)) {
                                LOGGER.log(Level.FINE, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() });
                            }
                            if (this.isRootObject(loadingResults, (Node) object)) {
                                loadingResults.addObject((Node) object);
                            }
                        }
                        break;
//                    case FileBlockHeader.BLOCK_MA00:// Material
//                        MaterialHelper materialHelper = blenderContext.getHelper(MaterialHelper.class);
View Full Code Here

Examples of com.knowgate.hipergate.Category.addObject()

      else
        oProd.remove(DB.pr_list);
      oProd.store(oConn);

      Category oCatg = new Category(getString(DB.gu_category));
      oCatg.addObject(oConn, getString(DB.gu_acourse), AcademicCourse.ClassId, 0, 0);
    } // fi (gu_category!="")
    } // fi (gu_category!=null)
         
    }
View Full Code Here

Examples of com.samskivert.swing.util.ProximityTracker.addObject()

        // comparison list
        for (int i = 0; i < 100; i++) {
            int x = rand.nextInt(MAX_X);
            int y = rand.nextInt(MAX_Y);
            Point p = new Point(x, y);
            tracker.addObject(x, y, p);
            points.add(p);
        }

        // now choose 100 new random points and confirm that the tracker
        // reports the same closest point that our brute force check
View Full Code Here

Examples of com.socrata.api.Soda2Producer.addObject()

        final Nomination  nomination = new Nomination(UUID.randomUUID().toString(), "Test Agent", "Department of Testing", "https://sandbox.demo.socrata.com", nominationDate, null, false, false);
        final Nomination  nominationUpdate = new Nomination(nomination.getName(), "Test Agent", "Department of Testing", "https://sandbox.demo.socrata.com", nominationDate, voteDate, true, false);

        final Soda2Producer producer= createProducer();

        final Meta objectMetadata = producer.addObject(UPDATE_DATA_SET, nomination);
        final Nomination createdNomination = producer.getById(UPDATE_DATA_SET, objectMetadata.getId(), Nomination.class);
        TestCase.assertTrue(EqualsBuilder.reflectionEquals(nomination, createdNomination));

        final Meta updateMeta= producer.update(UPDATE_DATA_SET, objectMetadata.getId(), nominationUpdate);
        TestCase.assertEquals(objectMetadata.getId(), updateMeta.getId());
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.