Examples of clone()


Examples of com.vividsolutions.jts.geom.Geometry.clone()

  }

  public Geometry getGeometry(Object feature) throws LayerException {
    Geometry geometry = (Geometry) asFeature(feature).getDefaultGeometry();
    geometry.setSRID(srid);
    return (Geometry) geometry.clone();
  }

  public String getGeometryAttributeName() throws LayerException {
    return getSchema().getGeometryDescriptor().getLocalName();
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.LineString.clone()

        LineString ls = gf.createLineString(csf.create(new double[] {0,0,1,1,2,2,3,3,4,4,5,5}));
       
        MathTransform identity = new AffineTransform2D(new AffineTransform());
       
        Decimator d = new Decimator(identity, new Rectangle(0,0,5,5), 0.8);
        d.decimateTransformGeneralize((Geometry) ls.clone(), identity);
        assertEquals(6, ls.getNumPoints());
       
        d = new Decimator(identity, new Rectangle(0,0,5,5), 1);
        d.decimateTransformGeneralize(ls, identity);
        assertEquals(4, ls.getNumPoints());
View Full Code Here

Examples of com.vmware.bdd.software.mgmt.plugin.monitor.ClusterReport.clone()

      ClusterReport report = new ClusterReport();
      report.setName(blueprint.getName());
      report.setAction("testing 1");
      report.setFinished(false);
      report.setProgress(30);
      reports.addClusterReport(report.clone());
      try {
         Thread.sleep(5000);
      } catch (Exception e) {
         e.printStackTrace();
         return false;
View Full Code Here

Examples of com.vmware.vim.binding.vim.VirtualMachine.clone()

      VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
         public VcTask body() throws Exception {
            VirtualMachine vm = getManagedObject();
            return new VcTask(TaskType.CloneVm,
                  vm.clone(folderMoRef == null ? dc.getVmFolderMoRef() : folderMoRef, name, spec), callback);
         }
      });
      logger.debug("clone_vm task on " + this + " to VM[" + name + "] created");
      return task;
   }
View Full Code Here

Examples of com.volantis.mcs.assets.ConvertibleImageAsset.clone()

        ImageAsset imageAsset = new ConvertibleImageAsset();
        imageAsset.setValue("rotatingWorld{$index}.gif");
        imageAsset.setSequence(true);
        imageAsset.setSequenceSize(2);

        ImageAsset imageAsset0 = (ImageAsset) imageAsset.clone();
        imageAsset0.setValue("rotatingWorld0.gif");

        ImageAsset imageAsset1 = (ImageAsset) imageAsset.clone();
        imageAsset1.setValue("rotatingWorld1.gif");
View Full Code Here

Examples of com.volantis.mcs.protocols.FormatReference.clone()

                    getAllocations().put(child, allocation);

                    // Increment the final dimension index ready
                    // for the next allocation
                    allocation =
                            (FormatReference) allocation.clone();

                    indices = allocation.getIndex().getIndicies();

                    indices[indices.length - 1]++;
                }
View Full Code Here

Examples of com.webobjects.eocontrol.EOFetchSpecification.clone()

        String fetchspecName = (String) d2wContext().valueForKey("restrictingFetchSpecification");
        if (fetchspecName != null) {
          if (ds instanceof EODatabaseDataSource) {
            EOFetchSpecification fs = ((EODatabaseDataSource) ds).entity().fetchSpecificationNamed(fetchspecName);
            if (fs != null) {
              fs = (EOFetchSpecification) fs.clone();
            }
            ((EODatabaseDataSource) ds).setFetchSpecification(fs);
          }
        }
        if (sortOrderings == null) {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.clone()

            int len = array.count();
            switch (((DynamicSubscript)name).getFlag()) {
                case DynamicSubscript.FIRST:    return len > 0 ? array.objectAtIndex(0) : null;
                case DynamicSubscript.MID:      return len > 0 ? array.objectAtIndex(len/2) : null;
                case DynamicSubscript.LAST:     return len > 0 ? array.lastObject() : null;
                case DynamicSubscript.ALL:  return array.clone();
            }
        }
        throw new NoSuchPropertyException(target, name);
    }
View Full Code Here

Examples of dbfit.util.DbParameterAccessor.clone()

    public DbParameterAccessor getDbParameterAccessor(String name,
                                                      Direction expectedDirection) throws SQLException{
        DbParameterAccessor parameter = findAccessorForParamWithName(name);
        if (parameter.hasDirection(INPUT_OUTPUT)) {
            // clone, separate into input and output
            parameter = parameter.clone();
            parameter.setDirection(expectedDirection);
        }
        // sql server quirk. if output parameter is used in an input column,
        // then the param should be cloned and remapped to IN/OUT
        if (expectedDirection!=Direction.OUTPUT && parameter.hasDirection(Direction.OUTPUT)) {
View Full Code Here

Examples of de.fosd.typechef.lexer.Token.clone()

     */
    public Token getNextToken() throws IOException, LexerException {
//        FeatureExpr lastPC = state.getFullPresenceCondition();
        try {
            Token tok = parse_main();
            tok = tok.clone();
            tok.setFeature(state.getFullPresenceCondition());
            if (getFeature(Feature.DEBUG_VERBOSE))
                System.err.println("pp: Returning " + tok);
            return tok;
        } catch (de.fosd.typechef.featureexpr.FeatureException e) {
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.