Package org.locationtech.udig.catalog

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


public class WWConnectionFactory extends UDIGConnectionFactory {

  public boolean canProcess(Object context) {
    if(context instanceof IResolve){
           IResolve resolve = (IResolve) context;
           return resolve.canResolve(LayerSet.class);
       }
       return toWWConfigURL(context) != null;       
  }
 
  public Map<String, Serializable> createConnectionParameters( Object context ) {
View Full Code Here


     * Determines if a particular context can become a WMSC Service
     */
    public boolean canProcess(Object context) {
        if( context instanceof IResolve ){
          IResolve resolve = (IResolve) context;
          return resolve.canResolve( TiledWebMapServer.class );
      }
      return toCapabilitiesURL(context) != null;       
   }
  
    /**
 
View Full Code Here

        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

        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).exists()//
                && resolve.resolve(File.class, null).getName().endsWith(".mapurl"));
            } catch (IOException e) {
                throw (RuntimeException) new RuntimeException().initCause(e);
            }
        }
View Full Code Here

                    IGeoResource resource = (IGeoResource) element;
                    return toServiceSelection(resource);
                }
                else if (element instanceof IResolve ){
                    IResolve resolve = (IResolve) element;
                    if( resolve.canResolve( IService.class)){
                        try {
                            IService service = resolve.resolve( IService.class, new NullProgressMonitor() );
                            return new StructuredSelection( service );
                        } catch (IOException e) {
                            return StructuredSelection.EMPTY;
View Full Code Here

                    if( resource != null ){
                        return toServiceSelection(resource);
                    }
                    IResolve resolve = (IResolve) adaptable.getAdapter(IResolve.class);
                    if( resolve != null ){
                        if( resolve.canResolve( IService.class)){
                            try {
                                service = resolve.resolve( IService.class, new NullProgressMonitor() );
                                return new StructuredSelection( service );
                            } catch (IOException e) {
                                return StructuredSelection.EMPTY;
View Full Code Here

        if( resolve == null ){
            return false;
        }
        // that is the class equivelent of "instanceof"
        if( PROPERTY_FEATURESOURCE.equals(property)){
            return resolve.canResolve( SimpleFeatureSource.class );           
        }
        else if( PROPERTY_FEATURESTORE.equals(property)){
            return resolve.canResolve( SimpleFeatureStore.class );           
        }
        else if( PROPERTY_DATASTORE.equals(property)){
View Full Code Here

        // that is the class equivelent of "instanceof"
        if( PROPERTY_FEATURESOURCE.equals(property)){
            return resolve.canResolve( SimpleFeatureSource.class );           
        }
        else if( PROPERTY_FEATURESTORE.equals(property)){
            return resolve.canResolve( SimpleFeatureStore.class );           
        }
        else if( PROPERTY_DATASTORE.equals(property)){
            return resolve.canResolve( DataStore.class );           
        }
        else if( PROPERTY_WMS.equals(property)){
View Full Code Here

        }
        else if( PROPERTY_FEATURESTORE.equals(property)){
            return resolve.canResolve( SimpleFeatureStore.class );           
        }
        else if( PROPERTY_DATASTORE.equals(property)){
            return resolve.canResolve( DataStore.class );           
        }
        else if( PROPERTY_WMS.equals(property)){
            return resolve.canResolve( WebMapServer.class );           
        }
        else if( PROPERTY_WMS_LAYER.equals(property)){
View Full Code Here

        }
        else if( PROPERTY_DATASTORE.equals(property)){
            return resolve.canResolve( DataStore.class );           
        }
        else if( PROPERTY_WMS.equals(property)){
            return resolve.canResolve( WebMapServer.class );           
        }
        else if( PROPERTY_WMS_LAYER.equals(property)){
            return resolve.canResolve( org.geotools.data.ows.Layer.class );           
        }
        else if( PROPERTY_SCHEMA.equals(property)){
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.