Examples of resolve()


Examples of org.jostraca.BasicTemplatePath.resolve()

      fail();
    } catch( IllegalArgumentException e ) {}

    try {
      btp.setTemplateName( "nonexistent-file.txt" );
      btp.resolve( new String[] {} );
      fail();
    } catch( TemplateException tpe ) {
      assertEquals( StandardException.Code.CAT_user, tpe.getCat() );
    }
View Full Code Here

Examples of org.jxchange.client.cdo121.JXCdoRecipient.Resolve()

            r2.SetType(new JIVariant(JXCdoEnum.CdoRecipientType.CdoCc.intValue()));

            // Each recipient added must be resolved before it can be used.
            // 0 == false to inhibit dialog boxes from popping up
            r1.Resolve(new JIVariant(0));
            r2.Resolve(new JIVariant(0));

            // set the attachment
//            Attachments attachments = new AttachmentsProxy(message.getAttachments());
//            Attachment attachment = new AttachmentProxy(attachments.add(null, null, null, null));
//            attachment.setSource("c:\\temp\\attach.doc");
View Full Code Here

Examples of org.kiji.schema.KijiURI.resolve()

  @Test
  public void testInvalidResolution() {
    final KijiURI uri = KijiURI.newBuilder("kiji-hbase://zkhost:1234").build();
    try {
      uri.resolve("instance/table/col/extra");
      fail("An exception should have been thrown.");
    } catch (KijiURIException kurie) {
      assertEquals("Invalid Kiji URI: 'kiji-hbase://zkhost:1234/instance/table/col/extra' : "
              + "Too many path segments.", kurie.getMessage());
    }
View Full Code Here

Examples of org.lilyproject.repository.api.Link.resolve()

        DataOutput dataOutput = new DataOutputImpl();
        link.write(dataOutput);
        assertEquals(link, Link.read(new DataInputImpl(dataOutput.toByteArray()), idGenerator));

        RecordId ctx = idGenerator.newRecordId("0");
        RecordId resolved = link.resolve(ctx, idGenerator);
        assertEquals(recordId, resolved);

        // test the copy all
        Map<String, String> varProps = new HashMap<String, String>();
        varProps.put("a", "1");
View Full Code Here

Examples of org.locationtech.udig.catalog.IGeoResource.resolve()

     */
    public void example( SimpleFeatureType featureType, IProgressMonitor progressMonitor,
            FeatureCollection collection, int addPosition, IMap map ) throws IOException {
        IGeoResource resource = CatalogPlugin.getDefault().getLocalCatalog()
                .createTemporaryResource(featureType);
        resource.resolve(FeatureStore.class, progressMonitor).addFeatures(collection);

        ApplicationGIS.addLayersToMap(map, Collections.singletonList(resource), addPosition);

    }
}
View Full Code Here

Examples of org.locationtech.udig.catalog.IResolve.resolve()

        if (context instanceof IResolve) {
            IResolve resolve = (IResolve) context;
            try {
                // what enters should be a JGrassService, which resolves to a
                // folder
                return (resolve.canResolve(File.class) && resolve.resolve(
                        File.class, null).isDirectory());
            } catch (IOException e) {
                throw (RuntimeException) new RuntimeException().initCause(e);
            }
        }
View Full Code Here

Examples of org.locationtech.udig.catalog.IResolveManager.resolve()

            return adaptee.cast(layerSet);
        }

        IResolveManager rm = CatalogPlugin.getDefault().getResolveManager();
        if (rm.canResolve(this, adaptee)) {
            return rm.resolve(this, adaptee, monitor);
        }
        return null; // no adapter found (check to see if ResolveAdapter is registered?)
    }

    public String getTitle() {
View Full Code Here

Examples of org.locationtech.udig.catalog.IService.resolve()

                IService service = null;
                try {
                    service = layer.getGeoResource().service(null);
                    if (service.canResolve(ServiceMover.class)) {
                        ServiceMover tmp = service.resolve(ServiceMover.class, null);
                        String msg = tmp.move(projectDataFolder);
                        if (msg != null) {

                            MessageDialog.openError(PlatformUI.getWorkbench().getDisplay()
                                    .getActiveShell(), "Comsolidation Error", msg);
View Full Code Here

Examples of org.locationtech.udig.catalog.memory.internal.MemoryServiceImpl.resolve()

                impl.put(id, new MemoryServiceImpl(id, this.factory));
            MemoryServiceImpl service = impl.get(id);
            MemoryDataStore store = null;
           
            try {
                store = service.resolve(MemoryDataStore.class, null);
            } catch (IOException e) {
                // won't happen
                throw (RuntimeException) new RuntimeException(e.getLocalizedMessage())
                        .initCause(e);
            }
View Full Code Here

Examples of org.locationtech.udig.catalog.rasterings.AbstractRasterGeoResource.resolve()

                            pm.beginTask("Collecting stats...", IProgressMonitor.UNKNOWN);
                            StringBuilder regionString = new StringBuilder();
                            GridCoverage2D geodata = null;
                            if (object instanceof AbstractRasterGeoResource) {
                                AbstractRasterGeoResource rGeo = (AbstractRasterGeoResource) object;
                                AbstractGridCoverage2DReader gridCoverage2DReader = rGeo.resolve(
                                        AbstractGridCoverage2DReader.class, pm);
                                geodata = ((GridCoverage2D) gridCoverage2DReader.read(null));
                                geodata = geodata.view(ViewType.GEOPHYSICS);

                                Envelope envelope = geodata.getEnvelope();
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.