Package org.geotools.data

Examples of org.geotools.data.DataAccessFactory.canProcess()


     */
    protected boolean isParametersComplete( boolean testConnection ) {
        DataAccessFactory factory = getPreviousPage().getFactory();
        connectionParameters = getParams();

        if (!factory.canProcess(connectionParameters)) {
            return false;
        } else if (testConnection) {
            // dispatch job that will call SetPageComplete as needed
            try {
                // check that the conneciton parameters actually connect
View Full Code Here


                InterruptedException {
            isConnected = false;
            DataAccessFactory factory = getPreviousPage().getFactory();
            connectionParameters = getParams();

            if (factory.canProcess(connectionParameters)) {
                try {
                    factory.createDataStore(connectionParameters);
                    isConnected = true;
                } catch (IOException e) {
                    setErrorMessage(e.toString());
View Full Code Here

            try {
                if (!consider(factory, url)) {
                    continue;
                }
                Map<String, Serializable> params = createConnectionParameters(url, factory);
                if (params != null && factory.canProcess(params)) {
                    // oh this actually worked!
                    return params;
                }
            } catch (Throwable t) {
                if (Activator.getDefault().isDebugging()) {
View Full Code Here

     */
    public static DataAccessFactory findDataAcessFactory( Map<String, Serializable> params ) {
        Iterator<DataAccessFactory> available = DataAccessFinder.getAvailableDataStores();
        while( available.hasNext() ) {
            DataAccessFactory factory = available.next();
            if (params != null && factory.canProcess(params)) {
                return factory;
            }
        }
        return null; // could not make use of the provided parameters
    }
View Full Code Here

    public static DataAccessFactory aquireFactory(Map params) {
        for (Iterator i = DataAccessFinder.getAvailableDataStores(); i.hasNext();) {
            DataAccessFactory factory = (DataAccessFactory) i.next();
            initializeDataStoreFactory( factory );
           
            if (factory.canProcess(params)) {
                return factory;
            }
        }

        return null;
View Full Code Here

    public static DataAccessFactory aquireFactory(Map params) {
        for (Iterator i = getAvailableDataStoreFactories().iterator(); i.hasNext();) {
            DataAccessFactory factory = (DataAccessFactory) i.next();
            initializeDataStoreFactory( factory );
           
            if (factory.canProcess(params)) {
                return factory;
            }
        }

        return null;
View Full Code Here

    public static DataAccessFactory aquireFactory(Map params) {
        for (Iterator i = getAvailableDataStoreFactories().iterator(); i.hasNext();) {
            DataAccessFactory factory = (DataAccessFactory) i.next();
            initializeDataStoreFactory( factory );
           
            if (factory.canProcess(params)) {
                return factory;
            }
        }

        return null;
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.