Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.IResolve


    protected abstract boolean hasParent();

    @Test
    public void testParent() throws IOException {
        if (hasParent()) {
            IResolve parent = getResolve().parent(null);
            assertNotNull("Parent value does not match expected value", parent); //$NON-NLS-1$
        }
    }
View Full Code Here


    }

    @Test
    public void testParentMonitor() throws IOException {
        FakeProgress monitor = new FakeProgress();
        IResolve parent = getResolve().parent(monitor);
        if (hasParent()) {
            assertNotNull("Parent value does not match expected value", parent); //$NON-NLS-1$
        }
    }
View Full Code Here

        List<IResolve> services = catalog.find(MemoryServiceExtensionImpl.URL, new NullProgressMonitor());
        IService service=null;
        if( services.isEmpty() ){
          service = createService(catalog);
        }else{
          IResolve resolve=services.get(0);
          if (resolve instanceof IGeoResource) {
            IGeoResource resource = (IGeoResource) resolve;
            service=resource.service(null);
          }else if (resolve instanceof IService) {
            service=(IService) services.get(0);       
View Full Code Here

        this.id = id;
        found = null;
    }
    /** Find available parents if provided handle */
    static List<URL> path( IResolve handle ) {
        IResolve handle2=handle;
        LinkedList<URL> path = new LinkedList<URL>();
        while( handle2 != null ) {
            path.addFirst(handle2.getIdentifier());
            try {
                handle2 = handle2.parent(null);
            } catch (IOException e) {
                handle2 = null; // no more parents
            }
        }
        return path;
View Full Code Here

public class WMSConnectionFactory extends UDIGConnectionFactory {

  public boolean canProcess(Object context) {
    if( context instanceof IResolve ){
           IResolve resolve = (IResolve) context;
           return resolve.canResolve( WebMapServer.class );
       }
       return toCapabilitiesURL(context) != null;       
  }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.IResolve

Copyright © 2018 www.massapicom. 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.