Examples of canProcess()


Examples of altn8.filematcher.AlternateFreeRegexFileMatcher.canProcess()

            }
        }
        // freeRegexItems
        if (configuration.freeRegexActive) {
            AlternateFreeRegexFileMatcher fileMatcher = new AlternateFreeRegexFileMatcher(currentFilename, configuration);
            if (fileMatcher.canProcess()) {
                result.add(fileMatcher);
            }
        }
        return result;
    }
View Full Code Here

Examples of altn8.filematcher.AlternateGenericRegexFileMatcher.canProcess()

    private List<AlternateFileMatcher> getFileMatchers(AlternateConfiguration configuration, String currentFilename) {
        List<AlternateFileMatcher> result = new ArrayList<AlternateFileMatcher>();
        // genericRegexActive (before freeRegexItems, because generic groups)
        if (configuration.genericRegexActive) {
            AlternateGenericRegexFileMatcher fileMatcher = new AlternateGenericRegexFileMatcher(currentFilename, configuration);
            if (fileMatcher.canProcess()) {
                result.add(fileMatcher);
            }
        }
        // freeRegexItems
        if (configuration.freeRegexActive) {
View Full Code Here

Examples of altn8.filematcher.AlternateGenericRegexFileMatcher.canProcess()

            }
        }
        // freeRegexItems
        if (configuration.freeRegexActive) {
            AlternateFreeRegexFileMatcher fileMatcher = new AlternateFreeRegexFileMatcher(currentFilename, configuration);
            if (fileMatcher.canProcess()) {
                result.add(fileMatcher);
            }
        }
        return result;
    }
View Full Code Here

Examples of org.apache.commons.cli2.Argument.canProcess()

                    // TODO: why do we iterate over all anonymous arguments?
                    // canProcess will always return true?
                    for (final Iterator i = anonymous.iterator(); i.hasNext();) {
                        final Argument argument = (Argument) i.next();

                        if (argument.canProcess(commandLine, arguments)) {
                            argument.process(commandLine, arguments);
                        }
                    }
                } // [END argument is NOT anonymous
            } // [END option NOT found
View Full Code Here

Examples of org.apache.commons.cli2.Option.canProcess()

        // check if bursting is required
        for (final Iterator iter = tailMap.values().iterator(); iter.hasNext();) {
            final Option option = (Option) iter.next();

            if (option.canProcess(commandLine, arg)) {
                return true;
            }
        }

        if (commandLine.looksLikeOption(arg)) {
View Full Code Here

Examples of org.apache.commons.cli2.Option.canProcess()

                    boolean foundMemberOption = false;

                    for (Iterator i = values.iterator(); i.hasNext() && !foundMemberOption;) {
                        final Option option = (Option) i.next();

                        if (option.canProcess(commandLine, arg)) {
                            foundMemberOption = true;
                            arguments.previous();
                            option.process(commandLine, arguments);
                        }
                    }
View Full Code Here

Examples of org.geotools.arcsde.ArcSDEDataStoreFactory.canProcess()

                && params.get(PORT_PARAM.key) instanceof String) {
            String val = (String) params.get(PORT_PARAM.key);
            params.put(PORT_PARAM.key, Integer.valueOf(val));
        }

        if (!factory.canProcess(params))
            return null;
        if (id == null) {
            String host = (String) params.get(SERVER_PARAM.key);
            String port = params.get(PORT_PARAM.key).toString();
            String db = (String) params.get(INSTANCE_PARAM.key);
View Full Code Here

Examples of org.geotools.coverage.io.impl.DefaultFileDriver.canProcess()

            final File file = new File(testDirectory,"O3-NO2.nc");
            FileUtils.copyFile(f, file);

            // get the file
            final URL source = file.toURI().toURL();
            assertTrue(driver.canProcess(DriverCapabilities.CONNECT, source, null));
           
            LOGGER.info("ACCEPTED: " + source.toString());

            // getting access to the file
            CoverageAccess access = null;
View Full Code Here

Examples of org.geotools.coverage.io.impl.DefaultFileDriver.canProcess()

        }
       
        for(String filePath:files){
          final File file= new File(testDir,filePath);
          final URL source = file.toURI().toURL();
          if (driver.canProcess(DriverOperation.CONNECT, source,null)) {
            LOGGER.info("ACCEPTED: "+source.toString());
 
              // getting access to the file
              final CoverageAccess access = driver.process(DriverOperation.CONNECT,source, null, null,null);
              if (access == null)
View Full Code Here

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

        testDataStore.createSchema(builder4.buildFeatureType());

        final AbstractDataStoreFactory factory = mock(AbstractDataStoreFactory.class);
        when(factory.createDataStore(anyMapOf(String.class, Serializable.class))).thenReturn(
                testDataStore);
        when(factory.canProcess(anyMapOf(String.class, Serializable.class))).thenReturn(true);

        return factory;
    }

    public static AbstractDataStoreFactory createEmptyTestFactory() throws Exception {
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.